diff --git a/grpc-google-cloud-translate-v3/src/main/java/com/google/cloud/location/LocationsGrpc.java b/grpc-google-cloud-translate-v3/src/main/java/com/google/cloud/location/LocationsGrpc.java deleted file mode 100644 index 16f28b5c..00000000 --- a/grpc-google-cloud-translate-v3/src/main/java/com/google/cloud/location/LocationsGrpc.java +++ /dev/null @@ -1,476 +0,0 @@ -/* - * Copyright 2020 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.cloud.location; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * An abstract interface that provides location-related information for
- * a service. Service-specific metadata is provided through the
- * [Location.metadata][google.cloud.location.Location.metadata] field.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/location/locations.proto") -public final class LocationsGrpc { - - private LocationsGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.location.Locations"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.location.ListLocationsRequest, - com.google.cloud.location.ListLocationsResponse> - getListLocationsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListLocations", - requestType = com.google.cloud.location.ListLocationsRequest.class, - responseType = com.google.cloud.location.ListLocationsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.location.ListLocationsRequest, - com.google.cloud.location.ListLocationsResponse> - getListLocationsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.location.ListLocationsRequest, - com.google.cloud.location.ListLocationsResponse> - getListLocationsMethod; - if ((getListLocationsMethod = LocationsGrpc.getListLocationsMethod) == null) { - synchronized (LocationsGrpc.class) { - if ((getListLocationsMethod = LocationsGrpc.getListLocationsMethod) == null) { - LocationsGrpc.getListLocationsMethod = - getListLocationsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListLocations")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.location.ListLocationsRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.location.ListLocationsResponse.getDefaultInstance())) - .setSchemaDescriptor(new LocationsMethodDescriptorSupplier("ListLocations")) - .build(); - } - } - } - return getListLocationsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.location.GetLocationRequest, com.google.cloud.location.Location> - getGetLocationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetLocation", - requestType = com.google.cloud.location.GetLocationRequest.class, - responseType = com.google.cloud.location.Location.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.location.GetLocationRequest, com.google.cloud.location.Location> - getGetLocationMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.location.GetLocationRequest, com.google.cloud.location.Location> - getGetLocationMethod; - if ((getGetLocationMethod = LocationsGrpc.getGetLocationMethod) == null) { - synchronized (LocationsGrpc.class) { - if ((getGetLocationMethod = LocationsGrpc.getGetLocationMethod) == null) { - LocationsGrpc.getGetLocationMethod = - getGetLocationMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetLocation")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.location.GetLocationRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.location.Location.getDefaultInstance())) - .setSchemaDescriptor(new LocationsMethodDescriptorSupplier("GetLocation")) - .build(); - } - } - } - return getGetLocationMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static LocationsStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public LocationsStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new LocationsStub(channel, callOptions); - } - }; - return LocationsStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static LocationsBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public LocationsBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new LocationsBlockingStub(channel, callOptions); - } - }; - return LocationsBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static LocationsFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public LocationsFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new LocationsFutureStub(channel, callOptions); - } - }; - return LocationsFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * An abstract interface that provides location-related information for
-   * a service. Service-specific metadata is provided through the
-   * [Location.metadata][google.cloud.location.Location.metadata] field.
-   * 
- */ - public abstract static class LocationsImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Lists information about the supported locations for this service.
-     * 
- */ - public void listLocations( - com.google.cloud.location.ListLocationsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListLocationsMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets information about a location.
-     * 
- */ - public void getLocation( - com.google.cloud.location.GetLocationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetLocationMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListLocationsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.location.ListLocationsRequest, - com.google.cloud.location.ListLocationsResponse>( - this, METHODID_LIST_LOCATIONS))) - .addMethod( - getGetLocationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.location.GetLocationRequest, - com.google.cloud.location.Location>(this, METHODID_GET_LOCATION))) - .build(); - } - } - - /** - * - * - *
-   * An abstract interface that provides location-related information for
-   * a service. Service-specific metadata is provided through the
-   * [Location.metadata][google.cloud.location.Location.metadata] field.
-   * 
- */ - public static final class LocationsStub extends io.grpc.stub.AbstractAsyncStub { - private LocationsStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected LocationsStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new LocationsStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists information about the supported locations for this service.
-     * 
- */ - public void listLocations( - com.google.cloud.location.ListLocationsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListLocationsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets information about a location.
-     * 
- */ - public void getLocation( - com.google.cloud.location.GetLocationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetLocationMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * An abstract interface that provides location-related information for
-   * a service. Service-specific metadata is provided through the
-   * [Location.metadata][google.cloud.location.Location.metadata] field.
-   * 
- */ - public static final class LocationsBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private LocationsBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected LocationsBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new LocationsBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists information about the supported locations for this service.
-     * 
- */ - public com.google.cloud.location.ListLocationsResponse listLocations( - com.google.cloud.location.ListLocationsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListLocationsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets information about a location.
-     * 
- */ - public com.google.cloud.location.Location getLocation( - com.google.cloud.location.GetLocationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetLocationMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * An abstract interface that provides location-related information for
-   * a service. Service-specific metadata is provided through the
-   * [Location.metadata][google.cloud.location.Location.metadata] field.
-   * 
- */ - public static final class LocationsFutureStub - extends io.grpc.stub.AbstractFutureStub { - private LocationsFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected LocationsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new LocationsFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists information about the supported locations for this service.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.location.ListLocationsResponse> - listLocations(com.google.cloud.location.ListLocationsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListLocationsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets information about a location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - getLocation(com.google.cloud.location.GetLocationRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetLocationMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_LOCATIONS = 0; - private static final int METHODID_GET_LOCATION = 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 final LocationsImplBase serviceImpl; - private final int methodId; - - MethodHandlers(LocationsImplBase 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_LIST_LOCATIONS: - serviceImpl.listLocations( - (com.google.cloud.location.ListLocationsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_LOCATION: - serviceImpl.getLocation( - (com.google.cloud.location.GetLocationRequest) 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(); - } - } - } - - private abstract static class LocationsBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - LocationsBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.location.LocationsProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Locations"); - } - } - - private static final class LocationsFileDescriptorSupplier - extends LocationsBaseDescriptorSupplier { - LocationsFileDescriptorSupplier() {} - } - - private static final class LocationsMethodDescriptorSupplier - extends LocationsBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - LocationsMethodDescriptorSupplier(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 (LocationsGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new LocationsFileDescriptorSupplier()) - .addMethod(getListLocationsMethod()) - .addMethod(getGetLocationMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/grpc-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationServiceGrpc.java b/grpc-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationServiceGrpc.java deleted file mode 100644 index 9b50dc9d..00000000 --- a/grpc-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationServiceGrpc.java +++ /dev/null @@ -1,1486 +0,0 @@ -/* - * Copyright 2020 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.cloud.translate.v3; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * Provides natural language translation operations.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/translate/v3/translation_service.proto") -public final class TranslationServiceGrpc { - - private TranslationServiceGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.translation.v3.TranslationService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.translate.v3.TranslateTextRequest, - com.google.cloud.translate.v3.TranslateTextResponse> - getTranslateTextMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "TranslateText", - requestType = com.google.cloud.translate.v3.TranslateTextRequest.class, - responseType = com.google.cloud.translate.v3.TranslateTextResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.translate.v3.TranslateTextRequest, - com.google.cloud.translate.v3.TranslateTextResponse> - getTranslateTextMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.translate.v3.TranslateTextRequest, - com.google.cloud.translate.v3.TranslateTextResponse> - getTranslateTextMethod; - if ((getTranslateTextMethod = TranslationServiceGrpc.getTranslateTextMethod) == null) { - synchronized (TranslationServiceGrpc.class) { - if ((getTranslateTextMethod = TranslationServiceGrpc.getTranslateTextMethod) == null) { - TranslationServiceGrpc.getTranslateTextMethod = - getTranslateTextMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TranslateText")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3.TranslateTextRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3.TranslateTextResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new TranslationServiceMethodDescriptorSupplier("TranslateText")) - .build(); - } - } - } - return getTranslateTextMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.translate.v3.DetectLanguageRequest, - com.google.cloud.translate.v3.DetectLanguageResponse> - getDetectLanguageMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DetectLanguage", - requestType = com.google.cloud.translate.v3.DetectLanguageRequest.class, - responseType = com.google.cloud.translate.v3.DetectLanguageResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.translate.v3.DetectLanguageRequest, - com.google.cloud.translate.v3.DetectLanguageResponse> - getDetectLanguageMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.translate.v3.DetectLanguageRequest, - com.google.cloud.translate.v3.DetectLanguageResponse> - getDetectLanguageMethod; - if ((getDetectLanguageMethod = TranslationServiceGrpc.getDetectLanguageMethod) == null) { - synchronized (TranslationServiceGrpc.class) { - if ((getDetectLanguageMethod = TranslationServiceGrpc.getDetectLanguageMethod) == null) { - TranslationServiceGrpc.getDetectLanguageMethod = - getDetectLanguageMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DetectLanguage")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3.DetectLanguageRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3.DetectLanguageResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new TranslationServiceMethodDescriptorSupplier("DetectLanguage")) - .build(); - } - } - } - return getDetectLanguageMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.translate.v3.GetSupportedLanguagesRequest, - com.google.cloud.translate.v3.SupportedLanguages> - getGetSupportedLanguagesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetSupportedLanguages", - requestType = com.google.cloud.translate.v3.GetSupportedLanguagesRequest.class, - responseType = com.google.cloud.translate.v3.SupportedLanguages.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.translate.v3.GetSupportedLanguagesRequest, - com.google.cloud.translate.v3.SupportedLanguages> - getGetSupportedLanguagesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.translate.v3.GetSupportedLanguagesRequest, - com.google.cloud.translate.v3.SupportedLanguages> - getGetSupportedLanguagesMethod; - if ((getGetSupportedLanguagesMethod = TranslationServiceGrpc.getGetSupportedLanguagesMethod) - == null) { - synchronized (TranslationServiceGrpc.class) { - if ((getGetSupportedLanguagesMethod = TranslationServiceGrpc.getGetSupportedLanguagesMethod) - == null) { - TranslationServiceGrpc.getGetSupportedLanguagesMethod = - getGetSupportedLanguagesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "GetSupportedLanguages")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3.GetSupportedLanguagesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3.SupportedLanguages - .getDefaultInstance())) - .setSchemaDescriptor( - new TranslationServiceMethodDescriptorSupplier("GetSupportedLanguages")) - .build(); - } - } - } - return getGetSupportedLanguagesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.translate.v3.TranslateDocumentRequest, - com.google.cloud.translate.v3.TranslateDocumentResponse> - getTranslateDocumentMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "TranslateDocument", - requestType = com.google.cloud.translate.v3.TranslateDocumentRequest.class, - responseType = com.google.cloud.translate.v3.TranslateDocumentResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.translate.v3.TranslateDocumentRequest, - com.google.cloud.translate.v3.TranslateDocumentResponse> - getTranslateDocumentMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.translate.v3.TranslateDocumentRequest, - com.google.cloud.translate.v3.TranslateDocumentResponse> - getTranslateDocumentMethod; - if ((getTranslateDocumentMethod = TranslationServiceGrpc.getTranslateDocumentMethod) == null) { - synchronized (TranslationServiceGrpc.class) { - if ((getTranslateDocumentMethod = TranslationServiceGrpc.getTranslateDocumentMethod) - == null) { - TranslationServiceGrpc.getTranslateDocumentMethod = - getTranslateDocumentMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TranslateDocument")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3.TranslateDocumentRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3.TranslateDocumentResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new TranslationServiceMethodDescriptorSupplier("TranslateDocument")) - .build(); - } - } - } - return getTranslateDocumentMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.translate.v3.BatchTranslateTextRequest, com.google.longrunning.Operation> - getBatchTranslateTextMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "BatchTranslateText", - requestType = com.google.cloud.translate.v3.BatchTranslateTextRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.translate.v3.BatchTranslateTextRequest, com.google.longrunning.Operation> - getBatchTranslateTextMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.translate.v3.BatchTranslateTextRequest, - com.google.longrunning.Operation> - getBatchTranslateTextMethod; - if ((getBatchTranslateTextMethod = TranslationServiceGrpc.getBatchTranslateTextMethod) - == null) { - synchronized (TranslationServiceGrpc.class) { - if ((getBatchTranslateTextMethod = TranslationServiceGrpc.getBatchTranslateTextMethod) - == null) { - TranslationServiceGrpc.getBatchTranslateTextMethod = - getBatchTranslateTextMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BatchTranslateText")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3.BatchTranslateTextRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new TranslationServiceMethodDescriptorSupplier("BatchTranslateText")) - .build(); - } - } - } - return getBatchTranslateTextMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.translate.v3.BatchTranslateDocumentRequest, - com.google.longrunning.Operation> - getBatchTranslateDocumentMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "BatchTranslateDocument", - requestType = com.google.cloud.translate.v3.BatchTranslateDocumentRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.translate.v3.BatchTranslateDocumentRequest, - com.google.longrunning.Operation> - getBatchTranslateDocumentMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.translate.v3.BatchTranslateDocumentRequest, - com.google.longrunning.Operation> - getBatchTranslateDocumentMethod; - if ((getBatchTranslateDocumentMethod = TranslationServiceGrpc.getBatchTranslateDocumentMethod) - == null) { - synchronized (TranslationServiceGrpc.class) { - if ((getBatchTranslateDocumentMethod = - TranslationServiceGrpc.getBatchTranslateDocumentMethod) - == null) { - TranslationServiceGrpc.getBatchTranslateDocumentMethod = - getBatchTranslateDocumentMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "BatchTranslateDocument")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3.BatchTranslateDocumentRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new TranslationServiceMethodDescriptorSupplier("BatchTranslateDocument")) - .build(); - } - } - } - return getBatchTranslateDocumentMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.translate.v3.CreateGlossaryRequest, com.google.longrunning.Operation> - getCreateGlossaryMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateGlossary", - requestType = com.google.cloud.translate.v3.CreateGlossaryRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.translate.v3.CreateGlossaryRequest, com.google.longrunning.Operation> - getCreateGlossaryMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.translate.v3.CreateGlossaryRequest, com.google.longrunning.Operation> - getCreateGlossaryMethod; - if ((getCreateGlossaryMethod = TranslationServiceGrpc.getCreateGlossaryMethod) == null) { - synchronized (TranslationServiceGrpc.class) { - if ((getCreateGlossaryMethod = TranslationServiceGrpc.getCreateGlossaryMethod) == null) { - TranslationServiceGrpc.getCreateGlossaryMethod = - getCreateGlossaryMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateGlossary")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3.CreateGlossaryRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new TranslationServiceMethodDescriptorSupplier("CreateGlossary")) - .build(); - } - } - } - return getCreateGlossaryMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.translate.v3.ListGlossariesRequest, - com.google.cloud.translate.v3.ListGlossariesResponse> - getListGlossariesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListGlossaries", - requestType = com.google.cloud.translate.v3.ListGlossariesRequest.class, - responseType = com.google.cloud.translate.v3.ListGlossariesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.translate.v3.ListGlossariesRequest, - com.google.cloud.translate.v3.ListGlossariesResponse> - getListGlossariesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.translate.v3.ListGlossariesRequest, - com.google.cloud.translate.v3.ListGlossariesResponse> - getListGlossariesMethod; - if ((getListGlossariesMethod = TranslationServiceGrpc.getListGlossariesMethod) == null) { - synchronized (TranslationServiceGrpc.class) { - if ((getListGlossariesMethod = TranslationServiceGrpc.getListGlossariesMethod) == null) { - TranslationServiceGrpc.getListGlossariesMethod = - getListGlossariesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListGlossaries")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3.ListGlossariesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3.ListGlossariesResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new TranslationServiceMethodDescriptorSupplier("ListGlossaries")) - .build(); - } - } - } - return getListGlossariesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.translate.v3.GetGlossaryRequest, com.google.cloud.translate.v3.Glossary> - getGetGlossaryMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetGlossary", - requestType = com.google.cloud.translate.v3.GetGlossaryRequest.class, - responseType = com.google.cloud.translate.v3.Glossary.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.translate.v3.GetGlossaryRequest, com.google.cloud.translate.v3.Glossary> - getGetGlossaryMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.translate.v3.GetGlossaryRequest, - com.google.cloud.translate.v3.Glossary> - getGetGlossaryMethod; - if ((getGetGlossaryMethod = TranslationServiceGrpc.getGetGlossaryMethod) == null) { - synchronized (TranslationServiceGrpc.class) { - if ((getGetGlossaryMethod = TranslationServiceGrpc.getGetGlossaryMethod) == null) { - TranslationServiceGrpc.getGetGlossaryMethod = - getGetGlossaryMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetGlossary")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3.GetGlossaryRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3.Glossary.getDefaultInstance())) - .setSchemaDescriptor( - new TranslationServiceMethodDescriptorSupplier("GetGlossary")) - .build(); - } - } - } - return getGetGlossaryMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.translate.v3.DeleteGlossaryRequest, com.google.longrunning.Operation> - getDeleteGlossaryMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteGlossary", - requestType = com.google.cloud.translate.v3.DeleteGlossaryRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.translate.v3.DeleteGlossaryRequest, com.google.longrunning.Operation> - getDeleteGlossaryMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.translate.v3.DeleteGlossaryRequest, com.google.longrunning.Operation> - getDeleteGlossaryMethod; - if ((getDeleteGlossaryMethod = TranslationServiceGrpc.getDeleteGlossaryMethod) == null) { - synchronized (TranslationServiceGrpc.class) { - if ((getDeleteGlossaryMethod = TranslationServiceGrpc.getDeleteGlossaryMethod) == null) { - TranslationServiceGrpc.getDeleteGlossaryMethod = - getDeleteGlossaryMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteGlossary")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3.DeleteGlossaryRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new TranslationServiceMethodDescriptorSupplier("DeleteGlossary")) - .build(); - } - } - } - return getDeleteGlossaryMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static TranslationServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public TranslationServiceStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TranslationServiceStub(channel, callOptions); - } - }; - return TranslationServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static TranslationServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public TranslationServiceBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TranslationServiceBlockingStub(channel, callOptions); - } - }; - return TranslationServiceBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static TranslationServiceFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public TranslationServiceFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TranslationServiceFutureStub(channel, callOptions); - } - }; - return TranslationServiceFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Provides natural language translation operations.
-   * 
- */ - public abstract static class TranslationServiceImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Translates input text and returns translated text.
-     * 
- */ - public void translateText( - com.google.cloud.translate.v3.TranslateTextRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getTranslateTextMethod(), responseObserver); - } - - /** - * - * - *
-     * Detects the language of text within a request.
-     * 
- */ - public void detectLanguage( - com.google.cloud.translate.v3.DetectLanguageRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDetectLanguageMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns a list of supported languages for translation.
-     * 
- */ - public void getSupportedLanguages( - com.google.cloud.translate.v3.GetSupportedLanguagesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetSupportedLanguagesMethod(), responseObserver); - } - - /** - * - * - *
-     * Translates documents in synchronous mode.
-     * 
- */ - public void translateDocument( - com.google.cloud.translate.v3.TranslateDocumentRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getTranslateDocumentMethod(), responseObserver); - } - - /** - * - * - *
-     * Translates a large volume of text in asynchronous batch mode.
-     * This function provides real-time output as the inputs are being processed.
-     * If caller cancels a request, the partial results (for an input file, it's
-     * all or nothing) may still be available on the specified output location.
-     * This call returns immediately and you can
-     * use google.longrunning.Operation.name to poll the status of the call.
-     * 
- */ - public void batchTranslateText( - com.google.cloud.translate.v3.BatchTranslateTextRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getBatchTranslateTextMethod(), responseObserver); - } - - /** - * - * - *
-     * Translates a large volume of document in asynchronous batch mode.
-     * This function provides real-time output as the inputs are being processed.
-     * If caller cancels a request, the partial results (for an input file, it's
-     * all or nothing) may still be available on the specified output location.
-     * This call returns immediately and you can use
-     * google.longrunning.Operation.name to poll the status of the call.
-     * 
- */ - public void batchTranslateDocument( - com.google.cloud.translate.v3.BatchTranslateDocumentRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getBatchTranslateDocumentMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a glossary and returns the long-running operation. Returns
-     * NOT_FOUND, if the project doesn't exist.
-     * 
- */ - public void createGlossary( - com.google.cloud.translate.v3.CreateGlossaryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateGlossaryMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't
-     * exist.
-     * 
- */ - public void listGlossaries( - com.google.cloud.translate.v3.ListGlossariesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListGlossariesMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't
-     * exist.
-     * 
- */ - public void getGlossary( - com.google.cloud.translate.v3.GetGlossaryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetGlossaryMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes a glossary, or cancels glossary construction
-     * if the glossary isn't created yet.
-     * Returns NOT_FOUND, if the glossary doesn't exist.
-     * 
- */ - public void deleteGlossary( - com.google.cloud.translate.v3.DeleteGlossaryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteGlossaryMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getTranslateTextMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.translate.v3.TranslateTextRequest, - com.google.cloud.translate.v3.TranslateTextResponse>( - this, METHODID_TRANSLATE_TEXT))) - .addMethod( - getDetectLanguageMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.translate.v3.DetectLanguageRequest, - com.google.cloud.translate.v3.DetectLanguageResponse>( - this, METHODID_DETECT_LANGUAGE))) - .addMethod( - getGetSupportedLanguagesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.translate.v3.GetSupportedLanguagesRequest, - com.google.cloud.translate.v3.SupportedLanguages>( - this, METHODID_GET_SUPPORTED_LANGUAGES))) - .addMethod( - getTranslateDocumentMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.translate.v3.TranslateDocumentRequest, - com.google.cloud.translate.v3.TranslateDocumentResponse>( - this, METHODID_TRANSLATE_DOCUMENT))) - .addMethod( - getBatchTranslateTextMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.translate.v3.BatchTranslateTextRequest, - com.google.longrunning.Operation>(this, METHODID_BATCH_TRANSLATE_TEXT))) - .addMethod( - getBatchTranslateDocumentMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.translate.v3.BatchTranslateDocumentRequest, - com.google.longrunning.Operation>(this, METHODID_BATCH_TRANSLATE_DOCUMENT))) - .addMethod( - getCreateGlossaryMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.translate.v3.CreateGlossaryRequest, - com.google.longrunning.Operation>(this, METHODID_CREATE_GLOSSARY))) - .addMethod( - getListGlossariesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.translate.v3.ListGlossariesRequest, - com.google.cloud.translate.v3.ListGlossariesResponse>( - this, METHODID_LIST_GLOSSARIES))) - .addMethod( - getGetGlossaryMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.translate.v3.GetGlossaryRequest, - com.google.cloud.translate.v3.Glossary>(this, METHODID_GET_GLOSSARY))) - .addMethod( - getDeleteGlossaryMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.translate.v3.DeleteGlossaryRequest, - com.google.longrunning.Operation>(this, METHODID_DELETE_GLOSSARY))) - .build(); - } - } - - /** - * - * - *
-   * Provides natural language translation operations.
-   * 
- */ - public static final class TranslationServiceStub - extends io.grpc.stub.AbstractAsyncStub { - private TranslationServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected TranslationServiceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TranslationServiceStub(channel, callOptions); - } - - /** - * - * - *
-     * Translates input text and returns translated text.
-     * 
- */ - public void translateText( - com.google.cloud.translate.v3.TranslateTextRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getTranslateTextMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Detects the language of text within a request.
-     * 
- */ - public void detectLanguage( - com.google.cloud.translate.v3.DetectLanguageRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDetectLanguageMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns a list of supported languages for translation.
-     * 
- */ - public void getSupportedLanguages( - com.google.cloud.translate.v3.GetSupportedLanguagesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetSupportedLanguagesMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Translates documents in synchronous mode.
-     * 
- */ - public void translateDocument( - com.google.cloud.translate.v3.TranslateDocumentRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getTranslateDocumentMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Translates a large volume of text in asynchronous batch mode.
-     * This function provides real-time output as the inputs are being processed.
-     * If caller cancels a request, the partial results (for an input file, it's
-     * all or nothing) may still be available on the specified output location.
-     * This call returns immediately and you can
-     * use google.longrunning.Operation.name to poll the status of the call.
-     * 
- */ - public void batchTranslateText( - com.google.cloud.translate.v3.BatchTranslateTextRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getBatchTranslateTextMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Translates a large volume of document in asynchronous batch mode.
-     * This function provides real-time output as the inputs are being processed.
-     * If caller cancels a request, the partial results (for an input file, it's
-     * all or nothing) may still be available on the specified output location.
-     * This call returns immediately and you can use
-     * google.longrunning.Operation.name to poll the status of the call.
-     * 
- */ - public void batchTranslateDocument( - com.google.cloud.translate.v3.BatchTranslateDocumentRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getBatchTranslateDocumentMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates a glossary and returns the long-running operation. Returns
-     * NOT_FOUND, if the project doesn't exist.
-     * 
- */ - public void createGlossary( - com.google.cloud.translate.v3.CreateGlossaryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateGlossaryMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't
-     * exist.
-     * 
- */ - public void listGlossaries( - com.google.cloud.translate.v3.ListGlossariesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListGlossariesMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't
-     * exist.
-     * 
- */ - public void getGlossary( - com.google.cloud.translate.v3.GetGlossaryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetGlossaryMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes a glossary, or cancels glossary construction
-     * if the glossary isn't created yet.
-     * Returns NOT_FOUND, if the glossary doesn't exist.
-     * 
- */ - public void deleteGlossary( - com.google.cloud.translate.v3.DeleteGlossaryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteGlossaryMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * Provides natural language translation operations.
-   * 
- */ - public static final class TranslationServiceBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private TranslationServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected TranslationServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TranslationServiceBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Translates input text and returns translated text.
-     * 
- */ - public com.google.cloud.translate.v3.TranslateTextResponse translateText( - com.google.cloud.translate.v3.TranslateTextRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getTranslateTextMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Detects the language of text within a request.
-     * 
- */ - public com.google.cloud.translate.v3.DetectLanguageResponse detectLanguage( - com.google.cloud.translate.v3.DetectLanguageRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDetectLanguageMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns a list of supported languages for translation.
-     * 
- */ - public com.google.cloud.translate.v3.SupportedLanguages getSupportedLanguages( - com.google.cloud.translate.v3.GetSupportedLanguagesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetSupportedLanguagesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Translates documents in synchronous mode.
-     * 
- */ - public com.google.cloud.translate.v3.TranslateDocumentResponse translateDocument( - com.google.cloud.translate.v3.TranslateDocumentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getTranslateDocumentMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Translates a large volume of text in asynchronous batch mode.
-     * This function provides real-time output as the inputs are being processed.
-     * If caller cancels a request, the partial results (for an input file, it's
-     * all or nothing) may still be available on the specified output location.
-     * This call returns immediately and you can
-     * use google.longrunning.Operation.name to poll the status of the call.
-     * 
- */ - public com.google.longrunning.Operation batchTranslateText( - com.google.cloud.translate.v3.BatchTranslateTextRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getBatchTranslateTextMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Translates a large volume of document in asynchronous batch mode.
-     * This function provides real-time output as the inputs are being processed.
-     * If caller cancels a request, the partial results (for an input file, it's
-     * all or nothing) may still be available on the specified output location.
-     * This call returns immediately and you can use
-     * google.longrunning.Operation.name to poll the status of the call.
-     * 
- */ - public com.google.longrunning.Operation batchTranslateDocument( - com.google.cloud.translate.v3.BatchTranslateDocumentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getBatchTranslateDocumentMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a glossary and returns the long-running operation. Returns
-     * NOT_FOUND, if the project doesn't exist.
-     * 
- */ - public com.google.longrunning.Operation createGlossary( - com.google.cloud.translate.v3.CreateGlossaryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateGlossaryMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't
-     * exist.
-     * 
- */ - public com.google.cloud.translate.v3.ListGlossariesResponse listGlossaries( - com.google.cloud.translate.v3.ListGlossariesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListGlossariesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't
-     * exist.
-     * 
- */ - public com.google.cloud.translate.v3.Glossary getGlossary( - com.google.cloud.translate.v3.GetGlossaryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetGlossaryMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a glossary, or cancels glossary construction
-     * if the glossary isn't created yet.
-     * Returns NOT_FOUND, if the glossary doesn't exist.
-     * 
- */ - public com.google.longrunning.Operation deleteGlossary( - com.google.cloud.translate.v3.DeleteGlossaryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteGlossaryMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * Provides natural language translation operations.
-   * 
- */ - public static final class TranslationServiceFutureStub - extends io.grpc.stub.AbstractFutureStub { - private TranslationServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected TranslationServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TranslationServiceFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Translates input text and returns translated text.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.translate.v3.TranslateTextResponse> - translateText(com.google.cloud.translate.v3.TranslateTextRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getTranslateTextMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Detects the language of text within a request.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.translate.v3.DetectLanguageResponse> - detectLanguage(com.google.cloud.translate.v3.DetectLanguageRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDetectLanguageMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns a list of supported languages for translation.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.translate.v3.SupportedLanguages> - getSupportedLanguages(com.google.cloud.translate.v3.GetSupportedLanguagesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetSupportedLanguagesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Translates documents in synchronous mode.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.translate.v3.TranslateDocumentResponse> - translateDocument(com.google.cloud.translate.v3.TranslateDocumentRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getTranslateDocumentMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Translates a large volume of text in asynchronous batch mode.
-     * This function provides real-time output as the inputs are being processed.
-     * If caller cancels a request, the partial results (for an input file, it's
-     * all or nothing) may still be available on the specified output location.
-     * This call returns immediately and you can
-     * use google.longrunning.Operation.name to poll the status of the call.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - batchTranslateText(com.google.cloud.translate.v3.BatchTranslateTextRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getBatchTranslateTextMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Translates a large volume of document in asynchronous batch mode.
-     * This function provides real-time output as the inputs are being processed.
-     * If caller cancels a request, the partial results (for an input file, it's
-     * all or nothing) may still be available on the specified output location.
-     * This call returns immediately and you can use
-     * google.longrunning.Operation.name to poll the status of the call.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - batchTranslateDocument( - com.google.cloud.translate.v3.BatchTranslateDocumentRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getBatchTranslateDocumentMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a glossary and returns the long-running operation. Returns
-     * NOT_FOUND, if the project doesn't exist.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createGlossary(com.google.cloud.translate.v3.CreateGlossaryRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateGlossaryMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't
-     * exist.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.translate.v3.ListGlossariesResponse> - listGlossaries(com.google.cloud.translate.v3.ListGlossariesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListGlossariesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't
-     * exist.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.translate.v3.Glossary> - getGlossary(com.google.cloud.translate.v3.GetGlossaryRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetGlossaryMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes a glossary, or cancels glossary construction
-     * if the glossary isn't created yet.
-     * Returns NOT_FOUND, if the glossary doesn't exist.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteGlossary(com.google.cloud.translate.v3.DeleteGlossaryRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteGlossaryMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_TRANSLATE_TEXT = 0; - private static final int METHODID_DETECT_LANGUAGE = 1; - private static final int METHODID_GET_SUPPORTED_LANGUAGES = 2; - private static final int METHODID_TRANSLATE_DOCUMENT = 3; - private static final int METHODID_BATCH_TRANSLATE_TEXT = 4; - private static final int METHODID_BATCH_TRANSLATE_DOCUMENT = 5; - private static final int METHODID_CREATE_GLOSSARY = 6; - private static final int METHODID_LIST_GLOSSARIES = 7; - private static final int METHODID_GET_GLOSSARY = 8; - private static final int METHODID_DELETE_GLOSSARY = 9; - - 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 TranslationServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(TranslationServiceImplBase 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_TRANSLATE_TEXT: - serviceImpl.translateText( - (com.google.cloud.translate.v3.TranslateTextRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_DETECT_LANGUAGE: - serviceImpl.detectLanguage( - (com.google.cloud.translate.v3.DetectLanguageRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_SUPPORTED_LANGUAGES: - serviceImpl.getSupportedLanguages( - (com.google.cloud.translate.v3.GetSupportedLanguagesRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_TRANSLATE_DOCUMENT: - serviceImpl.translateDocument( - (com.google.cloud.translate.v3.TranslateDocumentRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_BATCH_TRANSLATE_TEXT: - serviceImpl.batchTranslateText( - (com.google.cloud.translate.v3.BatchTranslateTextRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_BATCH_TRANSLATE_DOCUMENT: - serviceImpl.batchTranslateDocument( - (com.google.cloud.translate.v3.BatchTranslateDocumentRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_GLOSSARY: - serviceImpl.createGlossary( - (com.google.cloud.translate.v3.CreateGlossaryRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_GLOSSARIES: - serviceImpl.listGlossaries( - (com.google.cloud.translate.v3.ListGlossariesRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_GLOSSARY: - serviceImpl.getGlossary( - (com.google.cloud.translate.v3.GetGlossaryRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_DELETE_GLOSSARY: - serviceImpl.deleteGlossary( - (com.google.cloud.translate.v3.DeleteGlossaryRequest) 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(); - } - } - } - - private abstract static class TranslationServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - TranslationServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("TranslationService"); - } - } - - private static final class TranslationServiceFileDescriptorSupplier - extends TranslationServiceBaseDescriptorSupplier { - TranslationServiceFileDescriptorSupplier() {} - } - - private static final class TranslationServiceMethodDescriptorSupplier - extends TranslationServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - TranslationServiceMethodDescriptorSupplier(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 (TranslationServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new TranslationServiceFileDescriptorSupplier()) - .addMethod(getTranslateTextMethod()) - .addMethod(getDetectLanguageMethod()) - .addMethod(getGetSupportedLanguagesMethod()) - .addMethod(getTranslateDocumentMethod()) - .addMethod(getBatchTranslateTextMethod()) - .addMethod(getBatchTranslateDocumentMethod()) - .addMethod(getCreateGlossaryMethod()) - .addMethod(getListGlossariesMethod()) - .addMethod(getGetGlossaryMethod()) - .addMethod(getDeleteGlossaryMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/grpc-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/LocationsGrpc.java b/grpc-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/LocationsGrpc.java deleted file mode 100644 index 16f28b5c..00000000 --- a/grpc-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/LocationsGrpc.java +++ /dev/null @@ -1,476 +0,0 @@ -/* - * Copyright 2020 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.cloud.location; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * An abstract interface that provides location-related information for
- * a service. Service-specific metadata is provided through the
- * [Location.metadata][google.cloud.location.Location.metadata] field.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/location/locations.proto") -public final class LocationsGrpc { - - private LocationsGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.location.Locations"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.location.ListLocationsRequest, - com.google.cloud.location.ListLocationsResponse> - getListLocationsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListLocations", - requestType = com.google.cloud.location.ListLocationsRequest.class, - responseType = com.google.cloud.location.ListLocationsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.location.ListLocationsRequest, - com.google.cloud.location.ListLocationsResponse> - getListLocationsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.location.ListLocationsRequest, - com.google.cloud.location.ListLocationsResponse> - getListLocationsMethod; - if ((getListLocationsMethod = LocationsGrpc.getListLocationsMethod) == null) { - synchronized (LocationsGrpc.class) { - if ((getListLocationsMethod = LocationsGrpc.getListLocationsMethod) == null) { - LocationsGrpc.getListLocationsMethod = - getListLocationsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListLocations")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.location.ListLocationsRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.location.ListLocationsResponse.getDefaultInstance())) - .setSchemaDescriptor(new LocationsMethodDescriptorSupplier("ListLocations")) - .build(); - } - } - } - return getListLocationsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.location.GetLocationRequest, com.google.cloud.location.Location> - getGetLocationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetLocation", - requestType = com.google.cloud.location.GetLocationRequest.class, - responseType = com.google.cloud.location.Location.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.location.GetLocationRequest, com.google.cloud.location.Location> - getGetLocationMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.location.GetLocationRequest, com.google.cloud.location.Location> - getGetLocationMethod; - if ((getGetLocationMethod = LocationsGrpc.getGetLocationMethod) == null) { - synchronized (LocationsGrpc.class) { - if ((getGetLocationMethod = LocationsGrpc.getGetLocationMethod) == null) { - LocationsGrpc.getGetLocationMethod = - getGetLocationMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetLocation")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.location.GetLocationRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.location.Location.getDefaultInstance())) - .setSchemaDescriptor(new LocationsMethodDescriptorSupplier("GetLocation")) - .build(); - } - } - } - return getGetLocationMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static LocationsStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public LocationsStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new LocationsStub(channel, callOptions); - } - }; - return LocationsStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static LocationsBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public LocationsBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new LocationsBlockingStub(channel, callOptions); - } - }; - return LocationsBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static LocationsFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public LocationsFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new LocationsFutureStub(channel, callOptions); - } - }; - return LocationsFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * An abstract interface that provides location-related information for
-   * a service. Service-specific metadata is provided through the
-   * [Location.metadata][google.cloud.location.Location.metadata] field.
-   * 
- */ - public abstract static class LocationsImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Lists information about the supported locations for this service.
-     * 
- */ - public void listLocations( - com.google.cloud.location.ListLocationsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListLocationsMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets information about a location.
-     * 
- */ - public void getLocation( - com.google.cloud.location.GetLocationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetLocationMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListLocationsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.location.ListLocationsRequest, - com.google.cloud.location.ListLocationsResponse>( - this, METHODID_LIST_LOCATIONS))) - .addMethod( - getGetLocationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.location.GetLocationRequest, - com.google.cloud.location.Location>(this, METHODID_GET_LOCATION))) - .build(); - } - } - - /** - * - * - *
-   * An abstract interface that provides location-related information for
-   * a service. Service-specific metadata is provided through the
-   * [Location.metadata][google.cloud.location.Location.metadata] field.
-   * 
- */ - public static final class LocationsStub extends io.grpc.stub.AbstractAsyncStub { - private LocationsStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected LocationsStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new LocationsStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists information about the supported locations for this service.
-     * 
- */ - public void listLocations( - com.google.cloud.location.ListLocationsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListLocationsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets information about a location.
-     * 
- */ - public void getLocation( - com.google.cloud.location.GetLocationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetLocationMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * An abstract interface that provides location-related information for
-   * a service. Service-specific metadata is provided through the
-   * [Location.metadata][google.cloud.location.Location.metadata] field.
-   * 
- */ - public static final class LocationsBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private LocationsBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected LocationsBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new LocationsBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists information about the supported locations for this service.
-     * 
- */ - public com.google.cloud.location.ListLocationsResponse listLocations( - com.google.cloud.location.ListLocationsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListLocationsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets information about a location.
-     * 
- */ - public com.google.cloud.location.Location getLocation( - com.google.cloud.location.GetLocationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetLocationMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * An abstract interface that provides location-related information for
-   * a service. Service-specific metadata is provided through the
-   * [Location.metadata][google.cloud.location.Location.metadata] field.
-   * 
- */ - public static final class LocationsFutureStub - extends io.grpc.stub.AbstractFutureStub { - private LocationsFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected LocationsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new LocationsFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists information about the supported locations for this service.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.location.ListLocationsResponse> - listLocations(com.google.cloud.location.ListLocationsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListLocationsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets information about a location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - getLocation(com.google.cloud.location.GetLocationRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetLocationMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_LOCATIONS = 0; - private static final int METHODID_GET_LOCATION = 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 final LocationsImplBase serviceImpl; - private final int methodId; - - MethodHandlers(LocationsImplBase 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_LIST_LOCATIONS: - serviceImpl.listLocations( - (com.google.cloud.location.ListLocationsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_LOCATION: - serviceImpl.getLocation( - (com.google.cloud.location.GetLocationRequest) 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(); - } - } - } - - private abstract static class LocationsBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - LocationsBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.location.LocationsProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Locations"); - } - } - - private static final class LocationsFileDescriptorSupplier - extends LocationsBaseDescriptorSupplier { - LocationsFileDescriptorSupplier() {} - } - - private static final class LocationsMethodDescriptorSupplier - extends LocationsBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - LocationsMethodDescriptorSupplier(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 (LocationsGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new LocationsFileDescriptorSupplier()) - .addMethod(getListLocationsMethod()) - .addMethod(getGetLocationMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/grpc-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceGrpc.java b/grpc-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceGrpc.java deleted file mode 100644 index f614b687..00000000 --- a/grpc-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceGrpc.java +++ /dev/null @@ -1,1501 +0,0 @@ -/* - * Copyright 2020 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.cloud.translate.v3beta1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * Provides natural language translation operations.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/translate/v3beta1/translation_service.proto") -public final class TranslationServiceGrpc { - - private TranslationServiceGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.translation.v3beta1.TranslationService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.translate.v3beta1.TranslateTextRequest, - com.google.cloud.translate.v3beta1.TranslateTextResponse> - getTranslateTextMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "TranslateText", - requestType = com.google.cloud.translate.v3beta1.TranslateTextRequest.class, - responseType = com.google.cloud.translate.v3beta1.TranslateTextResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.translate.v3beta1.TranslateTextRequest, - com.google.cloud.translate.v3beta1.TranslateTextResponse> - getTranslateTextMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.translate.v3beta1.TranslateTextRequest, - com.google.cloud.translate.v3beta1.TranslateTextResponse> - getTranslateTextMethod; - if ((getTranslateTextMethod = TranslationServiceGrpc.getTranslateTextMethod) == null) { - synchronized (TranslationServiceGrpc.class) { - if ((getTranslateTextMethod = TranslationServiceGrpc.getTranslateTextMethod) == null) { - TranslationServiceGrpc.getTranslateTextMethod = - getTranslateTextMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TranslateText")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3beta1.TranslateTextRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3beta1.TranslateTextResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new TranslationServiceMethodDescriptorSupplier("TranslateText")) - .build(); - } - } - } - return getTranslateTextMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.translate.v3beta1.DetectLanguageRequest, - com.google.cloud.translate.v3beta1.DetectLanguageResponse> - getDetectLanguageMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DetectLanguage", - requestType = com.google.cloud.translate.v3beta1.DetectLanguageRequest.class, - responseType = com.google.cloud.translate.v3beta1.DetectLanguageResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.translate.v3beta1.DetectLanguageRequest, - com.google.cloud.translate.v3beta1.DetectLanguageResponse> - getDetectLanguageMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.translate.v3beta1.DetectLanguageRequest, - com.google.cloud.translate.v3beta1.DetectLanguageResponse> - getDetectLanguageMethod; - if ((getDetectLanguageMethod = TranslationServiceGrpc.getDetectLanguageMethod) == null) { - synchronized (TranslationServiceGrpc.class) { - if ((getDetectLanguageMethod = TranslationServiceGrpc.getDetectLanguageMethod) == null) { - TranslationServiceGrpc.getDetectLanguageMethod = - getDetectLanguageMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DetectLanguage")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3beta1.DetectLanguageRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3beta1.DetectLanguageResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new TranslationServiceMethodDescriptorSupplier("DetectLanguage")) - .build(); - } - } - } - return getDetectLanguageMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest, - com.google.cloud.translate.v3beta1.SupportedLanguages> - getGetSupportedLanguagesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetSupportedLanguages", - requestType = com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest.class, - responseType = com.google.cloud.translate.v3beta1.SupportedLanguages.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest, - com.google.cloud.translate.v3beta1.SupportedLanguages> - getGetSupportedLanguagesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest, - com.google.cloud.translate.v3beta1.SupportedLanguages> - getGetSupportedLanguagesMethod; - if ((getGetSupportedLanguagesMethod = TranslationServiceGrpc.getGetSupportedLanguagesMethod) - == null) { - synchronized (TranslationServiceGrpc.class) { - if ((getGetSupportedLanguagesMethod = TranslationServiceGrpc.getGetSupportedLanguagesMethod) - == null) { - TranslationServiceGrpc.getGetSupportedLanguagesMethod = - getGetSupportedLanguagesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "GetSupportedLanguages")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3beta1.SupportedLanguages - .getDefaultInstance())) - .setSchemaDescriptor( - new TranslationServiceMethodDescriptorSupplier("GetSupportedLanguages")) - .build(); - } - } - } - return getGetSupportedLanguagesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.translate.v3beta1.TranslateDocumentRequest, - com.google.cloud.translate.v3beta1.TranslateDocumentResponse> - getTranslateDocumentMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "TranslateDocument", - requestType = com.google.cloud.translate.v3beta1.TranslateDocumentRequest.class, - responseType = com.google.cloud.translate.v3beta1.TranslateDocumentResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.translate.v3beta1.TranslateDocumentRequest, - com.google.cloud.translate.v3beta1.TranslateDocumentResponse> - getTranslateDocumentMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.translate.v3beta1.TranslateDocumentRequest, - com.google.cloud.translate.v3beta1.TranslateDocumentResponse> - getTranslateDocumentMethod; - if ((getTranslateDocumentMethod = TranslationServiceGrpc.getTranslateDocumentMethod) == null) { - synchronized (TranslationServiceGrpc.class) { - if ((getTranslateDocumentMethod = TranslationServiceGrpc.getTranslateDocumentMethod) - == null) { - TranslationServiceGrpc.getTranslateDocumentMethod = - getTranslateDocumentMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TranslateDocument")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3beta1.TranslateDocumentRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3beta1.TranslateDocumentResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new TranslationServiceMethodDescriptorSupplier("TranslateDocument")) - .build(); - } - } - } - return getTranslateDocumentMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.translate.v3beta1.BatchTranslateTextRequest, - com.google.longrunning.Operation> - getBatchTranslateTextMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "BatchTranslateText", - requestType = com.google.cloud.translate.v3beta1.BatchTranslateTextRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.translate.v3beta1.BatchTranslateTextRequest, - com.google.longrunning.Operation> - getBatchTranslateTextMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.translate.v3beta1.BatchTranslateTextRequest, - com.google.longrunning.Operation> - getBatchTranslateTextMethod; - if ((getBatchTranslateTextMethod = TranslationServiceGrpc.getBatchTranslateTextMethod) - == null) { - synchronized (TranslationServiceGrpc.class) { - if ((getBatchTranslateTextMethod = TranslationServiceGrpc.getBatchTranslateTextMethod) - == null) { - TranslationServiceGrpc.getBatchTranslateTextMethod = - getBatchTranslateTextMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BatchTranslateText")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3beta1.BatchTranslateTextRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new TranslationServiceMethodDescriptorSupplier("BatchTranslateText")) - .build(); - } - } - } - return getBatchTranslateTextMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest, - com.google.longrunning.Operation> - getBatchTranslateDocumentMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "BatchTranslateDocument", - requestType = com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest, - com.google.longrunning.Operation> - getBatchTranslateDocumentMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest, - com.google.longrunning.Operation> - getBatchTranslateDocumentMethod; - if ((getBatchTranslateDocumentMethod = TranslationServiceGrpc.getBatchTranslateDocumentMethod) - == null) { - synchronized (TranslationServiceGrpc.class) { - if ((getBatchTranslateDocumentMethod = - TranslationServiceGrpc.getBatchTranslateDocumentMethod) - == null) { - TranslationServiceGrpc.getBatchTranslateDocumentMethod = - getBatchTranslateDocumentMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "BatchTranslateDocument")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new TranslationServiceMethodDescriptorSupplier("BatchTranslateDocument")) - .build(); - } - } - } - return getBatchTranslateDocumentMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.translate.v3beta1.CreateGlossaryRequest, - com.google.longrunning.Operation> - getCreateGlossaryMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateGlossary", - requestType = com.google.cloud.translate.v3beta1.CreateGlossaryRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.translate.v3beta1.CreateGlossaryRequest, - com.google.longrunning.Operation> - getCreateGlossaryMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.translate.v3beta1.CreateGlossaryRequest, - com.google.longrunning.Operation> - getCreateGlossaryMethod; - if ((getCreateGlossaryMethod = TranslationServiceGrpc.getCreateGlossaryMethod) == null) { - synchronized (TranslationServiceGrpc.class) { - if ((getCreateGlossaryMethod = TranslationServiceGrpc.getCreateGlossaryMethod) == null) { - TranslationServiceGrpc.getCreateGlossaryMethod = - getCreateGlossaryMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateGlossary")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3beta1.CreateGlossaryRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new TranslationServiceMethodDescriptorSupplier("CreateGlossary")) - .build(); - } - } - } - return getCreateGlossaryMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.translate.v3beta1.ListGlossariesRequest, - com.google.cloud.translate.v3beta1.ListGlossariesResponse> - getListGlossariesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListGlossaries", - requestType = com.google.cloud.translate.v3beta1.ListGlossariesRequest.class, - responseType = com.google.cloud.translate.v3beta1.ListGlossariesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.translate.v3beta1.ListGlossariesRequest, - com.google.cloud.translate.v3beta1.ListGlossariesResponse> - getListGlossariesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.translate.v3beta1.ListGlossariesRequest, - com.google.cloud.translate.v3beta1.ListGlossariesResponse> - getListGlossariesMethod; - if ((getListGlossariesMethod = TranslationServiceGrpc.getListGlossariesMethod) == null) { - synchronized (TranslationServiceGrpc.class) { - if ((getListGlossariesMethod = TranslationServiceGrpc.getListGlossariesMethod) == null) { - TranslationServiceGrpc.getListGlossariesMethod = - getListGlossariesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListGlossaries")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3beta1.ListGlossariesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3beta1.ListGlossariesResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new TranslationServiceMethodDescriptorSupplier("ListGlossaries")) - .build(); - } - } - } - return getListGlossariesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.translate.v3beta1.GetGlossaryRequest, - com.google.cloud.translate.v3beta1.Glossary> - getGetGlossaryMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetGlossary", - requestType = com.google.cloud.translate.v3beta1.GetGlossaryRequest.class, - responseType = com.google.cloud.translate.v3beta1.Glossary.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.translate.v3beta1.GetGlossaryRequest, - com.google.cloud.translate.v3beta1.Glossary> - getGetGlossaryMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.translate.v3beta1.GetGlossaryRequest, - com.google.cloud.translate.v3beta1.Glossary> - getGetGlossaryMethod; - if ((getGetGlossaryMethod = TranslationServiceGrpc.getGetGlossaryMethod) == null) { - synchronized (TranslationServiceGrpc.class) { - if ((getGetGlossaryMethod = TranslationServiceGrpc.getGetGlossaryMethod) == null) { - TranslationServiceGrpc.getGetGlossaryMethod = - getGetGlossaryMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetGlossary")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3beta1.GetGlossaryRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3beta1.Glossary.getDefaultInstance())) - .setSchemaDescriptor( - new TranslationServiceMethodDescriptorSupplier("GetGlossary")) - .build(); - } - } - } - return getGetGlossaryMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.translate.v3beta1.DeleteGlossaryRequest, - com.google.longrunning.Operation> - getDeleteGlossaryMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteGlossary", - requestType = com.google.cloud.translate.v3beta1.DeleteGlossaryRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.translate.v3beta1.DeleteGlossaryRequest, - com.google.longrunning.Operation> - getDeleteGlossaryMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.translate.v3beta1.DeleteGlossaryRequest, - com.google.longrunning.Operation> - getDeleteGlossaryMethod; - if ((getDeleteGlossaryMethod = TranslationServiceGrpc.getDeleteGlossaryMethod) == null) { - synchronized (TranslationServiceGrpc.class) { - if ((getDeleteGlossaryMethod = TranslationServiceGrpc.getDeleteGlossaryMethod) == null) { - TranslationServiceGrpc.getDeleteGlossaryMethod = - getDeleteGlossaryMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteGlossary")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3beta1.DeleteGlossaryRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new TranslationServiceMethodDescriptorSupplier("DeleteGlossary")) - .build(); - } - } - } - return getDeleteGlossaryMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static TranslationServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public TranslationServiceStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TranslationServiceStub(channel, callOptions); - } - }; - return TranslationServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static TranslationServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public TranslationServiceBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TranslationServiceBlockingStub(channel, callOptions); - } - }; - return TranslationServiceBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static TranslationServiceFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public TranslationServiceFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TranslationServiceFutureStub(channel, callOptions); - } - }; - return TranslationServiceFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Provides natural language translation operations.
-   * 
- */ - public abstract static class TranslationServiceImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Translates input text and returns translated text.
-     * 
- */ - public void translateText( - com.google.cloud.translate.v3beta1.TranslateTextRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getTranslateTextMethod(), responseObserver); - } - - /** - * - * - *
-     * Detects the language of text within a request.
-     * 
- */ - public void detectLanguage( - com.google.cloud.translate.v3beta1.DetectLanguageRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDetectLanguageMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns a list of supported languages for translation.
-     * 
- */ - public void getSupportedLanguages( - com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetSupportedLanguagesMethod(), responseObserver); - } - - /** - * - * - *
-     * Translates documents in synchronous mode.
-     * 
- */ - public void translateDocument( - com.google.cloud.translate.v3beta1.TranslateDocumentRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getTranslateDocumentMethod(), responseObserver); - } - - /** - * - * - *
-     * Translates a large volume of text in asynchronous batch mode.
-     * This function provides real-time output as the inputs are being processed.
-     * If caller cancels a request, the partial results (for an input file, it's
-     * all or nothing) may still be available on the specified output location.
-     * This call returns immediately and you can
-     * use google.longrunning.Operation.name to poll the status of the call.
-     * 
- */ - public void batchTranslateText( - com.google.cloud.translate.v3beta1.BatchTranslateTextRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getBatchTranslateTextMethod(), responseObserver); - } - - /** - * - * - *
-     * Translates a large volume of documents in asynchronous batch mode.
-     * This function provides real-time output as the inputs are being processed.
-     * If caller cancels a request, the partial results (for an input file, it's
-     * all or nothing) may still be available on the specified output location.
-     * This call returns immediately and you can use
-     * google.longrunning.Operation.name to poll the status of the call.
-     * 
- */ - public void batchTranslateDocument( - com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getBatchTranslateDocumentMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a glossary and returns the long-running operation. Returns
-     * NOT_FOUND, if the project doesn't exist.
-     * 
- */ - public void createGlossary( - com.google.cloud.translate.v3beta1.CreateGlossaryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateGlossaryMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't
-     * exist.
-     * 
- */ - public void listGlossaries( - com.google.cloud.translate.v3beta1.ListGlossariesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListGlossariesMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't
-     * exist.
-     * 
- */ - public void getGlossary( - com.google.cloud.translate.v3beta1.GetGlossaryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetGlossaryMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes a glossary, or cancels glossary construction
-     * if the glossary isn't created yet.
-     * Returns NOT_FOUND, if the glossary doesn't exist.
-     * 
- */ - public void deleteGlossary( - com.google.cloud.translate.v3beta1.DeleteGlossaryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteGlossaryMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getTranslateTextMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.translate.v3beta1.TranslateTextRequest, - com.google.cloud.translate.v3beta1.TranslateTextResponse>( - this, METHODID_TRANSLATE_TEXT))) - .addMethod( - getDetectLanguageMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.translate.v3beta1.DetectLanguageRequest, - com.google.cloud.translate.v3beta1.DetectLanguageResponse>( - this, METHODID_DETECT_LANGUAGE))) - .addMethod( - getGetSupportedLanguagesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest, - com.google.cloud.translate.v3beta1.SupportedLanguages>( - this, METHODID_GET_SUPPORTED_LANGUAGES))) - .addMethod( - getTranslateDocumentMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.translate.v3beta1.TranslateDocumentRequest, - com.google.cloud.translate.v3beta1.TranslateDocumentResponse>( - this, METHODID_TRANSLATE_DOCUMENT))) - .addMethod( - getBatchTranslateTextMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.translate.v3beta1.BatchTranslateTextRequest, - com.google.longrunning.Operation>(this, METHODID_BATCH_TRANSLATE_TEXT))) - .addMethod( - getBatchTranslateDocumentMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest, - com.google.longrunning.Operation>(this, METHODID_BATCH_TRANSLATE_DOCUMENT))) - .addMethod( - getCreateGlossaryMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.translate.v3beta1.CreateGlossaryRequest, - com.google.longrunning.Operation>(this, METHODID_CREATE_GLOSSARY))) - .addMethod( - getListGlossariesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.translate.v3beta1.ListGlossariesRequest, - com.google.cloud.translate.v3beta1.ListGlossariesResponse>( - this, METHODID_LIST_GLOSSARIES))) - .addMethod( - getGetGlossaryMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.translate.v3beta1.GetGlossaryRequest, - com.google.cloud.translate.v3beta1.Glossary>(this, METHODID_GET_GLOSSARY))) - .addMethod( - getDeleteGlossaryMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.translate.v3beta1.DeleteGlossaryRequest, - com.google.longrunning.Operation>(this, METHODID_DELETE_GLOSSARY))) - .build(); - } - } - - /** - * - * - *
-   * Provides natural language translation operations.
-   * 
- */ - public static final class TranslationServiceStub - extends io.grpc.stub.AbstractAsyncStub { - private TranslationServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected TranslationServiceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TranslationServiceStub(channel, callOptions); - } - - /** - * - * - *
-     * Translates input text and returns translated text.
-     * 
- */ - public void translateText( - com.google.cloud.translate.v3beta1.TranslateTextRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getTranslateTextMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Detects the language of text within a request.
-     * 
- */ - public void detectLanguage( - com.google.cloud.translate.v3beta1.DetectLanguageRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDetectLanguageMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns a list of supported languages for translation.
-     * 
- */ - public void getSupportedLanguages( - com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetSupportedLanguagesMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Translates documents in synchronous mode.
-     * 
- */ - public void translateDocument( - com.google.cloud.translate.v3beta1.TranslateDocumentRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getTranslateDocumentMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Translates a large volume of text in asynchronous batch mode.
-     * This function provides real-time output as the inputs are being processed.
-     * If caller cancels a request, the partial results (for an input file, it's
-     * all or nothing) may still be available on the specified output location.
-     * This call returns immediately and you can
-     * use google.longrunning.Operation.name to poll the status of the call.
-     * 
- */ - public void batchTranslateText( - com.google.cloud.translate.v3beta1.BatchTranslateTextRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getBatchTranslateTextMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Translates a large volume of documents in asynchronous batch mode.
-     * This function provides real-time output as the inputs are being processed.
-     * If caller cancels a request, the partial results (for an input file, it's
-     * all or nothing) may still be available on the specified output location.
-     * This call returns immediately and you can use
-     * google.longrunning.Operation.name to poll the status of the call.
-     * 
- */ - public void batchTranslateDocument( - com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getBatchTranslateDocumentMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates a glossary and returns the long-running operation. Returns
-     * NOT_FOUND, if the project doesn't exist.
-     * 
- */ - public void createGlossary( - com.google.cloud.translate.v3beta1.CreateGlossaryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateGlossaryMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't
-     * exist.
-     * 
- */ - public void listGlossaries( - com.google.cloud.translate.v3beta1.ListGlossariesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListGlossariesMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't
-     * exist.
-     * 
- */ - public void getGlossary( - com.google.cloud.translate.v3beta1.GetGlossaryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetGlossaryMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes a glossary, or cancels glossary construction
-     * if the glossary isn't created yet.
-     * Returns NOT_FOUND, if the glossary doesn't exist.
-     * 
- */ - public void deleteGlossary( - com.google.cloud.translate.v3beta1.DeleteGlossaryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteGlossaryMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * Provides natural language translation operations.
-   * 
- */ - public static final class TranslationServiceBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private TranslationServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected TranslationServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TranslationServiceBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Translates input text and returns translated text.
-     * 
- */ - public com.google.cloud.translate.v3beta1.TranslateTextResponse translateText( - com.google.cloud.translate.v3beta1.TranslateTextRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getTranslateTextMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Detects the language of text within a request.
-     * 
- */ - public com.google.cloud.translate.v3beta1.DetectLanguageResponse detectLanguage( - com.google.cloud.translate.v3beta1.DetectLanguageRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDetectLanguageMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns a list of supported languages for translation.
-     * 
- */ - public com.google.cloud.translate.v3beta1.SupportedLanguages getSupportedLanguages( - com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetSupportedLanguagesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Translates documents in synchronous mode.
-     * 
- */ - public com.google.cloud.translate.v3beta1.TranslateDocumentResponse translateDocument( - com.google.cloud.translate.v3beta1.TranslateDocumentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getTranslateDocumentMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Translates a large volume of text in asynchronous batch mode.
-     * This function provides real-time output as the inputs are being processed.
-     * If caller cancels a request, the partial results (for an input file, it's
-     * all or nothing) may still be available on the specified output location.
-     * This call returns immediately and you can
-     * use google.longrunning.Operation.name to poll the status of the call.
-     * 
- */ - public com.google.longrunning.Operation batchTranslateText( - com.google.cloud.translate.v3beta1.BatchTranslateTextRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getBatchTranslateTextMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Translates a large volume of documents in asynchronous batch mode.
-     * This function provides real-time output as the inputs are being processed.
-     * If caller cancels a request, the partial results (for an input file, it's
-     * all or nothing) may still be available on the specified output location.
-     * This call returns immediately and you can use
-     * google.longrunning.Operation.name to poll the status of the call.
-     * 
- */ - public com.google.longrunning.Operation batchTranslateDocument( - com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getBatchTranslateDocumentMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a glossary and returns the long-running operation. Returns
-     * NOT_FOUND, if the project doesn't exist.
-     * 
- */ - public com.google.longrunning.Operation createGlossary( - com.google.cloud.translate.v3beta1.CreateGlossaryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateGlossaryMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't
-     * exist.
-     * 
- */ - public com.google.cloud.translate.v3beta1.ListGlossariesResponse listGlossaries( - com.google.cloud.translate.v3beta1.ListGlossariesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListGlossariesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't
-     * exist.
-     * 
- */ - public com.google.cloud.translate.v3beta1.Glossary getGlossary( - com.google.cloud.translate.v3beta1.GetGlossaryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetGlossaryMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a glossary, or cancels glossary construction
-     * if the glossary isn't created yet.
-     * Returns NOT_FOUND, if the glossary doesn't exist.
-     * 
- */ - public com.google.longrunning.Operation deleteGlossary( - com.google.cloud.translate.v3beta1.DeleteGlossaryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteGlossaryMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * Provides natural language translation operations.
-   * 
- */ - public static final class TranslationServiceFutureStub - extends io.grpc.stub.AbstractFutureStub { - private TranslationServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected TranslationServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TranslationServiceFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Translates input text and returns translated text.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.translate.v3beta1.TranslateTextResponse> - translateText(com.google.cloud.translate.v3beta1.TranslateTextRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getTranslateTextMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Detects the language of text within a request.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.translate.v3beta1.DetectLanguageResponse> - detectLanguage(com.google.cloud.translate.v3beta1.DetectLanguageRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDetectLanguageMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns a list of supported languages for translation.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.translate.v3beta1.SupportedLanguages> - getSupportedLanguages( - com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetSupportedLanguagesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Translates documents in synchronous mode.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.translate.v3beta1.TranslateDocumentResponse> - translateDocument(com.google.cloud.translate.v3beta1.TranslateDocumentRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getTranslateDocumentMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Translates a large volume of text in asynchronous batch mode.
-     * This function provides real-time output as the inputs are being processed.
-     * If caller cancels a request, the partial results (for an input file, it's
-     * all or nothing) may still be available on the specified output location.
-     * This call returns immediately and you can
-     * use google.longrunning.Operation.name to poll the status of the call.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - batchTranslateText(com.google.cloud.translate.v3beta1.BatchTranslateTextRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getBatchTranslateTextMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Translates a large volume of documents in asynchronous batch mode.
-     * This function provides real-time output as the inputs are being processed.
-     * If caller cancels a request, the partial results (for an input file, it's
-     * all or nothing) may still be available on the specified output location.
-     * This call returns immediately and you can use
-     * google.longrunning.Operation.name to poll the status of the call.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - batchTranslateDocument( - com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getBatchTranslateDocumentMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a glossary and returns the long-running operation. Returns
-     * NOT_FOUND, if the project doesn't exist.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createGlossary(com.google.cloud.translate.v3beta1.CreateGlossaryRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateGlossaryMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't
-     * exist.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.translate.v3beta1.ListGlossariesResponse> - listGlossaries(com.google.cloud.translate.v3beta1.ListGlossariesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListGlossariesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't
-     * exist.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.translate.v3beta1.Glossary> - getGlossary(com.google.cloud.translate.v3beta1.GetGlossaryRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetGlossaryMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes a glossary, or cancels glossary construction
-     * if the glossary isn't created yet.
-     * Returns NOT_FOUND, if the glossary doesn't exist.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteGlossary(com.google.cloud.translate.v3beta1.DeleteGlossaryRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteGlossaryMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_TRANSLATE_TEXT = 0; - private static final int METHODID_DETECT_LANGUAGE = 1; - private static final int METHODID_GET_SUPPORTED_LANGUAGES = 2; - private static final int METHODID_TRANSLATE_DOCUMENT = 3; - private static final int METHODID_BATCH_TRANSLATE_TEXT = 4; - private static final int METHODID_BATCH_TRANSLATE_DOCUMENT = 5; - private static final int METHODID_CREATE_GLOSSARY = 6; - private static final int METHODID_LIST_GLOSSARIES = 7; - private static final int METHODID_GET_GLOSSARY = 8; - private static final int METHODID_DELETE_GLOSSARY = 9; - - 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 TranslationServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(TranslationServiceImplBase 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_TRANSLATE_TEXT: - serviceImpl.translateText( - (com.google.cloud.translate.v3beta1.TranslateTextRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.translate.v3beta1.TranslateTextResponse>) - responseObserver); - break; - case METHODID_DETECT_LANGUAGE: - serviceImpl.detectLanguage( - (com.google.cloud.translate.v3beta1.DetectLanguageRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.translate.v3beta1.DetectLanguageResponse>) - responseObserver); - break; - case METHODID_GET_SUPPORTED_LANGUAGES: - serviceImpl.getSupportedLanguages( - (com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_TRANSLATE_DOCUMENT: - serviceImpl.translateDocument( - (com.google.cloud.translate.v3beta1.TranslateDocumentRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.translate.v3beta1.TranslateDocumentResponse>) - responseObserver); - break; - case METHODID_BATCH_TRANSLATE_TEXT: - serviceImpl.batchTranslateText( - (com.google.cloud.translate.v3beta1.BatchTranslateTextRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_BATCH_TRANSLATE_DOCUMENT: - serviceImpl.batchTranslateDocument( - (com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_GLOSSARY: - serviceImpl.createGlossary( - (com.google.cloud.translate.v3beta1.CreateGlossaryRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_GLOSSARIES: - serviceImpl.listGlossaries( - (com.google.cloud.translate.v3beta1.ListGlossariesRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.translate.v3beta1.ListGlossariesResponse>) - responseObserver); - break; - case METHODID_GET_GLOSSARY: - serviceImpl.getGlossary( - (com.google.cloud.translate.v3beta1.GetGlossaryRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_DELETE_GLOSSARY: - serviceImpl.deleteGlossary( - (com.google.cloud.translate.v3beta1.DeleteGlossaryRequest) 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(); - } - } - } - - private abstract static class TranslationServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - TranslationServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("TranslationService"); - } - } - - private static final class TranslationServiceFileDescriptorSupplier - extends TranslationServiceBaseDescriptorSupplier { - TranslationServiceFileDescriptorSupplier() {} - } - - private static final class TranslationServiceMethodDescriptorSupplier - extends TranslationServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - TranslationServiceMethodDescriptorSupplier(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 (TranslationServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new TranslationServiceFileDescriptorSupplier()) - .addMethod(getTranslateTextMethod()) - .addMethod(getDetectLanguageMethod()) - .addMethod(getGetSupportedLanguagesMethod()) - .addMethod(getTranslateDocumentMethod()) - .addMethod(getBatchTranslateTextMethod()) - .addMethod(getBatchTranslateDocumentMethod()) - .addMethod(getCreateGlossaryMethod()) - .addMethod(getListGlossariesMethod()) - .addMethod(getGetGlossaryMethod()) - .addMethod(getDeleteGlossaryMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/TranslationServiceClient.java b/owl-bot-staging/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/TranslationServiceClient.java new file mode 100644 index 00000000..0e2f7f01 --- /dev/null +++ b/owl-bot-staging/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/TranslationServiceClient.java @@ -0,0 +1,1738 @@ +/* + * Copyright 2021 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.cloud.translate.v3; + +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.longrunning.OperationFuture; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.translate.v3.stub.TranslationServiceStub; +import com.google.cloud.translate.v3.stub.TranslationServiceStubSettings; +import com.google.common.util.concurrent.MoreExecutors; +import com.google.longrunning.Operation; +import com.google.longrunning.OperationsClient; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Provides natural language translation operations. + * + *

This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *

{@code
+ * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+ *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ *   String targetLanguageCode = "targetLanguageCode-106414698";
+ *   List contents = new ArrayList<>();
+ *   TranslateTextResponse response =
+ *       translationServiceClient.translateText(parent, targetLanguageCode, contents);
+ * }
+ * }
+ * + *

Note: close() needs to be called on the TranslationServiceClient object to clean up resources + * such as threads. In the example above, try-with-resources is used, which automatically calls + * close(). + * + *

The surface of this class includes several types of Java methods for each of the API's + * methods: + * + *

    + *
  1. A "flattened" method. With this type of method, the fields of the request type have been + * converted into function parameters. It may be the case that not all fields are available as + * parameters, and not every API method will have a flattened method entry point. + *
  2. A "request object" method. This type of method only takes one parameter, a request object, + * which must be constructed before the call. Not every API method will have a request object + * method. + *
  3. A "callable" method. This type of method takes no parameters and returns an immutable API + * callable object, which can be used to initiate calls to the service. + *
+ * + *

See the individual methods for example code. + * + *

Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *

This class can be customized by passing in a custom instance of TranslationServiceSettings to + * create(). For example: + * + *

To customize credentials: + * + *

{@code
+ * TranslationServiceSettings translationServiceSettings =
+ *     TranslationServiceSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * TranslationServiceClient translationServiceClient =
+ *     TranslationServiceClient.create(translationServiceSettings);
+ * }
+ * + *

To customize the endpoint: + * + *

{@code
+ * TranslationServiceSettings translationServiceSettings =
+ *     TranslationServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * TranslationServiceClient translationServiceClient =
+ *     TranslationServiceClient.create(translationServiceSettings);
+ * }
+ * + *

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@Generated("by gapic-generator-java") +public class TranslationServiceClient implements BackgroundResource { + private final TranslationServiceSettings settings; + private final TranslationServiceStub stub; + private final OperationsClient operationsClient; + + /** Constructs an instance of TranslationServiceClient with default settings. */ + public static final TranslationServiceClient create() throws IOException { + return create(TranslationServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of TranslationServiceClient, using the given settings. The channels are + * created based on the settings passed in, or defaults for any settings that are not set. + */ + public static final TranslationServiceClient create(TranslationServiceSettings settings) + throws IOException { + return new TranslationServiceClient(settings); + } + + /** + * Constructs an instance of TranslationServiceClient, using the given stub for making calls. This + * is for advanced usage - prefer using create(TranslationServiceSettings). + */ + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public static final TranslationServiceClient create(TranslationServiceStub stub) { + return new TranslationServiceClient(stub); + } + + /** + * Constructs an instance of TranslationServiceClient, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected TranslationServiceClient(TranslationServiceSettings settings) throws IOException { + this.settings = settings; + this.stub = ((TranslationServiceStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + protected TranslationServiceClient(TranslationServiceStub stub) { + this.settings = null; + this.stub = stub; + this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); + } + + public final TranslationServiceSettings getSettings() { + return settings; + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public TranslationServiceStub getStub() { + return stub; + } + + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + public final OperationsClient getOperationsClient() { + return operationsClient; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Translates input text and returns translated text. + * + *

Sample code: + * + *

{@code
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   String targetLanguageCode = "targetLanguageCode-106414698";
+   *   List contents = new ArrayList<>();
+   *   TranslateTextResponse response =
+   *       translationServiceClient.translateText(parent, targetLanguageCode, contents);
+   * }
+   * }
+ * + * @param parent Required. Project or location to make a call. Must refer to a caller's project. + *

Format: `projects/{project-number-or-id}` or + * `projects/{project-number-or-id}/locations/{location-id}`. + *

For global calls, use `projects/{project-number-or-id}/locations/global` or + * `projects/{project-number-or-id}`. + *

Non-global location is required for requests using AutoML models or custom glossaries. + *

Models and glossaries must be within the same region (have same location-id), otherwise + * an INVALID_ARGUMENT (400) error is returned. + * @param targetLanguageCode Required. The BCP-47 language code to use for translation of the + * input text, set to one of the language codes listed in Language Support. + * @param contents Required. The content of the input in string format. We recommend the total + * content be less than 30k codepoints. The max length of this field is 1024. Use + * BatchTranslateText for larger text. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final TranslateTextResponse translateText( + LocationName parent, String targetLanguageCode, List contents) { + TranslateTextRequest request = + TranslateTextRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setTargetLanguageCode(targetLanguageCode) + .addAllContents(contents) + .build(); + return translateText(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Translates input text and returns translated text. + * + *

Sample code: + * + *

{@code
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   String targetLanguageCode = "targetLanguageCode-106414698";
+   *   List contents = new ArrayList<>();
+   *   TranslateTextResponse response =
+   *       translationServiceClient.translateText(parent, targetLanguageCode, contents);
+   * }
+   * }
+ * + * @param parent Required. Project or location to make a call. Must refer to a caller's project. + *

Format: `projects/{project-number-or-id}` or + * `projects/{project-number-or-id}/locations/{location-id}`. + *

For global calls, use `projects/{project-number-or-id}/locations/global` or + * `projects/{project-number-or-id}`. + *

Non-global location is required for requests using AutoML models or custom glossaries. + *

Models and glossaries must be within the same region (have same location-id), otherwise + * an INVALID_ARGUMENT (400) error is returned. + * @param targetLanguageCode Required. The BCP-47 language code to use for translation of the + * input text, set to one of the language codes listed in Language Support. + * @param contents Required. The content of the input in string format. We recommend the total + * content be less than 30k codepoints. The max length of this field is 1024. Use + * BatchTranslateText for larger text. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final TranslateTextResponse translateText( + String parent, String targetLanguageCode, List contents) { + TranslateTextRequest request = + TranslateTextRequest.newBuilder() + .setParent(parent) + .setTargetLanguageCode(targetLanguageCode) + .addAllContents(contents) + .build(); + return translateText(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Translates input text and returns translated text. + * + *

Sample code: + * + *

{@code
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   String model = "model104069929";
+   *   String mimeType = "mimeType-1392120434";
+   *   String sourceLanguageCode = "sourceLanguageCode1645917472";
+   *   String targetLanguageCode = "targetLanguageCode-106414698";
+   *   List contents = new ArrayList<>();
+   *   TranslateTextResponse response =
+   *       translationServiceClient.translateText(
+   *           parent, model, mimeType, sourceLanguageCode, targetLanguageCode, contents);
+   * }
+   * }
+ * + * @param parent Required. Project or location to make a call. Must refer to a caller's project. + *

Format: `projects/{project-number-or-id}` or + * `projects/{project-number-or-id}/locations/{location-id}`. + *

For global calls, use `projects/{project-number-or-id}/locations/global` or + * `projects/{project-number-or-id}`. + *

Non-global location is required for requests using AutoML models or custom glossaries. + *

Models and glossaries must be within the same region (have same location-id), otherwise + * an INVALID_ARGUMENT (400) error is returned. + * @param model Optional. The `model` type requested for this translation. + *

The format depends on model type: + *

- AutoML Translation models: + * `projects/{project-number-or-id}/locations/{location-id}/models/{model-id}` + *

- General (built-in) models: + * `projects/{project-number-or-id}/locations/{location-id}/models/general/nmt`, + *

For global (non-regionalized) requests, use `location-id` `global`. For example, + * `projects/{project-number-or-id}/locations/global/models/general/nmt`. + *

If not provided, the default Google model (NMT) will be used. + * @param mimeType Optional. The format of the source text, for example, "text/html", + * "text/plain". If left blank, the MIME type defaults to "text/html". + * @param sourceLanguageCode Optional. The BCP-47 language code of the input text if known, for + * example, "en-US" or "sr-Latn". Supported language codes are listed in Language Support. If + * the source language isn't specified, the API attempts to identify the source language + * automatically and returns the source language within the response. + * @param targetLanguageCode Required. The BCP-47 language code to use for translation of the + * input text, set to one of the language codes listed in Language Support. + * @param contents Required. The content of the input in string format. We recommend the total + * content be less than 30k codepoints. The max length of this field is 1024. Use + * BatchTranslateText for larger text. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final TranslateTextResponse translateText( + LocationName parent, + String model, + String mimeType, + String sourceLanguageCode, + String targetLanguageCode, + List contents) { + TranslateTextRequest request = + TranslateTextRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setModel(model) + .setMimeType(mimeType) + .setSourceLanguageCode(sourceLanguageCode) + .setTargetLanguageCode(targetLanguageCode) + .addAllContents(contents) + .build(); + return translateText(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Translates input text and returns translated text. + * + *

Sample code: + * + *

{@code
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   String model = "model104069929";
+   *   String mimeType = "mimeType-1392120434";
+   *   String sourceLanguageCode = "sourceLanguageCode1645917472";
+   *   String targetLanguageCode = "targetLanguageCode-106414698";
+   *   List contents = new ArrayList<>();
+   *   TranslateTextResponse response =
+   *       translationServiceClient.translateText(
+   *           parent, model, mimeType, sourceLanguageCode, targetLanguageCode, contents);
+   * }
+   * }
+ * + * @param parent Required. Project or location to make a call. Must refer to a caller's project. + *

Format: `projects/{project-number-or-id}` or + * `projects/{project-number-or-id}/locations/{location-id}`. + *

For global calls, use `projects/{project-number-or-id}/locations/global` or + * `projects/{project-number-or-id}`. + *

Non-global location is required for requests using AutoML models or custom glossaries. + *

Models and glossaries must be within the same region (have same location-id), otherwise + * an INVALID_ARGUMENT (400) error is returned. + * @param model Optional. The `model` type requested for this translation. + *

The format depends on model type: + *

- AutoML Translation models: + * `projects/{project-number-or-id}/locations/{location-id}/models/{model-id}` + *

- General (built-in) models: + * `projects/{project-number-or-id}/locations/{location-id}/models/general/nmt`, + *

For global (non-regionalized) requests, use `location-id` `global`. For example, + * `projects/{project-number-or-id}/locations/global/models/general/nmt`. + *

If not provided, the default Google model (NMT) will be used. + * @param mimeType Optional. The format of the source text, for example, "text/html", + * "text/plain". If left blank, the MIME type defaults to "text/html". + * @param sourceLanguageCode Optional. The BCP-47 language code of the input text if known, for + * example, "en-US" or "sr-Latn". Supported language codes are listed in Language Support. If + * the source language isn't specified, the API attempts to identify the source language + * automatically and returns the source language within the response. + * @param targetLanguageCode Required. The BCP-47 language code to use for translation of the + * input text, set to one of the language codes listed in Language Support. + * @param contents Required. The content of the input in string format. We recommend the total + * content be less than 30k codepoints. The max length of this field is 1024. Use + * BatchTranslateText for larger text. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final TranslateTextResponse translateText( + String parent, + String model, + String mimeType, + String sourceLanguageCode, + String targetLanguageCode, + List contents) { + TranslateTextRequest request = + TranslateTextRequest.newBuilder() + .setParent(parent) + .setModel(model) + .setMimeType(mimeType) + .setSourceLanguageCode(sourceLanguageCode) + .setTargetLanguageCode(targetLanguageCode) + .addAllContents(contents) + .build(); + return translateText(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Translates input text and returns translated text. + * + *

Sample code: + * + *

{@code
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   TranslateTextRequest request =
+   *       TranslateTextRequest.newBuilder()
+   *           .addAllContents(new ArrayList())
+   *           .setMimeType("mimeType-1392120434")
+   *           .setSourceLanguageCode("sourceLanguageCode1645917472")
+   *           .setTargetLanguageCode("targetLanguageCode-106414698")
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setModel("model104069929")
+   *           .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build())
+   *           .putAllLabels(new HashMap())
+   *           .build();
+   *   TranslateTextResponse response = translationServiceClient.translateText(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final TranslateTextResponse translateText(TranslateTextRequest request) { + return translateTextCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Translates input text and returns translated text. + * + *

Sample code: + * + *

{@code
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   TranslateTextRequest request =
+   *       TranslateTextRequest.newBuilder()
+   *           .addAllContents(new ArrayList())
+   *           .setMimeType("mimeType-1392120434")
+   *           .setSourceLanguageCode("sourceLanguageCode1645917472")
+   *           .setTargetLanguageCode("targetLanguageCode-106414698")
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setModel("model104069929")
+   *           .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build())
+   *           .putAllLabels(new HashMap())
+   *           .build();
+   *   ApiFuture future =
+   *       translationServiceClient.translateTextCallable().futureCall(request);
+   *   // Do something.
+   *   TranslateTextResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable translateTextCallable() { + return stub.translateTextCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Detects the language of text within a request. + * + *

Sample code: + * + *

{@code
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   String model = "model104069929";
+   *   String mimeType = "mimeType-1392120434";
+   *   String content = "content951530617";
+   *   DetectLanguageResponse response =
+   *       translationServiceClient.detectLanguage(parent, model, mimeType, content);
+   * }
+   * }
+ * + * @param parent Required. Project or location to make a call. Must refer to a caller's project. + *

Format: `projects/{project-number-or-id}/locations/{location-id}` or + * `projects/{project-number-or-id}`. + *

For global calls, use `projects/{project-number-or-id}/locations/global` or + * `projects/{project-number-or-id}`. + *

Only models within the same region (has same location-id) can be used. Otherwise an + * INVALID_ARGUMENT (400) error is returned. + * @param model Optional. The language detection model to be used. + *

Format: + * `projects/{project-number-or-id}/locations/{location-id}/models/language-detection/{model-id}` + *

Only one language detection model is currently supported: + * `projects/{project-number-or-id}/locations/{location-id}/models/language-detection/default`. + *

If not specified, the default model is used. + * @param mimeType Optional. The format of the source text, for example, "text/html", + * "text/plain". If left blank, the MIME type defaults to "text/html". + * @param content The content of the input stored as a string. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DetectLanguageResponse detectLanguage( + LocationName parent, String model, String mimeType, String content) { + DetectLanguageRequest request = + DetectLanguageRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setModel(model) + .setMimeType(mimeType) + .setContent(content) + .build(); + return detectLanguage(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Detects the language of text within a request. + * + *

Sample code: + * + *

{@code
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   String model = "model104069929";
+   *   String mimeType = "mimeType-1392120434";
+   *   String content = "content951530617";
+   *   DetectLanguageResponse response =
+   *       translationServiceClient.detectLanguage(parent, model, mimeType, content);
+   * }
+   * }
+ * + * @param parent Required. Project or location to make a call. Must refer to a caller's project. + *

Format: `projects/{project-number-or-id}/locations/{location-id}` or + * `projects/{project-number-or-id}`. + *

For global calls, use `projects/{project-number-or-id}/locations/global` or + * `projects/{project-number-or-id}`. + *

Only models within the same region (has same location-id) can be used. Otherwise an + * INVALID_ARGUMENT (400) error is returned. + * @param model Optional. The language detection model to be used. + *

Format: + * `projects/{project-number-or-id}/locations/{location-id}/models/language-detection/{model-id}` + *

Only one language detection model is currently supported: + * `projects/{project-number-or-id}/locations/{location-id}/models/language-detection/default`. + *

If not specified, the default model is used. + * @param mimeType Optional. The format of the source text, for example, "text/html", + * "text/plain". If left blank, the MIME type defaults to "text/html". + * @param content The content of the input stored as a string. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DetectLanguageResponse detectLanguage( + String parent, String model, String mimeType, String content) { + DetectLanguageRequest request = + DetectLanguageRequest.newBuilder() + .setParent(parent) + .setModel(model) + .setMimeType(mimeType) + .setContent(content) + .build(); + return detectLanguage(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Detects the language of text within a request. + * + *

Sample code: + * + *

{@code
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   DetectLanguageRequest request =
+   *       DetectLanguageRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setModel("model104069929")
+   *           .setMimeType("mimeType-1392120434")
+   *           .putAllLabels(new HashMap())
+   *           .build();
+   *   DetectLanguageResponse response = translationServiceClient.detectLanguage(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DetectLanguageResponse detectLanguage(DetectLanguageRequest request) { + return detectLanguageCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Detects the language of text within a request. + * + *

Sample code: + * + *

{@code
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   DetectLanguageRequest request =
+   *       DetectLanguageRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setModel("model104069929")
+   *           .setMimeType("mimeType-1392120434")
+   *           .putAllLabels(new HashMap())
+   *           .build();
+   *   ApiFuture future =
+   *       translationServiceClient.detectLanguageCallable().futureCall(request);
+   *   // Do something.
+   *   DetectLanguageResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + detectLanguageCallable() { + return stub.detectLanguageCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns a list of supported languages for translation. + * + *

Sample code: + * + *

{@code
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   String model = "model104069929";
+   *   String displayLanguageCode = "displayLanguageCode-1457478841";
+   *   SupportedLanguages response =
+   *       translationServiceClient.getSupportedLanguages(parent, model, displayLanguageCode);
+   * }
+   * }
+ * + * @param parent Required. Project or location to make a call. Must refer to a caller's project. + *

Format: `projects/{project-number-or-id}` or + * `projects/{project-number-or-id}/locations/{location-id}`. + *

For global calls, use `projects/{project-number-or-id}/locations/global` or + * `projects/{project-number-or-id}`. + *

Non-global location is required for AutoML models. + *

Only models within the same region (have same location-id) can be used, otherwise an + * INVALID_ARGUMENT (400) error is returned. + * @param model Optional. Get supported languages of this model. + *

The format depends on model type: + *

- AutoML Translation models: + * `projects/{project-number-or-id}/locations/{location-id}/models/{model-id}` + *

- General (built-in) models: + * `projects/{project-number-or-id}/locations/{location-id}/models/general/nmt`, + *

Returns languages supported by the specified model. If missing, we get supported + * languages of Google general NMT model. + * @param displayLanguageCode Optional. The language to use to return localized, human readable + * names of supported languages. If missing, then display names are not returned in a + * response. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SupportedLanguages getSupportedLanguages( + LocationName parent, String model, String displayLanguageCode) { + GetSupportedLanguagesRequest request = + GetSupportedLanguagesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setModel(model) + .setDisplayLanguageCode(displayLanguageCode) + .build(); + return getSupportedLanguages(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns a list of supported languages for translation. + * + *

Sample code: + * + *

{@code
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   String model = "model104069929";
+   *   String displayLanguageCode = "displayLanguageCode-1457478841";
+   *   SupportedLanguages response =
+   *       translationServiceClient.getSupportedLanguages(parent, model, displayLanguageCode);
+   * }
+   * }
+ * + * @param parent Required. Project or location to make a call. Must refer to a caller's project. + *

Format: `projects/{project-number-or-id}` or + * `projects/{project-number-or-id}/locations/{location-id}`. + *

For global calls, use `projects/{project-number-or-id}/locations/global` or + * `projects/{project-number-or-id}`. + *

Non-global location is required for AutoML models. + *

Only models within the same region (have same location-id) can be used, otherwise an + * INVALID_ARGUMENT (400) error is returned. + * @param model Optional. Get supported languages of this model. + *

The format depends on model type: + *

- AutoML Translation models: + * `projects/{project-number-or-id}/locations/{location-id}/models/{model-id}` + *

- General (built-in) models: + * `projects/{project-number-or-id}/locations/{location-id}/models/general/nmt`, + *

Returns languages supported by the specified model. If missing, we get supported + * languages of Google general NMT model. + * @param displayLanguageCode Optional. The language to use to return localized, human readable + * names of supported languages. If missing, then display names are not returned in a + * response. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SupportedLanguages getSupportedLanguages( + String parent, String model, String displayLanguageCode) { + GetSupportedLanguagesRequest request = + GetSupportedLanguagesRequest.newBuilder() + .setParent(parent) + .setModel(model) + .setDisplayLanguageCode(displayLanguageCode) + .build(); + return getSupportedLanguages(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns a list of supported languages for translation. + * + *

Sample code: + * + *

{@code
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   GetSupportedLanguagesRequest request =
+   *       GetSupportedLanguagesRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setDisplayLanguageCode("displayLanguageCode-1457478841")
+   *           .setModel("model104069929")
+   *           .build();
+   *   SupportedLanguages response = translationServiceClient.getSupportedLanguages(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SupportedLanguages getSupportedLanguages(GetSupportedLanguagesRequest request) { + return getSupportedLanguagesCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns a list of supported languages for translation. + * + *

Sample code: + * + *

{@code
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   GetSupportedLanguagesRequest request =
+   *       GetSupportedLanguagesRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setDisplayLanguageCode("displayLanguageCode-1457478841")
+   *           .setModel("model104069929")
+   *           .build();
+   *   ApiFuture future =
+   *       translationServiceClient.getSupportedLanguagesCallable().futureCall(request);
+   *   // Do something.
+   *   SupportedLanguages response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + getSupportedLanguagesCallable() { + return stub.getSupportedLanguagesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Translates documents in synchronous mode. + * + *

Sample code: + * + *

{@code
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   TranslateDocumentRequest request =
+   *       TranslateDocumentRequest.newBuilder()
+   *           .setParent("parent-995424086")
+   *           .setSourceLanguageCode("sourceLanguageCode1645917472")
+   *           .setTargetLanguageCode("targetLanguageCode-106414698")
+   *           .setDocumentInputConfig(DocumentInputConfig.newBuilder().build())
+   *           .setDocumentOutputConfig(DocumentOutputConfig.newBuilder().build())
+   *           .setModel("model104069929")
+   *           .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build())
+   *           .putAllLabels(new HashMap())
+   *           .build();
+   *   TranslateDocumentResponse response = translationServiceClient.translateDocument(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final TranslateDocumentResponse translateDocument(TranslateDocumentRequest request) { + return translateDocumentCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Translates documents in synchronous mode. + * + *

Sample code: + * + *

{@code
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   TranslateDocumentRequest request =
+   *       TranslateDocumentRequest.newBuilder()
+   *           .setParent("parent-995424086")
+   *           .setSourceLanguageCode("sourceLanguageCode1645917472")
+   *           .setTargetLanguageCode("targetLanguageCode-106414698")
+   *           .setDocumentInputConfig(DocumentInputConfig.newBuilder().build())
+   *           .setDocumentOutputConfig(DocumentOutputConfig.newBuilder().build())
+   *           .setModel("model104069929")
+   *           .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build())
+   *           .putAllLabels(new HashMap())
+   *           .build();
+   *   ApiFuture future =
+   *       translationServiceClient.translateDocumentCallable().futureCall(request);
+   *   // Do something.
+   *   TranslateDocumentResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + translateDocumentCallable() { + return stub.translateDocumentCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Translates a large volume of text in asynchronous batch mode. This function provides real-time + * output as the inputs are being processed. If caller cancels a request, the partial results (for + * an input file, it's all or nothing) may still be available on the specified output location. + * + *

This call returns immediately and you can use google.longrunning.Operation.name to poll the + * status of the call. + * + *

Sample code: + * + *

{@code
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   BatchTranslateTextRequest request =
+   *       BatchTranslateTextRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setSourceLanguageCode("sourceLanguageCode1645917472")
+   *           .addAllTargetLanguageCodes(new ArrayList())
+   *           .putAllModels(new HashMap())
+   *           .addAllInputConfigs(new ArrayList())
+   *           .setOutputConfig(OutputConfig.newBuilder().build())
+   *           .putAllGlossaries(new HashMap())
+   *           .putAllLabels(new HashMap())
+   *           .build();
+   *   BatchTranslateResponse response =
+   *       translationServiceClient.batchTranslateTextAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + batchTranslateTextAsync(BatchTranslateTextRequest request) { + return batchTranslateTextOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Translates a large volume of text in asynchronous batch mode. This function provides real-time + * output as the inputs are being processed. If caller cancels a request, the partial results (for + * an input file, it's all or nothing) may still be available on the specified output location. + * + *

This call returns immediately and you can use google.longrunning.Operation.name to poll the + * status of the call. + * + *

Sample code: + * + *

{@code
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   BatchTranslateTextRequest request =
+   *       BatchTranslateTextRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setSourceLanguageCode("sourceLanguageCode1645917472")
+   *           .addAllTargetLanguageCodes(new ArrayList())
+   *           .putAllModels(new HashMap())
+   *           .addAllInputConfigs(new ArrayList())
+   *           .setOutputConfig(OutputConfig.newBuilder().build())
+   *           .putAllGlossaries(new HashMap())
+   *           .putAllLabels(new HashMap())
+   *           .build();
+   *   OperationFuture future =
+   *       translationServiceClient.batchTranslateTextOperationCallable().futureCall(request);
+   *   // Do something.
+   *   BatchTranslateResponse response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> + batchTranslateTextOperationCallable() { + return stub.batchTranslateTextOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Translates a large volume of text in asynchronous batch mode. This function provides real-time + * output as the inputs are being processed. If caller cancels a request, the partial results (for + * an input file, it's all or nothing) may still be available on the specified output location. + * + *

This call returns immediately and you can use google.longrunning.Operation.name to poll the + * status of the call. + * + *

Sample code: + * + *

{@code
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   BatchTranslateTextRequest request =
+   *       BatchTranslateTextRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setSourceLanguageCode("sourceLanguageCode1645917472")
+   *           .addAllTargetLanguageCodes(new ArrayList())
+   *           .putAllModels(new HashMap())
+   *           .addAllInputConfigs(new ArrayList())
+   *           .setOutputConfig(OutputConfig.newBuilder().build())
+   *           .putAllGlossaries(new HashMap())
+   *           .putAllLabels(new HashMap())
+   *           .build();
+   *   ApiFuture future =
+   *       translationServiceClient.batchTranslateTextCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable batchTranslateTextCallable() { + return stub.batchTranslateTextCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Translates a large volume of document in asynchronous batch mode. This function provides + * real-time output as the inputs are being processed. If caller cancels a request, the partial + * results (for an input file, it's all or nothing) may still be available on the specified output + * location. + * + *

This call returns immediately and you can use google.longrunning.Operation.name to poll the + * status of the call. + * + *

Sample code: + * + *

{@code
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   String sourceLanguageCode = "sourceLanguageCode1645917472";
+   *   List targetLanguageCodes = new ArrayList<>();
+   *   List inputConfigs = new ArrayList<>();
+   *   BatchDocumentOutputConfig outputConfig = BatchDocumentOutputConfig.newBuilder().build();
+   *   BatchTranslateDocumentResponse response =
+   *       translationServiceClient
+   *           .batchTranslateDocumentAsync(
+   *               parent, sourceLanguageCode, targetLanguageCodes, inputConfigs, outputConfig)
+   *           .get();
+   * }
+   * }
+ * + * @param parent Required. Location to make a regional call. + *

Format: `projects/{project-number-or-id}/locations/{location-id}`. + *

The `global` location is not supported for batch translation. + *

Only AutoML Translation models or glossaries within the same region (have the same + * location-id) can be used, otherwise an INVALID_ARGUMENT (400) error is returned. + * @param sourceLanguageCode Required. The BCP-47 language code of the input document if known, + * for example, "en-US" or "sr-Latn". Supported language codes are listed in Language Support + * (https://cloud.google.com/translate/docs/languages). + * @param targetLanguageCodes Required. The BCP-47 language code to use for translation of the + * input document. Specify up to 10 language codes here. + * @param inputConfigs Required. Input configurations. The total number of files matched should be + * <= 100. The total content size to translate should be <= 100M Unicode codepoints. The + * files must use UTF-8 encoding. + * @param outputConfig Required. Output configuration. If 2 input configs match to the same file + * (that is, same input path), we don't generate output for duplicate inputs. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + batchTranslateDocumentAsync( + LocationName parent, + String sourceLanguageCode, + List targetLanguageCodes, + List inputConfigs, + BatchDocumentOutputConfig outputConfig) { + BatchTranslateDocumentRequest request = + BatchTranslateDocumentRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setSourceLanguageCode(sourceLanguageCode) + .addAllTargetLanguageCodes(targetLanguageCodes) + .addAllInputConfigs(inputConfigs) + .setOutputConfig(outputConfig) + .build(); + return batchTranslateDocumentAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Translates a large volume of document in asynchronous batch mode. This function provides + * real-time output as the inputs are being processed. If caller cancels a request, the partial + * results (for an input file, it's all or nothing) may still be available on the specified output + * location. + * + *

This call returns immediately and you can use google.longrunning.Operation.name to poll the + * status of the call. + * + *

Sample code: + * + *

{@code
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   String sourceLanguageCode = "sourceLanguageCode1645917472";
+   *   List targetLanguageCodes = new ArrayList<>();
+   *   List inputConfigs = new ArrayList<>();
+   *   BatchDocumentOutputConfig outputConfig = BatchDocumentOutputConfig.newBuilder().build();
+   *   BatchTranslateDocumentResponse response =
+   *       translationServiceClient
+   *           .batchTranslateDocumentAsync(
+   *               parent, sourceLanguageCode, targetLanguageCodes, inputConfigs, outputConfig)
+   *           .get();
+   * }
+   * }
+ * + * @param parent Required. Location to make a regional call. + *

Format: `projects/{project-number-or-id}/locations/{location-id}`. + *

The `global` location is not supported for batch translation. + *

Only AutoML Translation models or glossaries within the same region (have the same + * location-id) can be used, otherwise an INVALID_ARGUMENT (400) error is returned. + * @param sourceLanguageCode Required. The BCP-47 language code of the input document if known, + * for example, "en-US" or "sr-Latn". Supported language codes are listed in Language Support + * (https://cloud.google.com/translate/docs/languages). + * @param targetLanguageCodes Required. The BCP-47 language code to use for translation of the + * input document. Specify up to 10 language codes here. + * @param inputConfigs Required. Input configurations. The total number of files matched should be + * <= 100. The total content size to translate should be <= 100M Unicode codepoints. The + * files must use UTF-8 encoding. + * @param outputConfig Required. Output configuration. If 2 input configs match to the same file + * (that is, same input path), we don't generate output for duplicate inputs. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + batchTranslateDocumentAsync( + String parent, + String sourceLanguageCode, + List targetLanguageCodes, + List inputConfigs, + BatchDocumentOutputConfig outputConfig) { + BatchTranslateDocumentRequest request = + BatchTranslateDocumentRequest.newBuilder() + .setParent(parent) + .setSourceLanguageCode(sourceLanguageCode) + .addAllTargetLanguageCodes(targetLanguageCodes) + .addAllInputConfigs(inputConfigs) + .setOutputConfig(outputConfig) + .build(); + return batchTranslateDocumentAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Translates a large volume of document in asynchronous batch mode. This function provides + * real-time output as the inputs are being processed. If caller cancels a request, the partial + * results (for an input file, it's all or nothing) may still be available on the specified output + * location. + * + *

This call returns immediately and you can use google.longrunning.Operation.name to poll the + * status of the call. + * + *

Sample code: + * + *

{@code
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   BatchTranslateDocumentRequest request =
+   *       BatchTranslateDocumentRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setSourceLanguageCode("sourceLanguageCode1645917472")
+   *           .addAllTargetLanguageCodes(new ArrayList())
+   *           .addAllInputConfigs(new ArrayList())
+   *           .setOutputConfig(BatchDocumentOutputConfig.newBuilder().build())
+   *           .putAllModels(new HashMap())
+   *           .putAllGlossaries(new HashMap())
+   *           .putAllFormatConversions(new HashMap())
+   *           .build();
+   *   BatchTranslateDocumentResponse response =
+   *       translationServiceClient.batchTranslateDocumentAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + batchTranslateDocumentAsync(BatchTranslateDocumentRequest request) { + return batchTranslateDocumentOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Translates a large volume of document in asynchronous batch mode. This function provides + * real-time output as the inputs are being processed. If caller cancels a request, the partial + * results (for an input file, it's all or nothing) may still be available on the specified output + * location. + * + *

This call returns immediately and you can use google.longrunning.Operation.name to poll the + * status of the call. + * + *

Sample code: + * + *

{@code
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   BatchTranslateDocumentRequest request =
+   *       BatchTranslateDocumentRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setSourceLanguageCode("sourceLanguageCode1645917472")
+   *           .addAllTargetLanguageCodes(new ArrayList())
+   *           .addAllInputConfigs(new ArrayList())
+   *           .setOutputConfig(BatchDocumentOutputConfig.newBuilder().build())
+   *           .putAllModels(new HashMap())
+   *           .putAllGlossaries(new HashMap())
+   *           .putAllFormatConversions(new HashMap())
+   *           .build();
+   *   OperationFuture future =
+   *       translationServiceClient.batchTranslateDocumentOperationCallable().futureCall(request);
+   *   // Do something.
+   *   BatchTranslateDocumentResponse response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + BatchTranslateDocumentRequest, BatchTranslateDocumentResponse, + BatchTranslateDocumentMetadata> + batchTranslateDocumentOperationCallable() { + return stub.batchTranslateDocumentOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Translates a large volume of document in asynchronous batch mode. This function provides + * real-time output as the inputs are being processed. If caller cancels a request, the partial + * results (for an input file, it's all or nothing) may still be available on the specified output + * location. + * + *

This call returns immediately and you can use google.longrunning.Operation.name to poll the + * status of the call. + * + *

Sample code: + * + *

{@code
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   BatchTranslateDocumentRequest request =
+   *       BatchTranslateDocumentRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setSourceLanguageCode("sourceLanguageCode1645917472")
+   *           .addAllTargetLanguageCodes(new ArrayList())
+   *           .addAllInputConfigs(new ArrayList())
+   *           .setOutputConfig(BatchDocumentOutputConfig.newBuilder().build())
+   *           .putAllModels(new HashMap())
+   *           .putAllGlossaries(new HashMap())
+   *           .putAllFormatConversions(new HashMap())
+   *           .build();
+   *   ApiFuture future =
+   *       translationServiceClient.batchTranslateDocumentCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + batchTranslateDocumentCallable() { + return stub.batchTranslateDocumentCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a glossary and returns the long-running operation. Returns NOT_FOUND, if the project + * doesn't exist. + * + *

Sample code: + * + *

{@code
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   Glossary glossary = Glossary.newBuilder().build();
+   *   Glossary response = translationServiceClient.createGlossaryAsync(parent, glossary).get();
+   * }
+   * }
+ * + * @param parent Required. The project name. + * @param glossary Required. The glossary to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createGlossaryAsync( + LocationName parent, Glossary glossary) { + CreateGlossaryRequest request = + CreateGlossaryRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setGlossary(glossary) + .build(); + return createGlossaryAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a glossary and returns the long-running operation. Returns NOT_FOUND, if the project + * doesn't exist. + * + *

Sample code: + * + *

{@code
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   Glossary glossary = Glossary.newBuilder().build();
+   *   Glossary response = translationServiceClient.createGlossaryAsync(parent, glossary).get();
+   * }
+   * }
+ * + * @param parent Required. The project name. + * @param glossary Required. The glossary to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createGlossaryAsync( + String parent, Glossary glossary) { + CreateGlossaryRequest request = + CreateGlossaryRequest.newBuilder().setParent(parent).setGlossary(glossary).build(); + return createGlossaryAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a glossary and returns the long-running operation. Returns NOT_FOUND, if the project + * doesn't exist. + * + *

Sample code: + * + *

{@code
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   CreateGlossaryRequest request =
+   *       CreateGlossaryRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setGlossary(Glossary.newBuilder().build())
+   *           .build();
+   *   Glossary response = translationServiceClient.createGlossaryAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createGlossaryAsync( + CreateGlossaryRequest request) { + return createGlossaryOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a glossary and returns the long-running operation. Returns NOT_FOUND, if the project + * doesn't exist. + * + *

Sample code: + * + *

{@code
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   CreateGlossaryRequest request =
+   *       CreateGlossaryRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setGlossary(Glossary.newBuilder().build())
+   *           .build();
+   *   OperationFuture future =
+   *       translationServiceClient.createGlossaryOperationCallable().futureCall(request);
+   *   // Do something.
+   *   Glossary response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + createGlossaryOperationCallable() { + return stub.createGlossaryOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a glossary and returns the long-running operation. Returns NOT_FOUND, if the project + * doesn't exist. + * + *

Sample code: + * + *

{@code
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   CreateGlossaryRequest request =
+   *       CreateGlossaryRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setGlossary(Glossary.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       translationServiceClient.createGlossaryCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable createGlossaryCallable() { + return stub.createGlossaryCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't exist. + * + *

Sample code: + * + *

{@code
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   for (Glossary element : translationServiceClient.listGlossaries(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The name of the project from which to list all of the glossaries. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListGlossariesPagedResponse listGlossaries(LocationName parent) { + ListGlossariesRequest request = + ListGlossariesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listGlossaries(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't exist. + * + *

Sample code: + * + *

{@code
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   for (Glossary element : translationServiceClient.listGlossaries(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The name of the project from which to list all of the glossaries. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListGlossariesPagedResponse listGlossaries(String parent) { + ListGlossariesRequest request = ListGlossariesRequest.newBuilder().setParent(parent).build(); + return listGlossaries(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't exist. + * + *

Sample code: + * + *

{@code
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   ListGlossariesRequest request =
+   *       ListGlossariesRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .build();
+   *   for (Glossary element : translationServiceClient.listGlossaries(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListGlossariesPagedResponse listGlossaries(ListGlossariesRequest request) { + return listGlossariesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't exist. + * + *

Sample code: + * + *

{@code
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   ListGlossariesRequest request =
+   *       ListGlossariesRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .build();
+   *   ApiFuture future =
+   *       translationServiceClient.listGlossariesPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Glossary element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listGlossariesPagedCallable() { + return stub.listGlossariesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't exist. + * + *

Sample code: + * + *

{@code
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   ListGlossariesRequest request =
+   *       ListGlossariesRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .build();
+   *   while (true) {
+   *     ListGlossariesResponse response =
+   *         translationServiceClient.listGlossariesCallable().call(request);
+   *     for (Glossary element : response.getResponsesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listGlossariesCallable() { + return stub.listGlossariesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't exist. + * + *

Sample code: + * + *

{@code
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   GlossaryName name = GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]");
+   *   Glossary response = translationServiceClient.getGlossary(name);
+   * }
+   * }
+ * + * @param name Required. The name of the glossary to retrieve. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Glossary getGlossary(GlossaryName name) { + GetGlossaryRequest request = + GetGlossaryRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getGlossary(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't exist. + * + *

Sample code: + * + *

{@code
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   String name = GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString();
+   *   Glossary response = translationServiceClient.getGlossary(name);
+   * }
+   * }
+ * + * @param name Required. The name of the glossary to retrieve. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Glossary getGlossary(String name) { + GetGlossaryRequest request = GetGlossaryRequest.newBuilder().setName(name).build(); + return getGlossary(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't exist. + * + *

Sample code: + * + *

{@code
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   GetGlossaryRequest request =
+   *       GetGlossaryRequest.newBuilder()
+   *           .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString())
+   *           .build();
+   *   Glossary response = translationServiceClient.getGlossary(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Glossary getGlossary(GetGlossaryRequest request) { + return getGlossaryCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't exist. + * + *

Sample code: + * + *

{@code
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   GetGlossaryRequest request =
+   *       GetGlossaryRequest.newBuilder()
+   *           .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       translationServiceClient.getGlossaryCallable().futureCall(request);
+   *   // Do something.
+   *   Glossary response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getGlossaryCallable() { + return stub.getGlossaryCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a glossary, or cancels glossary construction if the glossary isn't created yet. Returns + * NOT_FOUND, if the glossary doesn't exist. + * + *

Sample code: + * + *

{@code
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   GlossaryName name = GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]");
+   *   DeleteGlossaryResponse response = translationServiceClient.deleteGlossaryAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The name of the glossary to delete. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteGlossaryAsync( + GlossaryName name) { + DeleteGlossaryRequest request = + DeleteGlossaryRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return deleteGlossaryAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a glossary, or cancels glossary construction if the glossary isn't created yet. Returns + * NOT_FOUND, if the glossary doesn't exist. + * + *

Sample code: + * + *

{@code
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   String name = GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString();
+   *   DeleteGlossaryResponse response = translationServiceClient.deleteGlossaryAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The name of the glossary to delete. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteGlossaryAsync( + String name) { + DeleteGlossaryRequest request = DeleteGlossaryRequest.newBuilder().setName(name).build(); + return deleteGlossaryAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a glossary, or cancels glossary construction if the glossary isn't created yet. Returns + * NOT_FOUND, if the glossary doesn't exist. + * + *

Sample code: + * + *

{@code
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   DeleteGlossaryRequest request =
+   *       DeleteGlossaryRequest.newBuilder()
+   *           .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString())
+   *           .build();
+   *   DeleteGlossaryResponse response = translationServiceClient.deleteGlossaryAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteGlossaryAsync( + DeleteGlossaryRequest request) { + return deleteGlossaryOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a glossary, or cancels glossary construction if the glossary isn't created yet. Returns + * NOT_FOUND, if the glossary doesn't exist. + * + *

Sample code: + * + *

{@code
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   DeleteGlossaryRequest request =
+   *       DeleteGlossaryRequest.newBuilder()
+   *           .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString())
+   *           .build();
+   *   OperationFuture future =
+   *       translationServiceClient.deleteGlossaryOperationCallable().futureCall(request);
+   *   // Do something.
+   *   DeleteGlossaryResponse response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + DeleteGlossaryRequest, DeleteGlossaryResponse, DeleteGlossaryMetadata> + deleteGlossaryOperationCallable() { + return stub.deleteGlossaryOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a glossary, or cancels glossary construction if the glossary isn't created yet. Returns + * NOT_FOUND, if the glossary doesn't exist. + * + *

Sample code: + * + *

{@code
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   DeleteGlossaryRequest request =
+   *       DeleteGlossaryRequest.newBuilder()
+   *           .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       translationServiceClient.deleteGlossaryCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deleteGlossaryCallable() { + return stub.deleteGlossaryCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class ListGlossariesPagedResponse + extends AbstractPagedListResponse< + ListGlossariesRequest, ListGlossariesResponse, Glossary, ListGlossariesPage, + ListGlossariesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListGlossariesPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListGlossariesPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListGlossariesPagedResponse(ListGlossariesPage page) { + super(page, ListGlossariesFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListGlossariesPage + extends AbstractPage< + ListGlossariesRequest, ListGlossariesResponse, Glossary, ListGlossariesPage> { + + private ListGlossariesPage( + PageContext context, + ListGlossariesResponse response) { + super(context, response); + } + + private static ListGlossariesPage createEmptyPage() { + return new ListGlossariesPage(null, null); + } + + @Override + protected ListGlossariesPage createPage( + PageContext context, + ListGlossariesResponse response) { + return new ListGlossariesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListGlossariesFixedSizeCollection + extends AbstractFixedSizeCollection< + ListGlossariesRequest, ListGlossariesResponse, Glossary, ListGlossariesPage, + ListGlossariesFixedSizeCollection> { + + private ListGlossariesFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListGlossariesFixedSizeCollection createEmptyCollection() { + return new ListGlossariesFixedSizeCollection(null, 0); + } + + @Override + protected ListGlossariesFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListGlossariesFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/owl-bot-staging/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/TranslationServiceSettings.java b/owl-bot-staging/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/TranslationServiceSettings.java new file mode 100644 index 00000000..06c111dd --- /dev/null +++ b/owl-bot-staging/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/TranslationServiceSettings.java @@ -0,0 +1,349 @@ +/* + * Copyright 2021 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.cloud.translate.v3; + +import static com.google.cloud.translate.v3.TranslationServiceClient.ListGlossariesPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +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.OperationCallSettings; +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.translate.v3.stub.TranslationServiceStubSettings; +import com.google.longrunning.Operation; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link TranslationServiceClient}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (translate.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

For example, to set the total timeout of translateText to 30 seconds: + * + *

{@code
+ * TranslationServiceSettings.Builder translationServiceSettingsBuilder =
+ *     TranslationServiceSettings.newBuilder();
+ * translationServiceSettingsBuilder
+ *     .translateTextSettings()
+ *     .setRetrySettings(
+ *         translationServiceSettingsBuilder
+ *             .translateTextSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setTotalTimeout(Duration.ofSeconds(30))
+ *             .build());
+ * TranslationServiceSettings translationServiceSettings =
+ *     translationServiceSettingsBuilder.build();
+ * }
+ */ +@Generated("by gapic-generator-java") +public class TranslationServiceSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to translateText. */ + public UnaryCallSettings translateTextSettings() { + return ((TranslationServiceStubSettings) getStubSettings()).translateTextSettings(); + } + + /** Returns the object with the settings used for calls to detectLanguage. */ + public UnaryCallSettings detectLanguageSettings() { + return ((TranslationServiceStubSettings) getStubSettings()).detectLanguageSettings(); + } + + /** Returns the object with the settings used for calls to getSupportedLanguages. */ + public UnaryCallSettings + getSupportedLanguagesSettings() { + return ((TranslationServiceStubSettings) getStubSettings()).getSupportedLanguagesSettings(); + } + + /** Returns the object with the settings used for calls to translateDocument. */ + public UnaryCallSettings + translateDocumentSettings() { + return ((TranslationServiceStubSettings) getStubSettings()).translateDocumentSettings(); + } + + /** Returns the object with the settings used for calls to batchTranslateText. */ + public UnaryCallSettings batchTranslateTextSettings() { + return ((TranslationServiceStubSettings) getStubSettings()).batchTranslateTextSettings(); + } + + /** Returns the object with the settings used for calls to batchTranslateText. */ + public OperationCallSettings< + BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> + batchTranslateTextOperationSettings() { + return ((TranslationServiceStubSettings) getStubSettings()) + .batchTranslateTextOperationSettings(); + } + + /** Returns the object with the settings used for calls to batchTranslateDocument. */ + public UnaryCallSettings + batchTranslateDocumentSettings() { + return ((TranslationServiceStubSettings) getStubSettings()).batchTranslateDocumentSettings(); + } + + /** Returns the object with the settings used for calls to batchTranslateDocument. */ + public OperationCallSettings< + BatchTranslateDocumentRequest, BatchTranslateDocumentResponse, + BatchTranslateDocumentMetadata> + batchTranslateDocumentOperationSettings() { + return ((TranslationServiceStubSettings) getStubSettings()) + .batchTranslateDocumentOperationSettings(); + } + + /** Returns the object with the settings used for calls to createGlossary. */ + public UnaryCallSettings createGlossarySettings() { + return ((TranslationServiceStubSettings) getStubSettings()).createGlossarySettings(); + } + + /** Returns the object with the settings used for calls to createGlossary. */ + public OperationCallSettings + createGlossaryOperationSettings() { + return ((TranslationServiceStubSettings) getStubSettings()).createGlossaryOperationSettings(); + } + + /** Returns the object with the settings used for calls to listGlossaries. */ + public PagedCallSettings< + ListGlossariesRequest, ListGlossariesResponse, ListGlossariesPagedResponse> + listGlossariesSettings() { + return ((TranslationServiceStubSettings) getStubSettings()).listGlossariesSettings(); + } + + /** Returns the object with the settings used for calls to getGlossary. */ + public UnaryCallSettings getGlossarySettings() { + return ((TranslationServiceStubSettings) getStubSettings()).getGlossarySettings(); + } + + /** Returns the object with the settings used for calls to deleteGlossary. */ + public UnaryCallSettings deleteGlossarySettings() { + return ((TranslationServiceStubSettings) getStubSettings()).deleteGlossarySettings(); + } + + /** Returns the object with the settings used for calls to deleteGlossary. */ + public OperationCallSettings< + DeleteGlossaryRequest, DeleteGlossaryResponse, DeleteGlossaryMetadata> + deleteGlossaryOperationSettings() { + return ((TranslationServiceStubSettings) getStubSettings()).deleteGlossaryOperationSettings(); + } + + public static final TranslationServiceSettings create(TranslationServiceStubSettings stub) + throws IOException { + return new TranslationServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return TranslationServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return TranslationServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return TranslationServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return TranslationServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return TranslationServiceStubSettings.defaultGrpcTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return TranslationServiceStubSettings.defaultTransportChannelProvider(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return TranslationServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected TranslationServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for TranslationServiceSettings. */ + public static class Builder extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(TranslationServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(TranslationServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(TranslationServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(TranslationServiceStubSettings.newBuilder()); + } + + public TranslationServiceStubSettings.Builder getStubSettingsBuilder() { + return ((TranslationServiceStubSettings.Builder) getStubSettings()); + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to translateText. */ + public UnaryCallSettings.Builder + translateTextSettings() { + return getStubSettingsBuilder().translateTextSettings(); + } + + /** Returns the builder for the settings used for calls to detectLanguage. */ + public UnaryCallSettings.Builder + detectLanguageSettings() { + return getStubSettingsBuilder().detectLanguageSettings(); + } + + /** Returns the builder for the settings used for calls to getSupportedLanguages. */ + public UnaryCallSettings.Builder + getSupportedLanguagesSettings() { + return getStubSettingsBuilder().getSupportedLanguagesSettings(); + } + + /** Returns the builder for the settings used for calls to translateDocument. */ + public UnaryCallSettings.Builder + translateDocumentSettings() { + return getStubSettingsBuilder().translateDocumentSettings(); + } + + /** Returns the builder for the settings used for calls to batchTranslateText. */ + public UnaryCallSettings.Builder + batchTranslateTextSettings() { + return getStubSettingsBuilder().batchTranslateTextSettings(); + } + + /** Returns the builder for the settings used for calls to batchTranslateText. */ + public OperationCallSettings.Builder< + BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> + batchTranslateTextOperationSettings() { + return getStubSettingsBuilder().batchTranslateTextOperationSettings(); + } + + /** Returns the builder for the settings used for calls to batchTranslateDocument. */ + public UnaryCallSettings.Builder + batchTranslateDocumentSettings() { + return getStubSettingsBuilder().batchTranslateDocumentSettings(); + } + + /** Returns the builder for the settings used for calls to batchTranslateDocument. */ + public OperationCallSettings.Builder< + BatchTranslateDocumentRequest, BatchTranslateDocumentResponse, + BatchTranslateDocumentMetadata> + batchTranslateDocumentOperationSettings() { + return getStubSettingsBuilder().batchTranslateDocumentOperationSettings(); + } + + /** Returns the builder for the settings used for calls to createGlossary. */ + public UnaryCallSettings.Builder createGlossarySettings() { + return getStubSettingsBuilder().createGlossarySettings(); + } + + /** Returns the builder for the settings used for calls to createGlossary. */ + public OperationCallSettings.Builder + createGlossaryOperationSettings() { + return getStubSettingsBuilder().createGlossaryOperationSettings(); + } + + /** Returns the builder for the settings used for calls to listGlossaries. */ + public PagedCallSettings.Builder< + ListGlossariesRequest, ListGlossariesResponse, ListGlossariesPagedResponse> + listGlossariesSettings() { + return getStubSettingsBuilder().listGlossariesSettings(); + } + + /** Returns the builder for the settings used for calls to getGlossary. */ + public UnaryCallSettings.Builder getGlossarySettings() { + return getStubSettingsBuilder().getGlossarySettings(); + } + + /** Returns the builder for the settings used for calls to deleteGlossary. */ + public UnaryCallSettings.Builder deleteGlossarySettings() { + return getStubSettingsBuilder().deleteGlossarySettings(); + } + + /** Returns the builder for the settings used for calls to deleteGlossary. */ + public OperationCallSettings.Builder< + DeleteGlossaryRequest, DeleteGlossaryResponse, DeleteGlossaryMetadata> + deleteGlossaryOperationSettings() { + return getStubSettingsBuilder().deleteGlossaryOperationSettings(); + } + + @Override + public TranslationServiceSettings build() throws IOException { + return new TranslationServiceSettings(this); + } + } +} diff --git a/owl-bot-staging/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/gapic_metadata.json b/owl-bot-staging/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/gapic_metadata.json new file mode 100644 index 00000000..b5190737 --- /dev/null +++ b/owl-bot-staging/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/gapic_metadata.json @@ -0,0 +1,48 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", + "language": "java", + "protoPackage": "google.cloud.translation.v3", + "libraryPackage": "com.google.cloud.translate.v3", + "services": { + "TranslationService": { + "clients": { + "grpc": { + "libraryClient": "TranslationServiceClient", + "rpcs": { + "BatchTranslateDocument": { + "methods": ["batchTranslateDocumentAsync", "batchTranslateDocumentAsync", "batchTranslateDocumentAsync", "batchTranslateDocumentOperationCallable", "batchTranslateDocumentCallable"] + }, + "BatchTranslateText": { + "methods": ["batchTranslateTextAsync", "batchTranslateTextOperationCallable", "batchTranslateTextCallable"] + }, + "CreateGlossary": { + "methods": ["createGlossaryAsync", "createGlossaryAsync", "createGlossaryAsync", "createGlossaryOperationCallable", "createGlossaryCallable"] + }, + "DeleteGlossary": { + "methods": ["deleteGlossaryAsync", "deleteGlossaryAsync", "deleteGlossaryAsync", "deleteGlossaryOperationCallable", "deleteGlossaryCallable"] + }, + "DetectLanguage": { + "methods": ["detectLanguage", "detectLanguage", "detectLanguage", "detectLanguageCallable"] + }, + "GetGlossary": { + "methods": ["getGlossary", "getGlossary", "getGlossary", "getGlossaryCallable"] + }, + "GetSupportedLanguages": { + "methods": ["getSupportedLanguages", "getSupportedLanguages", "getSupportedLanguages", "getSupportedLanguagesCallable"] + }, + "ListGlossaries": { + "methods": ["listGlossaries", "listGlossaries", "listGlossaries", "listGlossariesPagedCallable", "listGlossariesCallable"] + }, + "TranslateDocument": { + "methods": ["translateDocument", "translateDocumentCallable"] + }, + "TranslateText": { + "methods": ["translateText", "translateText", "translateText", "translateText", "translateText", "translateTextCallable"] + } + } + } + } + } + } +} \ No newline at end of file diff --git a/owl-bot-staging/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/package-info.java b/owl-bot-staging/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/package-info.java new file mode 100644 index 00000000..cfa8e6b1 --- /dev/null +++ b/owl-bot-staging/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/package-info.java @@ -0,0 +1,41 @@ +/* + * Copyright 2021 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. + */ + +/** + * A client to Cloud Translation API + * + *

The interfaces provided are listed below, along with usage samples. + * + *

======================= TranslationServiceClient ======================= + * + *

Service Description: Provides natural language translation operations. + * + *

Sample for TranslationServiceClient: + * + *

{@code
+ * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+ *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ *   String targetLanguageCode = "targetLanguageCode-106414698";
+ *   List contents = new ArrayList<>();
+ *   TranslateTextResponse response =
+ *       translationServiceClient.translateText(parent, targetLanguageCode, contents);
+ * }
+ * }
+ */ +@Generated("by gapic-generator-java") +package com.google.cloud.translate.v3; + +import javax.annotation.Generated; diff --git a/owl-bot-staging/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/GrpcTranslationServiceCallableFactory.java b/owl-bot-staging/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/GrpcTranslationServiceCallableFactory.java new file mode 100644 index 00000000..af90b661 --- /dev/null +++ b/owl-bot-staging/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/GrpcTranslationServiceCallableFactory.java @@ -0,0 +1,113 @@ +/* + * Copyright 2021 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.cloud.translate.v3.stub; + +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the TranslationService service API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class GrpcTranslationServiceCallableFactory implements GrpcStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, callSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } +} diff --git a/owl-bot-staging/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/GrpcTranslationServiceStub.java b/owl-bot-staging/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/GrpcTranslationServiceStub.java new file mode 100644 index 00000000..60566c56 --- /dev/null +++ b/owl-bot-staging/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/GrpcTranslationServiceStub.java @@ -0,0 +1,546 @@ +/* + * Copyright 2021 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.cloud.translate.v3.stub; + +import static com.google.cloud.translate.v3.TranslationServiceClient.ListGlossariesPagedResponse; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.translate.v3.BatchTranslateDocumentMetadata; +import com.google.cloud.translate.v3.BatchTranslateDocumentRequest; +import com.google.cloud.translate.v3.BatchTranslateDocumentResponse; +import com.google.cloud.translate.v3.BatchTranslateMetadata; +import com.google.cloud.translate.v3.BatchTranslateResponse; +import com.google.cloud.translate.v3.BatchTranslateTextRequest; +import com.google.cloud.translate.v3.CreateGlossaryMetadata; +import com.google.cloud.translate.v3.CreateGlossaryRequest; +import com.google.cloud.translate.v3.DeleteGlossaryMetadata; +import com.google.cloud.translate.v3.DeleteGlossaryRequest; +import com.google.cloud.translate.v3.DeleteGlossaryResponse; +import com.google.cloud.translate.v3.DetectLanguageRequest; +import com.google.cloud.translate.v3.DetectLanguageResponse; +import com.google.cloud.translate.v3.GetGlossaryRequest; +import com.google.cloud.translate.v3.GetSupportedLanguagesRequest; +import com.google.cloud.translate.v3.Glossary; +import com.google.cloud.translate.v3.ListGlossariesRequest; +import com.google.cloud.translate.v3.ListGlossariesResponse; +import com.google.cloud.translate.v3.SupportedLanguages; +import com.google.cloud.translate.v3.TranslateDocumentRequest; +import com.google.cloud.translate.v3.TranslateDocumentResponse; +import com.google.cloud.translate.v3.TranslateTextRequest; +import com.google.cloud.translate.v3.TranslateTextResponse; +import com.google.common.collect.ImmutableMap; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.GrpcOperationsStub; +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; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the TranslationService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class GrpcTranslationServiceStub extends TranslationServiceStub { + private static final MethodDescriptor + translateTextMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.translation.v3.TranslationService/TranslateText") + .setRequestMarshaller( + ProtoUtils.marshaller(TranslateTextRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(TranslateTextResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + detectLanguageMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.translation.v3.TranslationService/DetectLanguage") + .setRequestMarshaller( + ProtoUtils.marshaller(DetectLanguageRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(DetectLanguageResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getSupportedLanguagesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.translation.v3.TranslationService/GetSupportedLanguages") + .setRequestMarshaller( + ProtoUtils.marshaller(GetSupportedLanguagesRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(SupportedLanguages.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + translateDocumentMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.translation.v3.TranslationService/TranslateDocument") + .setRequestMarshaller( + ProtoUtils.marshaller(TranslateDocumentRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(TranslateDocumentResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + batchTranslateTextMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.translation.v3.TranslationService/BatchTranslateText") + .setRequestMarshaller( + ProtoUtils.marshaller(BatchTranslateTextRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + batchTranslateDocumentMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.translation.v3.TranslationService/BatchTranslateDocument") + .setRequestMarshaller( + ProtoUtils.marshaller(BatchTranslateDocumentRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + createGlossaryMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.translation.v3.TranslationService/CreateGlossary") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateGlossaryRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listGlossariesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.translation.v3.TranslationService/ListGlossaries") + .setRequestMarshaller( + ProtoUtils.marshaller(ListGlossariesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListGlossariesResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor getGlossaryMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.translation.v3.TranslationService/GetGlossary") + .setRequestMarshaller(ProtoUtils.marshaller(GetGlossaryRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Glossary.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteGlossaryMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.translation.v3.TranslationService/DeleteGlossary") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteGlossaryRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private final UnaryCallable translateTextCallable; + private final UnaryCallable detectLanguageCallable; + private final UnaryCallable + getSupportedLanguagesCallable; + private final UnaryCallable + translateDocumentCallable; + private final UnaryCallable batchTranslateTextCallable; + private final OperationCallable< + BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> + batchTranslateTextOperationCallable; + private final UnaryCallable + batchTranslateDocumentCallable; + private final OperationCallable< + BatchTranslateDocumentRequest, BatchTranslateDocumentResponse, + BatchTranslateDocumentMetadata> + batchTranslateDocumentOperationCallable; + private final UnaryCallable createGlossaryCallable; + private final OperationCallable + createGlossaryOperationCallable; + private final UnaryCallable listGlossariesCallable; + private final UnaryCallable + listGlossariesPagedCallable; + private final UnaryCallable getGlossaryCallable; + private final UnaryCallable deleteGlossaryCallable; + private final OperationCallable< + DeleteGlossaryRequest, DeleteGlossaryResponse, DeleteGlossaryMetadata> + deleteGlossaryOperationCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcTranslationServiceStub create(TranslationServiceStubSettings settings) + throws IOException { + return new GrpcTranslationServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcTranslationServiceStub create(ClientContext clientContext) + throws IOException { + return new GrpcTranslationServiceStub( + TranslationServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcTranslationServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcTranslationServiceStub( + TranslationServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcTranslationServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected GrpcTranslationServiceStub( + TranslationServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new GrpcTranslationServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcTranslationServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected GrpcTranslationServiceStub( + TranslationServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings translateTextTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(translateTextMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings + detectLanguageTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(detectLanguageMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings + getSupportedLanguagesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getSupportedLanguagesMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings + translateDocumentTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(translateDocumentMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings batchTranslateTextTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(batchTranslateTextMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings + batchTranslateDocumentTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(batchTranslateDocumentMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings createGlossaryTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createGlossaryMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings + listGlossariesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listGlossariesMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings getGlossaryTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getGlossaryMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings deleteGlossaryTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteGlossaryMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + + this.translateTextCallable = + callableFactory.createUnaryCallable( + translateTextTransportSettings, settings.translateTextSettings(), clientContext); + this.detectLanguageCallable = + callableFactory.createUnaryCallable( + detectLanguageTransportSettings, settings.detectLanguageSettings(), clientContext); + this.getSupportedLanguagesCallable = + callableFactory.createUnaryCallable( + getSupportedLanguagesTransportSettings, + settings.getSupportedLanguagesSettings(), + clientContext); + this.translateDocumentCallable = + callableFactory.createUnaryCallable( + translateDocumentTransportSettings, + settings.translateDocumentSettings(), + clientContext); + this.batchTranslateTextCallable = + callableFactory.createUnaryCallable( + batchTranslateTextTransportSettings, + settings.batchTranslateTextSettings(), + clientContext); + this.batchTranslateTextOperationCallable = + callableFactory.createOperationCallable( + batchTranslateTextTransportSettings, + settings.batchTranslateTextOperationSettings(), + clientContext, + operationsStub); + this.batchTranslateDocumentCallable = + callableFactory.createUnaryCallable( + batchTranslateDocumentTransportSettings, + settings.batchTranslateDocumentSettings(), + clientContext); + this.batchTranslateDocumentOperationCallable = + callableFactory.createOperationCallable( + batchTranslateDocumentTransportSettings, + settings.batchTranslateDocumentOperationSettings(), + clientContext, + operationsStub); + this.createGlossaryCallable = + callableFactory.createUnaryCallable( + createGlossaryTransportSettings, settings.createGlossarySettings(), clientContext); + this.createGlossaryOperationCallable = + callableFactory.createOperationCallable( + createGlossaryTransportSettings, + settings.createGlossaryOperationSettings(), + clientContext, + operationsStub); + this.listGlossariesCallable = + callableFactory.createUnaryCallable( + listGlossariesTransportSettings, settings.listGlossariesSettings(), clientContext); + this.listGlossariesPagedCallable = + callableFactory.createPagedCallable( + listGlossariesTransportSettings, settings.listGlossariesSettings(), clientContext); + this.getGlossaryCallable = + callableFactory.createUnaryCallable( + getGlossaryTransportSettings, settings.getGlossarySettings(), clientContext); + this.deleteGlossaryCallable = + callableFactory.createUnaryCallable( + deleteGlossaryTransportSettings, settings.deleteGlossarySettings(), clientContext); + this.deleteGlossaryOperationCallable = + callableFactory.createOperationCallable( + deleteGlossaryTransportSettings, + settings.deleteGlossaryOperationSettings(), + clientContext, + operationsStub); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable translateTextCallable() { + return translateTextCallable; + } + + @Override + public UnaryCallable detectLanguageCallable() { + return detectLanguageCallable; + } + + @Override + public UnaryCallable + getSupportedLanguagesCallable() { + return getSupportedLanguagesCallable; + } + + @Override + public UnaryCallable + translateDocumentCallable() { + return translateDocumentCallable; + } + + @Override + public UnaryCallable batchTranslateTextCallable() { + return batchTranslateTextCallable; + } + + @Override + public OperationCallable< + BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> + batchTranslateTextOperationCallable() { + return batchTranslateTextOperationCallable; + } + + @Override + public UnaryCallable batchTranslateDocumentCallable() { + return batchTranslateDocumentCallable; + } + + @Override + public OperationCallable< + BatchTranslateDocumentRequest, BatchTranslateDocumentResponse, + BatchTranslateDocumentMetadata> + batchTranslateDocumentOperationCallable() { + return batchTranslateDocumentOperationCallable; + } + + @Override + public UnaryCallable createGlossaryCallable() { + return createGlossaryCallable; + } + + @Override + public OperationCallable + createGlossaryOperationCallable() { + return createGlossaryOperationCallable; + } + + @Override + public UnaryCallable listGlossariesCallable() { + return listGlossariesCallable; + } + + @Override + public UnaryCallable + listGlossariesPagedCallable() { + return listGlossariesPagedCallable; + } + + @Override + public UnaryCallable getGlossaryCallable() { + return getGlossaryCallable; + } + + @Override + public UnaryCallable deleteGlossaryCallable() { + return deleteGlossaryCallable; + } + + @Override + public OperationCallable + deleteGlossaryOperationCallable() { + return deleteGlossaryOperationCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/owl-bot-staging/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/TranslationServiceStub.java b/owl-bot-staging/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/TranslationServiceStub.java new file mode 100644 index 00000000..c45155df --- /dev/null +++ b/owl-bot-staging/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/TranslationServiceStub.java @@ -0,0 +1,138 @@ +/* + * Copyright 2021 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.cloud.translate.v3.stub; + +import static com.google.cloud.translate.v3.TranslationServiceClient.ListGlossariesPagedResponse; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.translate.v3.BatchTranslateDocumentMetadata; +import com.google.cloud.translate.v3.BatchTranslateDocumentRequest; +import com.google.cloud.translate.v3.BatchTranslateDocumentResponse; +import com.google.cloud.translate.v3.BatchTranslateMetadata; +import com.google.cloud.translate.v3.BatchTranslateResponse; +import com.google.cloud.translate.v3.BatchTranslateTextRequest; +import com.google.cloud.translate.v3.CreateGlossaryMetadata; +import com.google.cloud.translate.v3.CreateGlossaryRequest; +import com.google.cloud.translate.v3.DeleteGlossaryMetadata; +import com.google.cloud.translate.v3.DeleteGlossaryRequest; +import com.google.cloud.translate.v3.DeleteGlossaryResponse; +import com.google.cloud.translate.v3.DetectLanguageRequest; +import com.google.cloud.translate.v3.DetectLanguageResponse; +import com.google.cloud.translate.v3.GetGlossaryRequest; +import com.google.cloud.translate.v3.GetSupportedLanguagesRequest; +import com.google.cloud.translate.v3.Glossary; +import com.google.cloud.translate.v3.ListGlossariesRequest; +import com.google.cloud.translate.v3.ListGlossariesResponse; +import com.google.cloud.translate.v3.SupportedLanguages; +import com.google.cloud.translate.v3.TranslateDocumentRequest; +import com.google.cloud.translate.v3.TranslateDocumentResponse; +import com.google.cloud.translate.v3.TranslateTextRequest; +import com.google.cloud.translate.v3.TranslateTextResponse; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the TranslationService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public abstract class TranslationServiceStub implements BackgroundResource { + + public OperationsStub getOperationsStub() { + throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); + } + + public UnaryCallable translateTextCallable() { + throw new UnsupportedOperationException("Not implemented: translateTextCallable()"); + } + + public UnaryCallable detectLanguageCallable() { + throw new UnsupportedOperationException("Not implemented: detectLanguageCallable()"); + } + + public UnaryCallable + getSupportedLanguagesCallable() { + throw new UnsupportedOperationException("Not implemented: getSupportedLanguagesCallable()"); + } + + public UnaryCallable + translateDocumentCallable() { + throw new UnsupportedOperationException("Not implemented: translateDocumentCallable()"); + } + + public OperationCallable< + BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> + batchTranslateTextOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: batchTranslateTextOperationCallable()"); + } + + public UnaryCallable batchTranslateTextCallable() { + throw new UnsupportedOperationException("Not implemented: batchTranslateTextCallable()"); + } + + public OperationCallable< + BatchTranslateDocumentRequest, BatchTranslateDocumentResponse, + BatchTranslateDocumentMetadata> + batchTranslateDocumentOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: batchTranslateDocumentOperationCallable()"); + } + + public UnaryCallable batchTranslateDocumentCallable() { + throw new UnsupportedOperationException("Not implemented: batchTranslateDocumentCallable()"); + } + + public OperationCallable + createGlossaryOperationCallable() { + throw new UnsupportedOperationException("Not implemented: createGlossaryOperationCallable()"); + } + + public UnaryCallable createGlossaryCallable() { + throw new UnsupportedOperationException("Not implemented: createGlossaryCallable()"); + } + + public UnaryCallable + listGlossariesPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listGlossariesPagedCallable()"); + } + + public UnaryCallable listGlossariesCallable() { + throw new UnsupportedOperationException("Not implemented: listGlossariesCallable()"); + } + + public UnaryCallable getGlossaryCallable() { + throw new UnsupportedOperationException("Not implemented: getGlossaryCallable()"); + } + + public OperationCallable + deleteGlossaryOperationCallable() { + throw new UnsupportedOperationException("Not implemented: deleteGlossaryOperationCallable()"); + } + + public UnaryCallable deleteGlossaryCallable() { + throw new UnsupportedOperationException("Not implemented: deleteGlossaryCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/owl-bot-staging/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/TranslationServiceStubSettings.java b/owl-bot-staging/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/TranslationServiceStubSettings.java new file mode 100644 index 00000000..b9e464a4 --- /dev/null +++ b/owl-bot-staging/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/TranslationServiceStubSettings.java @@ -0,0 +1,813 @@ +/* + * Copyright 2021 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.cloud.translate.v3.stub; + +import static com.google.cloud.translate.v3.TranslationServiceClient.ListGlossariesPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.grpc.ProtoOperationTransformers; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.translate.v3.BatchTranslateDocumentMetadata; +import com.google.cloud.translate.v3.BatchTranslateDocumentRequest; +import com.google.cloud.translate.v3.BatchTranslateDocumentResponse; +import com.google.cloud.translate.v3.BatchTranslateMetadata; +import com.google.cloud.translate.v3.BatchTranslateResponse; +import com.google.cloud.translate.v3.BatchTranslateTextRequest; +import com.google.cloud.translate.v3.CreateGlossaryMetadata; +import com.google.cloud.translate.v3.CreateGlossaryRequest; +import com.google.cloud.translate.v3.DeleteGlossaryMetadata; +import com.google.cloud.translate.v3.DeleteGlossaryRequest; +import com.google.cloud.translate.v3.DeleteGlossaryResponse; +import com.google.cloud.translate.v3.DetectLanguageRequest; +import com.google.cloud.translate.v3.DetectLanguageResponse; +import com.google.cloud.translate.v3.GetGlossaryRequest; +import com.google.cloud.translate.v3.GetSupportedLanguagesRequest; +import com.google.cloud.translate.v3.Glossary; +import com.google.cloud.translate.v3.ListGlossariesRequest; +import com.google.cloud.translate.v3.ListGlossariesResponse; +import com.google.cloud.translate.v3.SupportedLanguages; +import com.google.cloud.translate.v3.TranslateDocumentRequest; +import com.google.cloud.translate.v3.TranslateDocumentResponse; +import com.google.cloud.translate.v3.TranslateTextRequest; +import com.google.cloud.translate.v3.TranslateTextResponse; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; +import org.threeten.bp.Duration; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link TranslationServiceStub}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (translate.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

For example, to set the total timeout of translateText to 30 seconds: + * + *

{@code
+ * TranslationServiceStubSettings.Builder translationServiceSettingsBuilder =
+ *     TranslationServiceStubSettings.newBuilder();
+ * translationServiceSettingsBuilder
+ *     .translateTextSettings()
+ *     .setRetrySettings(
+ *         translationServiceSettingsBuilder
+ *             .translateTextSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setTotalTimeout(Duration.ofSeconds(30))
+ *             .build());
+ * TranslationServiceStubSettings translationServiceSettings =
+ *     translationServiceSettingsBuilder.build();
+ * }
+ */ +@Generated("by gapic-generator-java") +public class TranslationServiceStubSettings extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder() + .add("https://www.googleapis.com/auth/cloud-platform") + .add("https://www.googleapis.com/auth/cloud-translation") + .build(); + + private final UnaryCallSettings + translateTextSettings; + private final UnaryCallSettings + detectLanguageSettings; + private final UnaryCallSettings + getSupportedLanguagesSettings; + private final UnaryCallSettings + translateDocumentSettings; + private final UnaryCallSettings batchTranslateTextSettings; + private final OperationCallSettings< + BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> + batchTranslateTextOperationSettings; + private final UnaryCallSettings + batchTranslateDocumentSettings; + private final OperationCallSettings< + BatchTranslateDocumentRequest, BatchTranslateDocumentResponse, + BatchTranslateDocumentMetadata> + batchTranslateDocumentOperationSettings; + private final UnaryCallSettings createGlossarySettings; + private final OperationCallSettings + createGlossaryOperationSettings; + private final PagedCallSettings< + ListGlossariesRequest, ListGlossariesResponse, ListGlossariesPagedResponse> + listGlossariesSettings; + private final UnaryCallSettings getGlossarySettings; + private final UnaryCallSettings deleteGlossarySettings; + private final OperationCallSettings< + DeleteGlossaryRequest, DeleteGlossaryResponse, DeleteGlossaryMetadata> + deleteGlossaryOperationSettings; + + private static final PagedListDescriptor + LIST_GLOSSARIES_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListGlossariesRequest injectToken(ListGlossariesRequest payload, String token) { + return ListGlossariesRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListGlossariesRequest injectPageSize( + ListGlossariesRequest payload, int pageSize) { + return ListGlossariesRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListGlossariesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListGlossariesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListGlossariesResponse payload) { + return payload.getGlossariesList() == null + ? ImmutableList.of() + : payload.getGlossariesList(); + } + }; + + private static final PagedListResponseFactory< + ListGlossariesRequest, ListGlossariesResponse, ListGlossariesPagedResponse> + LIST_GLOSSARIES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListGlossariesRequest, ListGlossariesResponse, ListGlossariesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListGlossariesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_GLOSSARIES_PAGE_STR_DESC, request, context); + return ListGlossariesPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to translateText. */ + public UnaryCallSettings translateTextSettings() { + return translateTextSettings; + } + + /** Returns the object with the settings used for calls to detectLanguage. */ + public UnaryCallSettings detectLanguageSettings() { + return detectLanguageSettings; + } + + /** Returns the object with the settings used for calls to getSupportedLanguages. */ + public UnaryCallSettings + getSupportedLanguagesSettings() { + return getSupportedLanguagesSettings; + } + + /** Returns the object with the settings used for calls to translateDocument. */ + public UnaryCallSettings + translateDocumentSettings() { + return translateDocumentSettings; + } + + /** Returns the object with the settings used for calls to batchTranslateText. */ + public UnaryCallSettings batchTranslateTextSettings() { + return batchTranslateTextSettings; + } + + /** Returns the object with the settings used for calls to batchTranslateText. */ + public OperationCallSettings< + BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> + batchTranslateTextOperationSettings() { + return batchTranslateTextOperationSettings; + } + + /** Returns the object with the settings used for calls to batchTranslateDocument. */ + public UnaryCallSettings + batchTranslateDocumentSettings() { + return batchTranslateDocumentSettings; + } + + /** Returns the object with the settings used for calls to batchTranslateDocument. */ + public OperationCallSettings< + BatchTranslateDocumentRequest, BatchTranslateDocumentResponse, + BatchTranslateDocumentMetadata> + batchTranslateDocumentOperationSettings() { + return batchTranslateDocumentOperationSettings; + } + + /** Returns the object with the settings used for calls to createGlossary. */ + public UnaryCallSettings createGlossarySettings() { + return createGlossarySettings; + } + + /** Returns the object with the settings used for calls to createGlossary. */ + public OperationCallSettings + createGlossaryOperationSettings() { + return createGlossaryOperationSettings; + } + + /** Returns the object with the settings used for calls to listGlossaries. */ + public PagedCallSettings< + ListGlossariesRequest, ListGlossariesResponse, ListGlossariesPagedResponse> + listGlossariesSettings() { + return listGlossariesSettings; + } + + /** Returns the object with the settings used for calls to getGlossary. */ + public UnaryCallSettings getGlossarySettings() { + return getGlossarySettings; + } + + /** Returns the object with the settings used for calls to deleteGlossary. */ + public UnaryCallSettings deleteGlossarySettings() { + return deleteGlossarySettings; + } + + /** Returns the object with the settings used for calls to deleteGlossary. */ + public OperationCallSettings< + DeleteGlossaryRequest, DeleteGlossaryResponse, DeleteGlossaryMetadata> + deleteGlossaryOperationSettings() { + return deleteGlossaryOperationSettings; + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public TranslationServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcTranslationServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return "translate.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "translate.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(TranslationServiceStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected TranslationServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + translateTextSettings = settingsBuilder.translateTextSettings().build(); + detectLanguageSettings = settingsBuilder.detectLanguageSettings().build(); + getSupportedLanguagesSettings = settingsBuilder.getSupportedLanguagesSettings().build(); + translateDocumentSettings = settingsBuilder.translateDocumentSettings().build(); + batchTranslateTextSettings = settingsBuilder.batchTranslateTextSettings().build(); + batchTranslateTextOperationSettings = + settingsBuilder.batchTranslateTextOperationSettings().build(); + batchTranslateDocumentSettings = settingsBuilder.batchTranslateDocumentSettings().build(); + batchTranslateDocumentOperationSettings = + settingsBuilder.batchTranslateDocumentOperationSettings().build(); + createGlossarySettings = settingsBuilder.createGlossarySettings().build(); + createGlossaryOperationSettings = settingsBuilder.createGlossaryOperationSettings().build(); + listGlossariesSettings = settingsBuilder.listGlossariesSettings().build(); + getGlossarySettings = settingsBuilder.getGlossarySettings().build(); + deleteGlossarySettings = settingsBuilder.deleteGlossarySettings().build(); + deleteGlossaryOperationSettings = settingsBuilder.deleteGlossaryOperationSettings().build(); + } + + /** Builder for TranslationServiceStubSettings. */ + public static class Builder + extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder + translateTextSettings; + private final UnaryCallSettings.Builder + detectLanguageSettings; + private final UnaryCallSettings.Builder + getSupportedLanguagesSettings; + private final UnaryCallSettings.Builder + translateDocumentSettings; + private final UnaryCallSettings.Builder + batchTranslateTextSettings; + private final OperationCallSettings.Builder< + BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> + batchTranslateTextOperationSettings; + private final UnaryCallSettings.Builder + batchTranslateDocumentSettings; + private final OperationCallSettings.Builder< + BatchTranslateDocumentRequest, BatchTranslateDocumentResponse, + BatchTranslateDocumentMetadata> + batchTranslateDocumentOperationSettings; + private final UnaryCallSettings.Builder + createGlossarySettings; + private final OperationCallSettings.Builder< + CreateGlossaryRequest, Glossary, CreateGlossaryMetadata> + createGlossaryOperationSettings; + private final PagedCallSettings.Builder< + ListGlossariesRequest, ListGlossariesResponse, ListGlossariesPagedResponse> + listGlossariesSettings; + private final UnaryCallSettings.Builder getGlossarySettings; + private final UnaryCallSettings.Builder + deleteGlossarySettings; + private final OperationCallSettings.Builder< + DeleteGlossaryRequest, DeleteGlossaryResponse, DeleteGlossaryMetadata> + deleteGlossaryOperationSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put( + "no_retry_1_codes", ImmutableSet.copyOf(Lists.newArrayList())); + definitions.put( + "retry_policy_0_codes", + ImmutableSet.copyOf( + Lists.newArrayList( + StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE))); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = + RetrySettings.newBuilder() + .setInitialRpcTimeout(Duration.ofMillis(600000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(600000L)) + .setTotalTimeout(Duration.ofMillis(600000L)) + .build(); + definitions.put("no_retry_1_params", settings); + settings = + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(100L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelay(Duration.ofMillis(60000L)) + .setInitialRpcTimeout(Duration.ofMillis(600000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(600000L)) + .setTotalTimeout(Duration.ofMillis(600000L)) + .build(); + definitions.put("retry_policy_0_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + translateTextSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + detectLanguageSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getSupportedLanguagesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + translateDocumentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + batchTranslateTextSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + batchTranslateTextOperationSettings = OperationCallSettings.newBuilder(); + batchTranslateDocumentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + batchTranslateDocumentOperationSettings = OperationCallSettings.newBuilder(); + createGlossarySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createGlossaryOperationSettings = OperationCallSettings.newBuilder(); + listGlossariesSettings = PagedCallSettings.newBuilder(LIST_GLOSSARIES_PAGE_STR_FACT); + getGlossarySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteGlossarySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteGlossaryOperationSettings = OperationCallSettings.newBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + translateTextSettings, + detectLanguageSettings, + getSupportedLanguagesSettings, + translateDocumentSettings, + batchTranslateTextSettings, + batchTranslateDocumentSettings, + createGlossarySettings, + listGlossariesSettings, + getGlossarySettings, + deleteGlossarySettings); + initDefaults(this); + } + + protected Builder(TranslationServiceStubSettings settings) { + super(settings); + + translateTextSettings = settings.translateTextSettings.toBuilder(); + detectLanguageSettings = settings.detectLanguageSettings.toBuilder(); + getSupportedLanguagesSettings = settings.getSupportedLanguagesSettings.toBuilder(); + translateDocumentSettings = settings.translateDocumentSettings.toBuilder(); + batchTranslateTextSettings = settings.batchTranslateTextSettings.toBuilder(); + batchTranslateTextOperationSettings = + settings.batchTranslateTextOperationSettings.toBuilder(); + batchTranslateDocumentSettings = settings.batchTranslateDocumentSettings.toBuilder(); + batchTranslateDocumentOperationSettings = + settings.batchTranslateDocumentOperationSettings.toBuilder(); + createGlossarySettings = settings.createGlossarySettings.toBuilder(); + createGlossaryOperationSettings = settings.createGlossaryOperationSettings.toBuilder(); + listGlossariesSettings = settings.listGlossariesSettings.toBuilder(); + getGlossarySettings = settings.getGlossarySettings.toBuilder(); + deleteGlossarySettings = settings.deleteGlossarySettings.toBuilder(); + deleteGlossaryOperationSettings = settings.deleteGlossaryOperationSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + translateTextSettings, + detectLanguageSettings, + getSupportedLanguagesSettings, + translateDocumentSettings, + batchTranslateTextSettings, + batchTranslateDocumentSettings, + createGlossarySettings, + listGlossariesSettings, + getGlossarySettings, + deleteGlossarySettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .translateTextSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .detectLanguageSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .getSupportedLanguagesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .translateDocumentSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .batchTranslateTextSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .batchTranslateDocumentSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .createGlossarySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .listGlossariesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getGlossarySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .deleteGlossarySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .batchTranslateTextOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(BatchTranslateResponse.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(BatchTranslateMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .batchTranslateDocumentOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create( + BatchTranslateDocumentResponse.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create( + BatchTranslateDocumentMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .createGlossaryOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Glossary.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(CreateGlossaryMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .deleteGlossaryOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(DeleteGlossaryResponse.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(DeleteGlossaryMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to translateText. */ + public UnaryCallSettings.Builder + translateTextSettings() { + return translateTextSettings; + } + + /** Returns the builder for the settings used for calls to detectLanguage. */ + public UnaryCallSettings.Builder + detectLanguageSettings() { + return detectLanguageSettings; + } + + /** Returns the builder for the settings used for calls to getSupportedLanguages. */ + public UnaryCallSettings.Builder + getSupportedLanguagesSettings() { + return getSupportedLanguagesSettings; + } + + /** Returns the builder for the settings used for calls to translateDocument. */ + public UnaryCallSettings.Builder + translateDocumentSettings() { + return translateDocumentSettings; + } + + /** Returns the builder for the settings used for calls to batchTranslateText. */ + public UnaryCallSettings.Builder + batchTranslateTextSettings() { + return batchTranslateTextSettings; + } + + /** Returns the builder for the settings used for calls to batchTranslateText. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> + batchTranslateTextOperationSettings() { + return batchTranslateTextOperationSettings; + } + + /** Returns the builder for the settings used for calls to batchTranslateDocument. */ + public UnaryCallSettings.Builder + batchTranslateDocumentSettings() { + return batchTranslateDocumentSettings; + } + + /** Returns the builder for the settings used for calls to batchTranslateDocument. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + BatchTranslateDocumentRequest, BatchTranslateDocumentResponse, + BatchTranslateDocumentMetadata> + batchTranslateDocumentOperationSettings() { + return batchTranslateDocumentOperationSettings; + } + + /** Returns the builder for the settings used for calls to createGlossary. */ + public UnaryCallSettings.Builder createGlossarySettings() { + return createGlossarySettings; + } + + /** Returns the builder for the settings used for calls to createGlossary. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder + createGlossaryOperationSettings() { + return createGlossaryOperationSettings; + } + + /** Returns the builder for the settings used for calls to listGlossaries. */ + public PagedCallSettings.Builder< + ListGlossariesRequest, ListGlossariesResponse, ListGlossariesPagedResponse> + listGlossariesSettings() { + return listGlossariesSettings; + } + + /** Returns the builder for the settings used for calls to getGlossary. */ + public UnaryCallSettings.Builder getGlossarySettings() { + return getGlossarySettings; + } + + /** Returns the builder for the settings used for calls to deleteGlossary. */ + public UnaryCallSettings.Builder deleteGlossarySettings() { + return deleteGlossarySettings; + } + + /** Returns the builder for the settings used for calls to deleteGlossary. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + DeleteGlossaryRequest, DeleteGlossaryResponse, DeleteGlossaryMetadata> + deleteGlossaryOperationSettings() { + return deleteGlossaryOperationSettings; + } + + @Override + public TranslationServiceStubSettings build() throws IOException { + return new TranslationServiceStubSettings(this); + } + } +} diff --git a/owl-bot-staging/v3/google-cloud-translate/src/test/java/com/google/cloud/translate/v3/MockTranslationService.java b/owl-bot-staging/v3/google-cloud-translate/src/test/java/com/google/cloud/translate/v3/MockTranslationService.java new file mode 100644 index 00000000..ca034ec0 --- /dev/null +++ b/owl-bot-staging/v3/google-cloud-translate/src/test/java/com/google/cloud/translate/v3/MockTranslationService.java @@ -0,0 +1,59 @@ +/* + * Copyright 2021 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.cloud.translate.v3; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockTranslationService implements MockGrpcService { + private final MockTranslationServiceImpl serviceImpl; + + public MockTranslationService() { + serviceImpl = new MockTranslationServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/owl-bot-staging/v3/google-cloud-translate/src/test/java/com/google/cloud/translate/v3/MockTranslationServiceImpl.java b/owl-bot-staging/v3/google-cloud-translate/src/test/java/com/google/cloud/translate/v3/MockTranslationServiceImpl.java new file mode 100644 index 00000000..12d19540 --- /dev/null +++ b/owl-bot-staging/v3/google-cloud-translate/src/test/java/com/google/cloud/translate/v3/MockTranslationServiceImpl.java @@ -0,0 +1,271 @@ +/* + * Copyright 2021 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.cloud.translate.v3; + +import com.google.api.core.BetaApi; +import com.google.cloud.translate.v3.TranslationServiceGrpc.TranslationServiceImplBase; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockTranslationServiceImpl extends TranslationServiceImplBase { + private List requests; + private Queue responses; + + public MockTranslationServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void translateText( + TranslateTextRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof TranslateTextResponse) { + requests.add(request); + responseObserver.onNext(((TranslateTextResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method TranslateText, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + TranslateTextResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void detectLanguage( + DetectLanguageRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof DetectLanguageResponse) { + requests.add(request); + responseObserver.onNext(((DetectLanguageResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DetectLanguage, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + DetectLanguageResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getSupportedLanguages( + GetSupportedLanguagesRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof SupportedLanguages) { + requests.add(request); + responseObserver.onNext(((SupportedLanguages) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetSupportedLanguages, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + SupportedLanguages.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void translateDocument( + TranslateDocumentRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof TranslateDocumentResponse) { + requests.add(request); + responseObserver.onNext(((TranslateDocumentResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method TranslateDocument, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + TranslateDocumentResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void batchTranslateText( + BatchTranslateTextRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method BatchTranslateText, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void batchTranslateDocument( + BatchTranslateDocumentRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method BatchTranslateDocument, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createGlossary( + CreateGlossaryRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateGlossary, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listGlossaries( + ListGlossariesRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListGlossariesResponse) { + requests.add(request); + responseObserver.onNext(((ListGlossariesResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListGlossaries, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListGlossariesResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getGlossary(GetGlossaryRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Glossary) { + requests.add(request); + responseObserver.onNext(((Glossary) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetGlossary, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Glossary.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteGlossary( + DeleteGlossaryRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteGlossary, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/owl-bot-staging/v3/google-cloud-translate/src/test/java/com/google/cloud/translate/v3/TranslationServiceClientTest.java b/owl-bot-staging/v3/google-cloud-translate/src/test/java/com/google/cloud/translate/v3/TranslationServiceClientTest.java new file mode 100644 index 00000000..28a2fe30 --- /dev/null +++ b/owl-bot-staging/v3/google-cloud-translate/src/test/java/com/google/cloud/translate/v3/TranslationServiceClientTest.java @@ -0,0 +1,1145 @@ +/* + * Copyright 2021 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.cloud.translate.v3; + +import static com.google.cloud.translate.v3.TranslationServiceClient.ListGlossariesPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Any; +import com.google.protobuf.Timestamp; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.UUID; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class TranslationServiceClientTest { + private static MockServiceHelper mockServiceHelper; + private static MockTranslationService mockTranslationService; + private LocalChannelProvider channelProvider; + private TranslationServiceClient client; + + @BeforeClass + public static void startStaticServer() { + mockTranslationService = new MockTranslationService(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), Arrays.asList(mockTranslationService)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + TranslationServiceSettings settings = + TranslationServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = TranslationServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void translateTextTest() throws Exception { + TranslateTextResponse expectedResponse = + TranslateTextResponse.newBuilder() + .addAllTranslations(new ArrayList()) + .addAllGlossaryTranslations(new ArrayList()) + .build(); + mockTranslationService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String targetLanguageCode = "targetLanguageCode-106414698"; + List contents = new ArrayList<>(); + + TranslateTextResponse actualResponse = + client.translateText(parent, targetLanguageCode, contents); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTranslationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + TranslateTextRequest actualRequest = ((TranslateTextRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(targetLanguageCode, actualRequest.getTargetLanguageCode()); + Assert.assertEquals(contents, actualRequest.getContentsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void translateTextExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTranslationService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String targetLanguageCode = "targetLanguageCode-106414698"; + List contents = new ArrayList<>(); + client.translateText(parent, targetLanguageCode, contents); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void translateTextTest2() throws Exception { + TranslateTextResponse expectedResponse = + TranslateTextResponse.newBuilder() + .addAllTranslations(new ArrayList()) + .addAllGlossaryTranslations(new ArrayList()) + .build(); + mockTranslationService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + String targetLanguageCode = "targetLanguageCode-106414698"; + List contents = new ArrayList<>(); + + TranslateTextResponse actualResponse = + client.translateText(parent, targetLanguageCode, contents); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTranslationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + TranslateTextRequest actualRequest = ((TranslateTextRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(targetLanguageCode, actualRequest.getTargetLanguageCode()); + Assert.assertEquals(contents, actualRequest.getContentsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void translateTextExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTranslationService.addException(exception); + + try { + String parent = "parent-995424086"; + String targetLanguageCode = "targetLanguageCode-106414698"; + List contents = new ArrayList<>(); + client.translateText(parent, targetLanguageCode, contents); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void translateTextTest3() throws Exception { + TranslateTextResponse expectedResponse = + TranslateTextResponse.newBuilder() + .addAllTranslations(new ArrayList()) + .addAllGlossaryTranslations(new ArrayList()) + .build(); + mockTranslationService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String model = "model104069929"; + String mimeType = "mimeType-1392120434"; + String sourceLanguageCode = "sourceLanguageCode1645917472"; + String targetLanguageCode = "targetLanguageCode-106414698"; + List contents = new ArrayList<>(); + + TranslateTextResponse actualResponse = + client.translateText( + parent, model, mimeType, sourceLanguageCode, targetLanguageCode, contents); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTranslationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + TranslateTextRequest actualRequest = ((TranslateTextRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(model, actualRequest.getModel()); + Assert.assertEquals(mimeType, actualRequest.getMimeType()); + Assert.assertEquals(sourceLanguageCode, actualRequest.getSourceLanguageCode()); + Assert.assertEquals(targetLanguageCode, actualRequest.getTargetLanguageCode()); + Assert.assertEquals(contents, actualRequest.getContentsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void translateTextExceptionTest3() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTranslationService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String model = "model104069929"; + String mimeType = "mimeType-1392120434"; + String sourceLanguageCode = "sourceLanguageCode1645917472"; + String targetLanguageCode = "targetLanguageCode-106414698"; + List contents = new ArrayList<>(); + client.translateText( + parent, model, mimeType, sourceLanguageCode, targetLanguageCode, contents); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void translateTextTest4() throws Exception { + TranslateTextResponse expectedResponse = + TranslateTextResponse.newBuilder() + .addAllTranslations(new ArrayList()) + .addAllGlossaryTranslations(new ArrayList()) + .build(); + mockTranslationService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + String model = "model104069929"; + String mimeType = "mimeType-1392120434"; + String sourceLanguageCode = "sourceLanguageCode1645917472"; + String targetLanguageCode = "targetLanguageCode-106414698"; + List contents = new ArrayList<>(); + + TranslateTextResponse actualResponse = + client.translateText( + parent, model, mimeType, sourceLanguageCode, targetLanguageCode, contents); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTranslationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + TranslateTextRequest actualRequest = ((TranslateTextRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(model, actualRequest.getModel()); + Assert.assertEquals(mimeType, actualRequest.getMimeType()); + Assert.assertEquals(sourceLanguageCode, actualRequest.getSourceLanguageCode()); + Assert.assertEquals(targetLanguageCode, actualRequest.getTargetLanguageCode()); + Assert.assertEquals(contents, actualRequest.getContentsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void translateTextExceptionTest4() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTranslationService.addException(exception); + + try { + String parent = "parent-995424086"; + String model = "model104069929"; + String mimeType = "mimeType-1392120434"; + String sourceLanguageCode = "sourceLanguageCode1645917472"; + String targetLanguageCode = "targetLanguageCode-106414698"; + List contents = new ArrayList<>(); + client.translateText( + parent, model, mimeType, sourceLanguageCode, targetLanguageCode, contents); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void detectLanguageTest() throws Exception { + DetectLanguageResponse expectedResponse = + DetectLanguageResponse.newBuilder() + .addAllLanguages(new ArrayList()) + .build(); + mockTranslationService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String model = "model104069929"; + String mimeType = "mimeType-1392120434"; + String content = "content951530617"; + + DetectLanguageResponse actualResponse = client.detectLanguage(parent, model, mimeType, content); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTranslationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DetectLanguageRequest actualRequest = ((DetectLanguageRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(model, actualRequest.getModel()); + Assert.assertEquals(mimeType, actualRequest.getMimeType()); + Assert.assertEquals(content, actualRequest.getContent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void detectLanguageExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTranslationService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String model = "model104069929"; + String mimeType = "mimeType-1392120434"; + String content = "content951530617"; + client.detectLanguage(parent, model, mimeType, content); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void detectLanguageTest2() throws Exception { + DetectLanguageResponse expectedResponse = + DetectLanguageResponse.newBuilder() + .addAllLanguages(new ArrayList()) + .build(); + mockTranslationService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + String model = "model104069929"; + String mimeType = "mimeType-1392120434"; + String content = "content951530617"; + + DetectLanguageResponse actualResponse = client.detectLanguage(parent, model, mimeType, content); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTranslationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DetectLanguageRequest actualRequest = ((DetectLanguageRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(model, actualRequest.getModel()); + Assert.assertEquals(mimeType, actualRequest.getMimeType()); + Assert.assertEquals(content, actualRequest.getContent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void detectLanguageExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTranslationService.addException(exception); + + try { + String parent = "parent-995424086"; + String model = "model104069929"; + String mimeType = "mimeType-1392120434"; + String content = "content951530617"; + client.detectLanguage(parent, model, mimeType, content); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getSupportedLanguagesTest() throws Exception { + SupportedLanguages expectedResponse = + SupportedLanguages.newBuilder().addAllLanguages(new ArrayList()).build(); + mockTranslationService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String model = "model104069929"; + String displayLanguageCode = "displayLanguageCode-1457478841"; + + SupportedLanguages actualResponse = + client.getSupportedLanguages(parent, model, displayLanguageCode); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTranslationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetSupportedLanguagesRequest actualRequest = + ((GetSupportedLanguagesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(model, actualRequest.getModel()); + Assert.assertEquals(displayLanguageCode, actualRequest.getDisplayLanguageCode()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getSupportedLanguagesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTranslationService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String model = "model104069929"; + String displayLanguageCode = "displayLanguageCode-1457478841"; + client.getSupportedLanguages(parent, model, displayLanguageCode); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getSupportedLanguagesTest2() throws Exception { + SupportedLanguages expectedResponse = + SupportedLanguages.newBuilder().addAllLanguages(new ArrayList()).build(); + mockTranslationService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + String model = "model104069929"; + String displayLanguageCode = "displayLanguageCode-1457478841"; + + SupportedLanguages actualResponse = + client.getSupportedLanguages(parent, model, displayLanguageCode); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTranslationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetSupportedLanguagesRequest actualRequest = + ((GetSupportedLanguagesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(model, actualRequest.getModel()); + Assert.assertEquals(displayLanguageCode, actualRequest.getDisplayLanguageCode()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getSupportedLanguagesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTranslationService.addException(exception); + + try { + String parent = "parent-995424086"; + String model = "model104069929"; + String displayLanguageCode = "displayLanguageCode-1457478841"; + client.getSupportedLanguages(parent, model, displayLanguageCode); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void translateDocumentTest() throws Exception { + TranslateDocumentResponse expectedResponse = + TranslateDocumentResponse.newBuilder() + .setDocumentTranslation(DocumentTranslation.newBuilder().build()) + .setGlossaryDocumentTranslation(DocumentTranslation.newBuilder().build()) + .setModel("model104069929") + .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build()) + .build(); + mockTranslationService.addResponse(expectedResponse); + + TranslateDocumentRequest request = + TranslateDocumentRequest.newBuilder() + .setParent("parent-995424086") + .setSourceLanguageCode("sourceLanguageCode1645917472") + .setTargetLanguageCode("targetLanguageCode-106414698") + .setDocumentInputConfig(DocumentInputConfig.newBuilder().build()) + .setDocumentOutputConfig(DocumentOutputConfig.newBuilder().build()) + .setModel("model104069929") + .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + + TranslateDocumentResponse actualResponse = client.translateDocument(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTranslationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + TranslateDocumentRequest actualRequest = ((TranslateDocumentRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getParent(), actualRequest.getParent()); + Assert.assertEquals(request.getSourceLanguageCode(), actualRequest.getSourceLanguageCode()); + Assert.assertEquals(request.getTargetLanguageCode(), actualRequest.getTargetLanguageCode()); + Assert.assertEquals(request.getDocumentInputConfig(), actualRequest.getDocumentInputConfig()); + Assert.assertEquals(request.getDocumentOutputConfig(), actualRequest.getDocumentOutputConfig()); + Assert.assertEquals(request.getModel(), actualRequest.getModel()); + Assert.assertEquals(request.getGlossaryConfig(), actualRequest.getGlossaryConfig()); + Assert.assertEquals(request.getLabelsMap(), actualRequest.getLabelsMap()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void translateDocumentExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTranslationService.addException(exception); + + try { + TranslateDocumentRequest request = + TranslateDocumentRequest.newBuilder() + .setParent("parent-995424086") + .setSourceLanguageCode("sourceLanguageCode1645917472") + .setTargetLanguageCode("targetLanguageCode-106414698") + .setDocumentInputConfig(DocumentInputConfig.newBuilder().build()) + .setDocumentOutputConfig(DocumentOutputConfig.newBuilder().build()) + .setModel("model104069929") + .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + client.translateDocument(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void batchTranslateTextTest() throws Exception { + BatchTranslateResponse expectedResponse = + BatchTranslateResponse.newBuilder() + .setTotalCharacters(-1368640955) + .setTranslatedCharacters(-1337326221) + .setFailedCharacters(1723028396) + .setSubmitTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("batchTranslateTextTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockTranslationService.addResponse(resultOperation); + + BatchTranslateTextRequest request = + BatchTranslateTextRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setSourceLanguageCode("sourceLanguageCode1645917472") + .addAllTargetLanguageCodes(new ArrayList()) + .putAllModels(new HashMap()) + .addAllInputConfigs(new ArrayList()) + .setOutputConfig(OutputConfig.newBuilder().build()) + .putAllGlossaries(new HashMap()) + .putAllLabels(new HashMap()) + .build(); + + BatchTranslateResponse actualResponse = client.batchTranslateTextAsync(request).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTranslationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + BatchTranslateTextRequest actualRequest = ((BatchTranslateTextRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getParent(), actualRequest.getParent()); + Assert.assertEquals(request.getSourceLanguageCode(), actualRequest.getSourceLanguageCode()); + Assert.assertEquals( + request.getTargetLanguageCodesList(), actualRequest.getTargetLanguageCodesList()); + Assert.assertEquals(request.getModelsMap(), actualRequest.getModelsMap()); + Assert.assertEquals(request.getInputConfigsList(), actualRequest.getInputConfigsList()); + Assert.assertEquals(request.getOutputConfig(), actualRequest.getOutputConfig()); + Assert.assertEquals(request.getGlossariesMap(), actualRequest.getGlossariesMap()); + Assert.assertEquals(request.getLabelsMap(), actualRequest.getLabelsMap()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void batchTranslateTextExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTranslationService.addException(exception); + + try { + BatchTranslateTextRequest request = + BatchTranslateTextRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setSourceLanguageCode("sourceLanguageCode1645917472") + .addAllTargetLanguageCodes(new ArrayList()) + .putAllModels(new HashMap()) + .addAllInputConfigs(new ArrayList()) + .setOutputConfig(OutputConfig.newBuilder().build()) + .putAllGlossaries(new HashMap()) + .putAllLabels(new HashMap()) + .build(); + client.batchTranslateTextAsync(request).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void batchTranslateDocumentTest() throws Exception { + BatchTranslateDocumentResponse expectedResponse = + BatchTranslateDocumentResponse.newBuilder() + .setTotalPages(-396186871) + .setTranslatedPages(-1652747493) + .setFailedPages(-2002254526) + .setTotalBillablePages(1292117569) + .setTotalCharacters(-1368640955) + .setTranslatedCharacters(-1337326221) + .setFailedCharacters(1723028396) + .setTotalBillableCharacters(1242495501) + .setSubmitTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("batchTranslateDocumentTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockTranslationService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String sourceLanguageCode = "sourceLanguageCode1645917472"; + List targetLanguageCodes = new ArrayList<>(); + List inputConfigs = new ArrayList<>(); + BatchDocumentOutputConfig outputConfig = BatchDocumentOutputConfig.newBuilder().build(); + + BatchTranslateDocumentResponse actualResponse = + client + .batchTranslateDocumentAsync( + parent, sourceLanguageCode, targetLanguageCodes, inputConfigs, outputConfig) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTranslationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + BatchTranslateDocumentRequest actualRequest = + ((BatchTranslateDocumentRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(sourceLanguageCode, actualRequest.getSourceLanguageCode()); + Assert.assertEquals(targetLanguageCodes, actualRequest.getTargetLanguageCodesList()); + Assert.assertEquals(inputConfigs, actualRequest.getInputConfigsList()); + Assert.assertEquals(outputConfig, actualRequest.getOutputConfig()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void batchTranslateDocumentExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTranslationService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String sourceLanguageCode = "sourceLanguageCode1645917472"; + List targetLanguageCodes = new ArrayList<>(); + List inputConfigs = new ArrayList<>(); + BatchDocumentOutputConfig outputConfig = BatchDocumentOutputConfig.newBuilder().build(); + client + .batchTranslateDocumentAsync( + parent, sourceLanguageCode, targetLanguageCodes, inputConfigs, outputConfig) + .get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void batchTranslateDocumentTest2() throws Exception { + BatchTranslateDocumentResponse expectedResponse = + BatchTranslateDocumentResponse.newBuilder() + .setTotalPages(-396186871) + .setTranslatedPages(-1652747493) + .setFailedPages(-2002254526) + .setTotalBillablePages(1292117569) + .setTotalCharacters(-1368640955) + .setTranslatedCharacters(-1337326221) + .setFailedCharacters(1723028396) + .setTotalBillableCharacters(1242495501) + .setSubmitTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("batchTranslateDocumentTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockTranslationService.addResponse(resultOperation); + + String parent = "parent-995424086"; + String sourceLanguageCode = "sourceLanguageCode1645917472"; + List targetLanguageCodes = new ArrayList<>(); + List inputConfigs = new ArrayList<>(); + BatchDocumentOutputConfig outputConfig = BatchDocumentOutputConfig.newBuilder().build(); + + BatchTranslateDocumentResponse actualResponse = + client + .batchTranslateDocumentAsync( + parent, sourceLanguageCode, targetLanguageCodes, inputConfigs, outputConfig) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTranslationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + BatchTranslateDocumentRequest actualRequest = + ((BatchTranslateDocumentRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(sourceLanguageCode, actualRequest.getSourceLanguageCode()); + Assert.assertEquals(targetLanguageCodes, actualRequest.getTargetLanguageCodesList()); + Assert.assertEquals(inputConfigs, actualRequest.getInputConfigsList()); + Assert.assertEquals(outputConfig, actualRequest.getOutputConfig()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void batchTranslateDocumentExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTranslationService.addException(exception); + + try { + String parent = "parent-995424086"; + String sourceLanguageCode = "sourceLanguageCode1645917472"; + List targetLanguageCodes = new ArrayList<>(); + List inputConfigs = new ArrayList<>(); + BatchDocumentOutputConfig outputConfig = BatchDocumentOutputConfig.newBuilder().build(); + client + .batchTranslateDocumentAsync( + parent, sourceLanguageCode, targetLanguageCodes, inputConfigs, outputConfig) + .get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void createGlossaryTest() throws Exception { + Glossary expectedResponse = + Glossary.newBuilder() + .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString()) + .setInputConfig(GlossaryInputConfig.newBuilder().build()) + .setEntryCount(-811131134) + .setSubmitTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createGlossaryTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockTranslationService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Glossary glossary = Glossary.newBuilder().build(); + + Glossary actualResponse = client.createGlossaryAsync(parent, glossary).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTranslationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateGlossaryRequest actualRequest = ((CreateGlossaryRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(glossary, actualRequest.getGlossary()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createGlossaryExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTranslationService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Glossary glossary = Glossary.newBuilder().build(); + client.createGlossaryAsync(parent, glossary).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void createGlossaryTest2() throws Exception { + Glossary expectedResponse = + Glossary.newBuilder() + .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString()) + .setInputConfig(GlossaryInputConfig.newBuilder().build()) + .setEntryCount(-811131134) + .setSubmitTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createGlossaryTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockTranslationService.addResponse(resultOperation); + + String parent = "parent-995424086"; + Glossary glossary = Glossary.newBuilder().build(); + + Glossary actualResponse = client.createGlossaryAsync(parent, glossary).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTranslationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateGlossaryRequest actualRequest = ((CreateGlossaryRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(glossary, actualRequest.getGlossary()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createGlossaryExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTranslationService.addException(exception); + + try { + String parent = "parent-995424086"; + Glossary glossary = Glossary.newBuilder().build(); + client.createGlossaryAsync(parent, glossary).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void listGlossariesTest() throws Exception { + Glossary responsesElement = Glossary.newBuilder().build(); + ListGlossariesResponse expectedResponse = + ListGlossariesResponse.newBuilder() + .setNextPageToken("") + .addAllGlossaries(Arrays.asList(responsesElement)) + .build(); + mockTranslationService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListGlossariesPagedResponse pagedListResponse = client.listGlossaries(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getGlossariesList().get(0), resources.get(0)); + + List actualRequests = mockTranslationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListGlossariesRequest actualRequest = ((ListGlossariesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listGlossariesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTranslationService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listGlossaries(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listGlossariesTest2() throws Exception { + Glossary responsesElement = Glossary.newBuilder().build(); + ListGlossariesResponse expectedResponse = + ListGlossariesResponse.newBuilder() + .setNextPageToken("") + .addAllGlossaries(Arrays.asList(responsesElement)) + .build(); + mockTranslationService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListGlossariesPagedResponse pagedListResponse = client.listGlossaries(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getGlossariesList().get(0), resources.get(0)); + + List actualRequests = mockTranslationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListGlossariesRequest actualRequest = ((ListGlossariesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listGlossariesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTranslationService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listGlossaries(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getGlossaryTest() throws Exception { + Glossary expectedResponse = + Glossary.newBuilder() + .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString()) + .setInputConfig(GlossaryInputConfig.newBuilder().build()) + .setEntryCount(-811131134) + .setSubmitTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .build(); + mockTranslationService.addResponse(expectedResponse); + + GlossaryName name = GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]"); + + Glossary actualResponse = client.getGlossary(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTranslationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetGlossaryRequest actualRequest = ((GetGlossaryRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getGlossaryExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTranslationService.addException(exception); + + try { + GlossaryName name = GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]"); + client.getGlossary(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getGlossaryTest2() throws Exception { + Glossary expectedResponse = + Glossary.newBuilder() + .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString()) + .setInputConfig(GlossaryInputConfig.newBuilder().build()) + .setEntryCount(-811131134) + .setSubmitTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .build(); + mockTranslationService.addResponse(expectedResponse); + + String name = "name3373707"; + + Glossary actualResponse = client.getGlossary(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTranslationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetGlossaryRequest actualRequest = ((GetGlossaryRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getGlossaryExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTranslationService.addException(exception); + + try { + String name = "name3373707"; + client.getGlossary(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteGlossaryTest() throws Exception { + DeleteGlossaryResponse expectedResponse = + DeleteGlossaryResponse.newBuilder() + .setName("name3373707") + .setSubmitTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteGlossaryTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockTranslationService.addResponse(resultOperation); + + GlossaryName name = GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]"); + + DeleteGlossaryResponse actualResponse = client.deleteGlossaryAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTranslationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteGlossaryRequest actualRequest = ((DeleteGlossaryRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteGlossaryExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTranslationService.addException(exception); + + try { + GlossaryName name = GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]"); + client.deleteGlossaryAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteGlossaryTest2() throws Exception { + DeleteGlossaryResponse expectedResponse = + DeleteGlossaryResponse.newBuilder() + .setName("name3373707") + .setSubmitTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteGlossaryTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockTranslationService.addResponse(resultOperation); + + String name = "name3373707"; + + DeleteGlossaryResponse actualResponse = client.deleteGlossaryAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTranslationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteGlossaryRequest actualRequest = ((DeleteGlossaryRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteGlossaryExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTranslationService.addException(exception); + + try { + String name = "name3373707"; + client.deleteGlossaryAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } +} diff --git a/owl-bot-staging/v3/grpc-google-cloud-translate-v3/src/main/java/com/google/cloud/location/LocationsGrpc.java b/owl-bot-staging/v3/grpc-google-cloud-translate-v3/src/main/java/com/google/cloud/location/LocationsGrpc.java new file mode 100644 index 00000000..e542931f --- /dev/null +++ b/owl-bot-staging/v3/grpc-google-cloud-translate-v3/src/main/java/com/google/cloud/location/LocationsGrpc.java @@ -0,0 +1,398 @@ +package com.google.cloud.location; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *
+ * An abstract interface that provides location-related information for
+ * a service. Service-specific metadata is provided through the
+ * [Location.metadata][google.cloud.location.Location.metadata] field.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/location/locations.proto") +public final class LocationsGrpc { + + private LocationsGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.location.Locations"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getListLocationsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListLocations", + requestType = com.google.cloud.location.ListLocationsRequest.class, + responseType = com.google.cloud.location.ListLocationsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListLocationsMethod() { + io.grpc.MethodDescriptor getListLocationsMethod; + if ((getListLocationsMethod = LocationsGrpc.getListLocationsMethod) == null) { + synchronized (LocationsGrpc.class) { + if ((getListLocationsMethod = LocationsGrpc.getListLocationsMethod) == null) { + LocationsGrpc.getListLocationsMethod = getListLocationsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListLocations")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.location.ListLocationsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.location.ListLocationsResponse.getDefaultInstance())) + .setSchemaDescriptor(new LocationsMethodDescriptorSupplier("ListLocations")) + .build(); + } + } + } + return getListLocationsMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetLocationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetLocation", + requestType = com.google.cloud.location.GetLocationRequest.class, + responseType = com.google.cloud.location.Location.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetLocationMethod() { + io.grpc.MethodDescriptor getGetLocationMethod; + if ((getGetLocationMethod = LocationsGrpc.getGetLocationMethod) == null) { + synchronized (LocationsGrpc.class) { + if ((getGetLocationMethod = LocationsGrpc.getGetLocationMethod) == null) { + LocationsGrpc.getGetLocationMethod = getGetLocationMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetLocation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.location.GetLocationRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.location.Location.getDefaultInstance())) + .setSchemaDescriptor(new LocationsMethodDescriptorSupplier("GetLocation")) + .build(); + } + } + } + return getGetLocationMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static LocationsStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public LocationsStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new LocationsStub(channel, callOptions); + } + }; + return LocationsStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static LocationsBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public LocationsBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new LocationsBlockingStub(channel, callOptions); + } + }; + return LocationsBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static LocationsFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public LocationsFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new LocationsFutureStub(channel, callOptions); + } + }; + return LocationsFutureStub.newStub(factory, channel); + } + + /** + *
+   * An abstract interface that provides location-related information for
+   * a service. Service-specific metadata is provided through the
+   * [Location.metadata][google.cloud.location.Location.metadata] field.
+   * 
+ */ + public static abstract class LocationsImplBase implements io.grpc.BindableService { + + /** + *
+     * Lists information about the supported locations for this service.
+     * 
+ */ + public void listLocations(com.google.cloud.location.ListLocationsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListLocationsMethod(), responseObserver); + } + + /** + *
+     * Gets information about a location.
+     * 
+ */ + public void getLocation(com.google.cloud.location.GetLocationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetLocationMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListLocationsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.location.ListLocationsRequest, + com.google.cloud.location.ListLocationsResponse>( + this, METHODID_LIST_LOCATIONS))) + .addMethod( + getGetLocationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.location.GetLocationRequest, + com.google.cloud.location.Location>( + this, METHODID_GET_LOCATION))) + .build(); + } + } + + /** + *
+   * An abstract interface that provides location-related information for
+   * a service. Service-specific metadata is provided through the
+   * [Location.metadata][google.cloud.location.Location.metadata] field.
+   * 
+ */ + public static final class LocationsStub extends io.grpc.stub.AbstractAsyncStub { + private LocationsStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected LocationsStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new LocationsStub(channel, callOptions); + } + + /** + *
+     * Lists information about the supported locations for this service.
+     * 
+ */ + public void listLocations(com.google.cloud.location.ListLocationsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListLocationsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets information about a location.
+     * 
+ */ + public void getLocation(com.google.cloud.location.GetLocationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetLocationMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * An abstract interface that provides location-related information for
+   * a service. Service-specific metadata is provided through the
+   * [Location.metadata][google.cloud.location.Location.metadata] field.
+   * 
+ */ + public static final class LocationsBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private LocationsBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected LocationsBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new LocationsBlockingStub(channel, callOptions); + } + + /** + *
+     * Lists information about the supported locations for this service.
+     * 
+ */ + public com.google.cloud.location.ListLocationsResponse listLocations(com.google.cloud.location.ListLocationsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListLocationsMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets information about a location.
+     * 
+ */ + public com.google.cloud.location.Location getLocation(com.google.cloud.location.GetLocationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetLocationMethod(), getCallOptions(), request); + } + } + + /** + *
+   * An abstract interface that provides location-related information for
+   * a service. Service-specific metadata is provided through the
+   * [Location.metadata][google.cloud.location.Location.metadata] field.
+   * 
+ */ + public static final class LocationsFutureStub extends io.grpc.stub.AbstractFutureStub { + private LocationsFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected LocationsFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new LocationsFutureStub(channel, callOptions); + } + + /** + *
+     * Lists information about the supported locations for this service.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listLocations( + com.google.cloud.location.ListLocationsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListLocationsMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets information about a location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getLocation( + com.google.cloud.location.GetLocationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetLocationMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_LOCATIONS = 0; + private static final int METHODID_GET_LOCATION = 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 final LocationsImplBase serviceImpl; + private final int methodId; + + MethodHandlers(LocationsImplBase 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_LIST_LOCATIONS: + serviceImpl.listLocations((com.google.cloud.location.ListLocationsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_LOCATION: + serviceImpl.getLocation((com.google.cloud.location.GetLocationRequest) 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(); + } + } + } + + private static abstract class LocationsBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + LocationsBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.location.LocationsProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("Locations"); + } + } + + private static final class LocationsFileDescriptorSupplier + extends LocationsBaseDescriptorSupplier { + LocationsFileDescriptorSupplier() {} + } + + private static final class LocationsMethodDescriptorSupplier + extends LocationsBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + LocationsMethodDescriptorSupplier(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 (LocationsGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new LocationsFileDescriptorSupplier()) + .addMethod(getListLocationsMethod()) + .addMethod(getGetLocationMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/v3/grpc-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationServiceGrpc.java b/owl-bot-staging/v3/grpc-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationServiceGrpc.java new file mode 100644 index 00000000..e9692869 --- /dev/null +++ b/owl-bot-staging/v3/grpc-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationServiceGrpc.java @@ -0,0 +1,1136 @@ +package com.google.cloud.translate.v3; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *
+ * Provides natural language translation operations.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/translate/v3/translation_service.proto") +public final class TranslationServiceGrpc { + + private TranslationServiceGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.translation.v3.TranslationService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getTranslateTextMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "TranslateText", + requestType = com.google.cloud.translate.v3.TranslateTextRequest.class, + responseType = com.google.cloud.translate.v3.TranslateTextResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getTranslateTextMethod() { + io.grpc.MethodDescriptor getTranslateTextMethod; + if ((getTranslateTextMethod = TranslationServiceGrpc.getTranslateTextMethod) == null) { + synchronized (TranslationServiceGrpc.class) { + if ((getTranslateTextMethod = TranslationServiceGrpc.getTranslateTextMethod) == null) { + TranslationServiceGrpc.getTranslateTextMethod = getTranslateTextMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TranslateText")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3.TranslateTextRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3.TranslateTextResponse.getDefaultInstance())) + .setSchemaDescriptor(new TranslationServiceMethodDescriptorSupplier("TranslateText")) + .build(); + } + } + } + return getTranslateTextMethod; + } + + private static volatile io.grpc.MethodDescriptor getDetectLanguageMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DetectLanguage", + requestType = com.google.cloud.translate.v3.DetectLanguageRequest.class, + responseType = com.google.cloud.translate.v3.DetectLanguageResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDetectLanguageMethod() { + io.grpc.MethodDescriptor getDetectLanguageMethod; + if ((getDetectLanguageMethod = TranslationServiceGrpc.getDetectLanguageMethod) == null) { + synchronized (TranslationServiceGrpc.class) { + if ((getDetectLanguageMethod = TranslationServiceGrpc.getDetectLanguageMethod) == null) { + TranslationServiceGrpc.getDetectLanguageMethod = getDetectLanguageMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DetectLanguage")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3.DetectLanguageRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3.DetectLanguageResponse.getDefaultInstance())) + .setSchemaDescriptor(new TranslationServiceMethodDescriptorSupplier("DetectLanguage")) + .build(); + } + } + } + return getDetectLanguageMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetSupportedLanguagesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetSupportedLanguages", + requestType = com.google.cloud.translate.v3.GetSupportedLanguagesRequest.class, + responseType = com.google.cloud.translate.v3.SupportedLanguages.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetSupportedLanguagesMethod() { + io.grpc.MethodDescriptor getGetSupportedLanguagesMethod; + if ((getGetSupportedLanguagesMethod = TranslationServiceGrpc.getGetSupportedLanguagesMethod) == null) { + synchronized (TranslationServiceGrpc.class) { + if ((getGetSupportedLanguagesMethod = TranslationServiceGrpc.getGetSupportedLanguagesMethod) == null) { + TranslationServiceGrpc.getGetSupportedLanguagesMethod = getGetSupportedLanguagesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSupportedLanguages")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3.GetSupportedLanguagesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3.SupportedLanguages.getDefaultInstance())) + .setSchemaDescriptor(new TranslationServiceMethodDescriptorSupplier("GetSupportedLanguages")) + .build(); + } + } + } + return getGetSupportedLanguagesMethod; + } + + private static volatile io.grpc.MethodDescriptor getTranslateDocumentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "TranslateDocument", + requestType = com.google.cloud.translate.v3.TranslateDocumentRequest.class, + responseType = com.google.cloud.translate.v3.TranslateDocumentResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getTranslateDocumentMethod() { + io.grpc.MethodDescriptor getTranslateDocumentMethod; + if ((getTranslateDocumentMethod = TranslationServiceGrpc.getTranslateDocumentMethod) == null) { + synchronized (TranslationServiceGrpc.class) { + if ((getTranslateDocumentMethod = TranslationServiceGrpc.getTranslateDocumentMethod) == null) { + TranslationServiceGrpc.getTranslateDocumentMethod = getTranslateDocumentMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TranslateDocument")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3.TranslateDocumentRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3.TranslateDocumentResponse.getDefaultInstance())) + .setSchemaDescriptor(new TranslationServiceMethodDescriptorSupplier("TranslateDocument")) + .build(); + } + } + } + return getTranslateDocumentMethod; + } + + private static volatile io.grpc.MethodDescriptor getBatchTranslateTextMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "BatchTranslateText", + requestType = com.google.cloud.translate.v3.BatchTranslateTextRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getBatchTranslateTextMethod() { + io.grpc.MethodDescriptor getBatchTranslateTextMethod; + if ((getBatchTranslateTextMethod = TranslationServiceGrpc.getBatchTranslateTextMethod) == null) { + synchronized (TranslationServiceGrpc.class) { + if ((getBatchTranslateTextMethod = TranslationServiceGrpc.getBatchTranslateTextMethod) == null) { + TranslationServiceGrpc.getBatchTranslateTextMethod = getBatchTranslateTextMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BatchTranslateText")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3.BatchTranslateTextRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new TranslationServiceMethodDescriptorSupplier("BatchTranslateText")) + .build(); + } + } + } + return getBatchTranslateTextMethod; + } + + private static volatile io.grpc.MethodDescriptor getBatchTranslateDocumentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "BatchTranslateDocument", + requestType = com.google.cloud.translate.v3.BatchTranslateDocumentRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getBatchTranslateDocumentMethod() { + io.grpc.MethodDescriptor getBatchTranslateDocumentMethod; + if ((getBatchTranslateDocumentMethod = TranslationServiceGrpc.getBatchTranslateDocumentMethod) == null) { + synchronized (TranslationServiceGrpc.class) { + if ((getBatchTranslateDocumentMethod = TranslationServiceGrpc.getBatchTranslateDocumentMethod) == null) { + TranslationServiceGrpc.getBatchTranslateDocumentMethod = getBatchTranslateDocumentMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BatchTranslateDocument")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3.BatchTranslateDocumentRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new TranslationServiceMethodDescriptorSupplier("BatchTranslateDocument")) + .build(); + } + } + } + return getBatchTranslateDocumentMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateGlossaryMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateGlossary", + requestType = com.google.cloud.translate.v3.CreateGlossaryRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateGlossaryMethod() { + io.grpc.MethodDescriptor getCreateGlossaryMethod; + if ((getCreateGlossaryMethod = TranslationServiceGrpc.getCreateGlossaryMethod) == null) { + synchronized (TranslationServiceGrpc.class) { + if ((getCreateGlossaryMethod = TranslationServiceGrpc.getCreateGlossaryMethod) == null) { + TranslationServiceGrpc.getCreateGlossaryMethod = getCreateGlossaryMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateGlossary")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3.CreateGlossaryRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new TranslationServiceMethodDescriptorSupplier("CreateGlossary")) + .build(); + } + } + } + return getCreateGlossaryMethod; + } + + private static volatile io.grpc.MethodDescriptor getListGlossariesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListGlossaries", + requestType = com.google.cloud.translate.v3.ListGlossariesRequest.class, + responseType = com.google.cloud.translate.v3.ListGlossariesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListGlossariesMethod() { + io.grpc.MethodDescriptor getListGlossariesMethod; + if ((getListGlossariesMethod = TranslationServiceGrpc.getListGlossariesMethod) == null) { + synchronized (TranslationServiceGrpc.class) { + if ((getListGlossariesMethod = TranslationServiceGrpc.getListGlossariesMethod) == null) { + TranslationServiceGrpc.getListGlossariesMethod = getListGlossariesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListGlossaries")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3.ListGlossariesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3.ListGlossariesResponse.getDefaultInstance())) + .setSchemaDescriptor(new TranslationServiceMethodDescriptorSupplier("ListGlossaries")) + .build(); + } + } + } + return getListGlossariesMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetGlossaryMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetGlossary", + requestType = com.google.cloud.translate.v3.GetGlossaryRequest.class, + responseType = com.google.cloud.translate.v3.Glossary.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetGlossaryMethod() { + io.grpc.MethodDescriptor getGetGlossaryMethod; + if ((getGetGlossaryMethod = TranslationServiceGrpc.getGetGlossaryMethod) == null) { + synchronized (TranslationServiceGrpc.class) { + if ((getGetGlossaryMethod = TranslationServiceGrpc.getGetGlossaryMethod) == null) { + TranslationServiceGrpc.getGetGlossaryMethod = getGetGlossaryMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetGlossary")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3.GetGlossaryRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3.Glossary.getDefaultInstance())) + .setSchemaDescriptor(new TranslationServiceMethodDescriptorSupplier("GetGlossary")) + .build(); + } + } + } + return getGetGlossaryMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteGlossaryMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteGlossary", + requestType = com.google.cloud.translate.v3.DeleteGlossaryRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteGlossaryMethod() { + io.grpc.MethodDescriptor getDeleteGlossaryMethod; + if ((getDeleteGlossaryMethod = TranslationServiceGrpc.getDeleteGlossaryMethod) == null) { + synchronized (TranslationServiceGrpc.class) { + if ((getDeleteGlossaryMethod = TranslationServiceGrpc.getDeleteGlossaryMethod) == null) { + TranslationServiceGrpc.getDeleteGlossaryMethod = getDeleteGlossaryMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteGlossary")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3.DeleteGlossaryRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new TranslationServiceMethodDescriptorSupplier("DeleteGlossary")) + .build(); + } + } + } + return getDeleteGlossaryMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static TranslationServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public TranslationServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TranslationServiceStub(channel, callOptions); + } + }; + return TranslationServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static TranslationServiceBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public TranslationServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TranslationServiceBlockingStub(channel, callOptions); + } + }; + return TranslationServiceBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static TranslationServiceFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public TranslationServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TranslationServiceFutureStub(channel, callOptions); + } + }; + return TranslationServiceFutureStub.newStub(factory, channel); + } + + /** + *
+   * Provides natural language translation operations.
+   * 
+ */ + public static abstract class TranslationServiceImplBase implements io.grpc.BindableService { + + /** + *
+     * Translates input text and returns translated text.
+     * 
+ */ + public void translateText(com.google.cloud.translate.v3.TranslateTextRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getTranslateTextMethod(), responseObserver); + } + + /** + *
+     * Detects the language of text within a request.
+     * 
+ */ + public void detectLanguage(com.google.cloud.translate.v3.DetectLanguageRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDetectLanguageMethod(), responseObserver); + } + + /** + *
+     * Returns a list of supported languages for translation.
+     * 
+ */ + public void getSupportedLanguages(com.google.cloud.translate.v3.GetSupportedLanguagesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSupportedLanguagesMethod(), responseObserver); + } + + /** + *
+     * Translates documents in synchronous mode.
+     * 
+ */ + public void translateDocument(com.google.cloud.translate.v3.TranslateDocumentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getTranslateDocumentMethod(), responseObserver); + } + + /** + *
+     * Translates a large volume of text in asynchronous batch mode.
+     * This function provides real-time output as the inputs are being processed.
+     * If caller cancels a request, the partial results (for an input file, it's
+     * all or nothing) may still be available on the specified output location.
+     * This call returns immediately and you can
+     * use google.longrunning.Operation.name to poll the status of the call.
+     * 
+ */ + public void batchTranslateText(com.google.cloud.translate.v3.BatchTranslateTextRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getBatchTranslateTextMethod(), responseObserver); + } + + /** + *
+     * Translates a large volume of document in asynchronous batch mode.
+     * This function provides real-time output as the inputs are being processed.
+     * If caller cancels a request, the partial results (for an input file, it's
+     * all or nothing) may still be available on the specified output location.
+     * This call returns immediately and you can use
+     * google.longrunning.Operation.name to poll the status of the call.
+     * 
+ */ + public void batchTranslateDocument(com.google.cloud.translate.v3.BatchTranslateDocumentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getBatchTranslateDocumentMethod(), responseObserver); + } + + /** + *
+     * Creates a glossary and returns the long-running operation. Returns
+     * NOT_FOUND, if the project doesn't exist.
+     * 
+ */ + public void createGlossary(com.google.cloud.translate.v3.CreateGlossaryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateGlossaryMethod(), responseObserver); + } + + /** + *
+     * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't
+     * exist.
+     * 
+ */ + public void listGlossaries(com.google.cloud.translate.v3.ListGlossariesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListGlossariesMethod(), responseObserver); + } + + /** + *
+     * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't
+     * exist.
+     * 
+ */ + public void getGlossary(com.google.cloud.translate.v3.GetGlossaryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetGlossaryMethod(), responseObserver); + } + + /** + *
+     * Deletes a glossary, or cancels glossary construction
+     * if the glossary isn't created yet.
+     * Returns NOT_FOUND, if the glossary doesn't exist.
+     * 
+ */ + public void deleteGlossary(com.google.cloud.translate.v3.DeleteGlossaryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteGlossaryMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getTranslateTextMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3.TranslateTextRequest, + com.google.cloud.translate.v3.TranslateTextResponse>( + this, METHODID_TRANSLATE_TEXT))) + .addMethod( + getDetectLanguageMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3.DetectLanguageRequest, + com.google.cloud.translate.v3.DetectLanguageResponse>( + this, METHODID_DETECT_LANGUAGE))) + .addMethod( + getGetSupportedLanguagesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3.GetSupportedLanguagesRequest, + com.google.cloud.translate.v3.SupportedLanguages>( + this, METHODID_GET_SUPPORTED_LANGUAGES))) + .addMethod( + getTranslateDocumentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3.TranslateDocumentRequest, + com.google.cloud.translate.v3.TranslateDocumentResponse>( + this, METHODID_TRANSLATE_DOCUMENT))) + .addMethod( + getBatchTranslateTextMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3.BatchTranslateTextRequest, + com.google.longrunning.Operation>( + this, METHODID_BATCH_TRANSLATE_TEXT))) + .addMethod( + getBatchTranslateDocumentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3.BatchTranslateDocumentRequest, + com.google.longrunning.Operation>( + this, METHODID_BATCH_TRANSLATE_DOCUMENT))) + .addMethod( + getCreateGlossaryMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3.CreateGlossaryRequest, + com.google.longrunning.Operation>( + this, METHODID_CREATE_GLOSSARY))) + .addMethod( + getListGlossariesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3.ListGlossariesRequest, + com.google.cloud.translate.v3.ListGlossariesResponse>( + this, METHODID_LIST_GLOSSARIES))) + .addMethod( + getGetGlossaryMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3.GetGlossaryRequest, + com.google.cloud.translate.v3.Glossary>( + this, METHODID_GET_GLOSSARY))) + .addMethod( + getDeleteGlossaryMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3.DeleteGlossaryRequest, + com.google.longrunning.Operation>( + this, METHODID_DELETE_GLOSSARY))) + .build(); + } + } + + /** + *
+   * Provides natural language translation operations.
+   * 
+ */ + public static final class TranslationServiceStub extends io.grpc.stub.AbstractAsyncStub { + private TranslationServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected TranslationServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TranslationServiceStub(channel, callOptions); + } + + /** + *
+     * Translates input text and returns translated text.
+     * 
+ */ + public void translateText(com.google.cloud.translate.v3.TranslateTextRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getTranslateTextMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Detects the language of text within a request.
+     * 
+ */ + public void detectLanguage(com.google.cloud.translate.v3.DetectLanguageRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDetectLanguageMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Returns a list of supported languages for translation.
+     * 
+ */ + public void getSupportedLanguages(com.google.cloud.translate.v3.GetSupportedLanguagesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetSupportedLanguagesMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Translates documents in synchronous mode.
+     * 
+ */ + public void translateDocument(com.google.cloud.translate.v3.TranslateDocumentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getTranslateDocumentMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Translates a large volume of text in asynchronous batch mode.
+     * This function provides real-time output as the inputs are being processed.
+     * If caller cancels a request, the partial results (for an input file, it's
+     * all or nothing) may still be available on the specified output location.
+     * This call returns immediately and you can
+     * use google.longrunning.Operation.name to poll the status of the call.
+     * 
+ */ + public void batchTranslateText(com.google.cloud.translate.v3.BatchTranslateTextRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getBatchTranslateTextMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Translates a large volume of document in asynchronous batch mode.
+     * This function provides real-time output as the inputs are being processed.
+     * If caller cancels a request, the partial results (for an input file, it's
+     * all or nothing) may still be available on the specified output location.
+     * This call returns immediately and you can use
+     * google.longrunning.Operation.name to poll the status of the call.
+     * 
+ */ + public void batchTranslateDocument(com.google.cloud.translate.v3.BatchTranslateDocumentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getBatchTranslateDocumentMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates a glossary and returns the long-running operation. Returns
+     * NOT_FOUND, if the project doesn't exist.
+     * 
+ */ + public void createGlossary(com.google.cloud.translate.v3.CreateGlossaryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateGlossaryMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't
+     * exist.
+     * 
+ */ + public void listGlossaries(com.google.cloud.translate.v3.ListGlossariesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListGlossariesMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't
+     * exist.
+     * 
+ */ + public void getGlossary(com.google.cloud.translate.v3.GetGlossaryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetGlossaryMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes a glossary, or cancels glossary construction
+     * if the glossary isn't created yet.
+     * Returns NOT_FOUND, if the glossary doesn't exist.
+     * 
+ */ + public void deleteGlossary(com.google.cloud.translate.v3.DeleteGlossaryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteGlossaryMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * Provides natural language translation operations.
+   * 
+ */ + public static final class TranslationServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private TranslationServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected TranslationServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TranslationServiceBlockingStub(channel, callOptions); + } + + /** + *
+     * Translates input text and returns translated text.
+     * 
+ */ + public com.google.cloud.translate.v3.TranslateTextResponse translateText(com.google.cloud.translate.v3.TranslateTextRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getTranslateTextMethod(), getCallOptions(), request); + } + + /** + *
+     * Detects the language of text within a request.
+     * 
+ */ + public com.google.cloud.translate.v3.DetectLanguageResponse detectLanguage(com.google.cloud.translate.v3.DetectLanguageRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDetectLanguageMethod(), getCallOptions(), request); + } + + /** + *
+     * Returns a list of supported languages for translation.
+     * 
+ */ + public com.google.cloud.translate.v3.SupportedLanguages getSupportedLanguages(com.google.cloud.translate.v3.GetSupportedLanguagesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetSupportedLanguagesMethod(), getCallOptions(), request); + } + + /** + *
+     * Translates documents in synchronous mode.
+     * 
+ */ + public com.google.cloud.translate.v3.TranslateDocumentResponse translateDocument(com.google.cloud.translate.v3.TranslateDocumentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getTranslateDocumentMethod(), getCallOptions(), request); + } + + /** + *
+     * Translates a large volume of text in asynchronous batch mode.
+     * This function provides real-time output as the inputs are being processed.
+     * If caller cancels a request, the partial results (for an input file, it's
+     * all or nothing) may still be available on the specified output location.
+     * This call returns immediately and you can
+     * use google.longrunning.Operation.name to poll the status of the call.
+     * 
+ */ + public com.google.longrunning.Operation batchTranslateText(com.google.cloud.translate.v3.BatchTranslateTextRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getBatchTranslateTextMethod(), getCallOptions(), request); + } + + /** + *
+     * Translates a large volume of document in asynchronous batch mode.
+     * This function provides real-time output as the inputs are being processed.
+     * If caller cancels a request, the partial results (for an input file, it's
+     * all or nothing) may still be available on the specified output location.
+     * This call returns immediately and you can use
+     * google.longrunning.Operation.name to poll the status of the call.
+     * 
+ */ + public com.google.longrunning.Operation batchTranslateDocument(com.google.cloud.translate.v3.BatchTranslateDocumentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getBatchTranslateDocumentMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates a glossary and returns the long-running operation. Returns
+     * NOT_FOUND, if the project doesn't exist.
+     * 
+ */ + public com.google.longrunning.Operation createGlossary(com.google.cloud.translate.v3.CreateGlossaryRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateGlossaryMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't
+     * exist.
+     * 
+ */ + public com.google.cloud.translate.v3.ListGlossariesResponse listGlossaries(com.google.cloud.translate.v3.ListGlossariesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListGlossariesMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't
+     * exist.
+     * 
+ */ + public com.google.cloud.translate.v3.Glossary getGlossary(com.google.cloud.translate.v3.GetGlossaryRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetGlossaryMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes a glossary, or cancels glossary construction
+     * if the glossary isn't created yet.
+     * Returns NOT_FOUND, if the glossary doesn't exist.
+     * 
+ */ + public com.google.longrunning.Operation deleteGlossary(com.google.cloud.translate.v3.DeleteGlossaryRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteGlossaryMethod(), getCallOptions(), request); + } + } + + /** + *
+   * Provides natural language translation operations.
+   * 
+ */ + public static final class TranslationServiceFutureStub extends io.grpc.stub.AbstractFutureStub { + private TranslationServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected TranslationServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TranslationServiceFutureStub(channel, callOptions); + } + + /** + *
+     * Translates input text and returns translated text.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture translateText( + com.google.cloud.translate.v3.TranslateTextRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getTranslateTextMethod(), getCallOptions()), request); + } + + /** + *
+     * Detects the language of text within a request.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture detectLanguage( + com.google.cloud.translate.v3.DetectLanguageRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDetectLanguageMethod(), getCallOptions()), request); + } + + /** + *
+     * Returns a list of supported languages for translation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getSupportedLanguages( + com.google.cloud.translate.v3.GetSupportedLanguagesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetSupportedLanguagesMethod(), getCallOptions()), request); + } + + /** + *
+     * Translates documents in synchronous mode.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture translateDocument( + com.google.cloud.translate.v3.TranslateDocumentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getTranslateDocumentMethod(), getCallOptions()), request); + } + + /** + *
+     * Translates a large volume of text in asynchronous batch mode.
+     * This function provides real-time output as the inputs are being processed.
+     * If caller cancels a request, the partial results (for an input file, it's
+     * all or nothing) may still be available on the specified output location.
+     * This call returns immediately and you can
+     * use google.longrunning.Operation.name to poll the status of the call.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture batchTranslateText( + com.google.cloud.translate.v3.BatchTranslateTextRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getBatchTranslateTextMethod(), getCallOptions()), request); + } + + /** + *
+     * Translates a large volume of document in asynchronous batch mode.
+     * This function provides real-time output as the inputs are being processed.
+     * If caller cancels a request, the partial results (for an input file, it's
+     * all or nothing) may still be available on the specified output location.
+     * This call returns immediately and you can use
+     * google.longrunning.Operation.name to poll the status of the call.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture batchTranslateDocument( + com.google.cloud.translate.v3.BatchTranslateDocumentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getBatchTranslateDocumentMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates a glossary and returns the long-running operation. Returns
+     * NOT_FOUND, if the project doesn't exist.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createGlossary( + com.google.cloud.translate.v3.CreateGlossaryRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateGlossaryMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't
+     * exist.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listGlossaries( + com.google.cloud.translate.v3.ListGlossariesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListGlossariesMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't
+     * exist.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getGlossary( + com.google.cloud.translate.v3.GetGlossaryRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetGlossaryMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes a glossary, or cancels glossary construction
+     * if the glossary isn't created yet.
+     * Returns NOT_FOUND, if the glossary doesn't exist.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteGlossary( + com.google.cloud.translate.v3.DeleteGlossaryRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteGlossaryMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_TRANSLATE_TEXT = 0; + private static final int METHODID_DETECT_LANGUAGE = 1; + private static final int METHODID_GET_SUPPORTED_LANGUAGES = 2; + private static final int METHODID_TRANSLATE_DOCUMENT = 3; + private static final int METHODID_BATCH_TRANSLATE_TEXT = 4; + private static final int METHODID_BATCH_TRANSLATE_DOCUMENT = 5; + private static final int METHODID_CREATE_GLOSSARY = 6; + private static final int METHODID_LIST_GLOSSARIES = 7; + private static final int METHODID_GET_GLOSSARY = 8; + private static final int METHODID_DELETE_GLOSSARY = 9; + + 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 TranslationServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(TranslationServiceImplBase 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_TRANSLATE_TEXT: + serviceImpl.translateText((com.google.cloud.translate.v3.TranslateTextRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DETECT_LANGUAGE: + serviceImpl.detectLanguage((com.google.cloud.translate.v3.DetectLanguageRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_SUPPORTED_LANGUAGES: + serviceImpl.getSupportedLanguages((com.google.cloud.translate.v3.GetSupportedLanguagesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_TRANSLATE_DOCUMENT: + serviceImpl.translateDocument((com.google.cloud.translate.v3.TranslateDocumentRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_BATCH_TRANSLATE_TEXT: + serviceImpl.batchTranslateText((com.google.cloud.translate.v3.BatchTranslateTextRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_BATCH_TRANSLATE_DOCUMENT: + serviceImpl.batchTranslateDocument((com.google.cloud.translate.v3.BatchTranslateDocumentRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_GLOSSARY: + serviceImpl.createGlossary((com.google.cloud.translate.v3.CreateGlossaryRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_GLOSSARIES: + serviceImpl.listGlossaries((com.google.cloud.translate.v3.ListGlossariesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_GLOSSARY: + serviceImpl.getGlossary((com.google.cloud.translate.v3.GetGlossaryRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_GLOSSARY: + serviceImpl.deleteGlossary((com.google.cloud.translate.v3.DeleteGlossaryRequest) 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(); + } + } + } + + private static abstract class TranslationServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + TranslationServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("TranslationService"); + } + } + + private static final class TranslationServiceFileDescriptorSupplier + extends TranslationServiceBaseDescriptorSupplier { + TranslationServiceFileDescriptorSupplier() {} + } + + private static final class TranslationServiceMethodDescriptorSupplier + extends TranslationServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + TranslationServiceMethodDescriptorSupplier(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 (TranslationServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new TranslationServiceFileDescriptorSupplier()) + .addMethod(getTranslateTextMethod()) + .addMethod(getDetectLanguageMethod()) + .addMethod(getGetSupportedLanguagesMethod()) + .addMethod(getTranslateDocumentMethod()) + .addMethod(getBatchTranslateTextMethod()) + .addMethod(getBatchTranslateDocumentMethod()) + .addMethod(getCreateGlossaryMethod()) + .addMethod(getListGlossariesMethod()) + .addMethod(getGetGlossaryMethod()) + .addMethod(getDeleteGlossaryMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/GetLocationRequest.java b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/location/GetLocationRequest.java similarity index 68% rename from proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/GetLocationRequest.java rename to owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/location/GetLocationRequest.java index 6b7c7e0a..0e0504b0 100644 --- a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/GetLocationRequest.java +++ b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/location/GetLocationRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 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/location/locations.proto package com.google.cloud.location; /** - * - * *
  * The request message for [Locations.GetLocation][google.cloud.location.Locations.GetLocation].
  * 
* * Protobuf type {@code google.cloud.location.GetLocationRequest} */ -public final class GetLocationRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetLocationRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.location.GetLocationRequest) GetLocationRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetLocationRequest.newBuilder() to construct. private GetLocationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetLocationRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetLocationRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetLocationRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,58 +53,52 @@ private GetLocationRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.location.LocationsProto - .internal_static_google_cloud_location_GetLocationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.location.LocationsProto.internal_static_google_cloud_location_GetLocationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.location.LocationsProto - .internal_static_google_cloud_location_GetLocationRequest_fieldAccessorTable + return com.google.cloud.location.LocationsProto.internal_static_google_cloud_location_GetLocationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.location.GetLocationRequest.class, - com.google.cloud.location.GetLocationRequest.Builder.class); + com.google.cloud.location.GetLocationRequest.class, com.google.cloud.location.GetLocationRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Resource name for the location.
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -130,29 +107,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; } } /** - * - * *
    * Resource name for the location.
    * 
* * 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 { @@ -161,7 +138,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -173,8 +149,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + 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_); } unknownFields.writeTo(output); @@ -186,7 +163,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } size += unknownFields.getSerializedSize(); @@ -197,15 +174,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.cloud.location.GetLocationRequest)) { return super.equals(obj); } - com.google.cloud.location.GetLocationRequest other = - (com.google.cloud.location.GetLocationRequest) obj; + com.google.cloud.location.GetLocationRequest other = (com.google.cloud.location.GetLocationRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -224,127 +201,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.location.GetLocationRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.location.GetLocationRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.location.GetLocationRequest 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.cloud.location.GetLocationRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.location.GetLocationRequest 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.cloud.location.GetLocationRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.location.GetLocationRequest 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.cloud.location.GetLocationRequest 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.cloud.location.GetLocationRequest 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.cloud.location.GetLocationRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.location.GetLocationRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.location.GetLocationRequest 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.cloud.location.GetLocationRequest 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.cloud.location.GetLocationRequest 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.cloud.location.GetLocationRequest 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 for [Locations.GetLocation][google.cloud.location.Locations.GetLocation].
    * 
* * Protobuf type {@code google.cloud.location.GetLocationRequest} */ - 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.location.GetLocationRequest) com.google.cloud.location.GetLocationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.location.LocationsProto - .internal_static_google_cloud_location_GetLocationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.location.LocationsProto.internal_static_google_cloud_location_GetLocationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.location.LocationsProto - .internal_static_google_cloud_location_GetLocationRequest_fieldAccessorTable + return com.google.cloud.location.LocationsProto.internal_static_google_cloud_location_GetLocationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.location.GetLocationRequest.class, - com.google.cloud.location.GetLocationRequest.Builder.class); + com.google.cloud.location.GetLocationRequest.class, com.google.cloud.location.GetLocationRequest.Builder.class); } // Construct using com.google.cloud.location.GetLocationRequest.newBuilder() @@ -352,15 +320,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -370,9 +339,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.location.LocationsProto - .internal_static_google_cloud_location_GetLocationRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.location.LocationsProto.internal_static_google_cloud_location_GetLocationRequest_descriptor; } @java.lang.Override @@ -391,8 +360,7 @@ public com.google.cloud.location.GetLocationRequest build() { @java.lang.Override public com.google.cloud.location.GetLocationRequest buildPartial() { - com.google.cloud.location.GetLocationRequest result = - new com.google.cloud.location.GetLocationRequest(this); + com.google.cloud.location.GetLocationRequest result = new com.google.cloud.location.GetLocationRequest(this); result.name_ = name_; onBuilt(); return result; @@ -402,39 +370,38 @@ public com.google.cloud.location.GetLocationRequest 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.cloud.location.GetLocationRequest) { - return mergeFrom((com.google.cloud.location.GetLocationRequest) other); + return mergeFrom((com.google.cloud.location.GetLocationRequest)other); } else { super.mergeFrom(other); return this; @@ -478,20 +445,18 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Resource name for the location.
      * 
* * 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; @@ -500,21 +465,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Resource name for the location.
      * 
* * 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 { @@ -522,68 +486,61 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Resource name for the location.
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Resource name for the location.
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Resource name for the location.
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; 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 +550,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.location.GetLocationRequest) } // @@protoc_insertion_point(class_scope:google.cloud.location.GetLocationRequest) private static final com.google.cloud.location.GetLocationRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.location.GetLocationRequest(); } @@ -607,16 +564,16 @@ public static com.google.cloud.location.GetLocationRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetLocationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetLocationRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetLocationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetLocationRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -631,4 +588,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.location.GetLocationRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/location/GetLocationRequestOrBuilder.java b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/location/GetLocationRequestOrBuilder.java new file mode 100644 index 00000000..c55d2b31 --- /dev/null +++ b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/location/GetLocationRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/location/locations.proto + +package com.google.cloud.location; + +public interface GetLocationRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.location.GetLocationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Resource name for the location.
+   * 
+ * + * string name = 1; + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Resource name for the location.
+   * 
+ * + * string name = 1; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/ListLocationsRequest.java b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/location/ListLocationsRequest.java similarity index 70% rename from proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/ListLocationsRequest.java rename to owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/location/ListLocationsRequest.java index e1b3af7f..a8fafc85 100644 --- a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/ListLocationsRequest.java +++ b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/location/ListLocationsRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 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/location/locations.proto package com.google.cloud.location; /** - * - * *
  * The request message for [Locations.ListLocations][google.cloud.location.Locations.ListLocations].
  * 
* * Protobuf type {@code google.cloud.location.ListLocationsRequest} */ -public final class ListLocationsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListLocationsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.location.ListLocationsRequest) ListLocationsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListLocationsRequest.newBuilder() to construct. private ListLocationsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListLocationsRequest() { name_ = ""; filter_ = ""; @@ -45,15 +27,16 @@ private ListLocationsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListLocationsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListLocationsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,77 +55,69 @@ private ListLocationsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - case 24: - { - pageSize_ = input.readInt32(); - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + filter_ = s; + break; + } + case 24: { - pageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageSize_ = input.readInt32(); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.location.LocationsProto - .internal_static_google_cloud_location_ListLocationsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.location.LocationsProto.internal_static_google_cloud_location_ListLocationsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.location.LocationsProto - .internal_static_google_cloud_location_ListLocationsRequest_fieldAccessorTable + return com.google.cloud.location.LocationsProto.internal_static_google_cloud_location_ListLocationsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.location.ListLocationsRequest.class, - com.google.cloud.location.ListLocationsRequest.Builder.class); + com.google.cloud.location.ListLocationsRequest.class, com.google.cloud.location.ListLocationsRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * The resource that owns the locations collection, if applicable.
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -151,29 +126,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 resource that owns the locations collection, if applicable.
    * 
* * 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 { @@ -184,14 +159,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int FILTER_FIELD_NUMBER = 2; private volatile java.lang.Object filter_; /** - * - * *
    * The standard list filter.
    * 
* * string filter = 2; - * * @return The filter. */ @java.lang.Override @@ -200,29 +172,29 @@ public java.lang.String getFilter() { 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(); filter_ = s; return s; } } /** - * - * *
    * The standard list filter.
    * 
* * string filter = 2; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; 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); filter_ = b; return b; } else { @@ -233,14 +205,11 @@ public com.google.protobuf.ByteString getFilterBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_; /** - * - * *
    * The standard list page size.
    * 
* * int32 page_size = 3; - * * @return The pageSize. */ @java.lang.Override @@ -251,14 +220,11 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 4; private volatile java.lang.Object pageToken_; /** - * - * *
    * The standard list page token.
    * 
* * string page_token = 4; - * * @return The pageToken. */ @java.lang.Override @@ -267,29 +233,29 @@ 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; } } /** - * - * *
    * The standard list page token.
    * 
* * string page_token = 4; - * * @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 { @@ -298,7 +264,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -310,17 +275,18 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + 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_); } - if (!getFilterBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, filter_); } if (pageSize_ != 0) { output.writeInt32(3, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pageToken_); } unknownFields.writeTo(output); @@ -332,16 +298,17 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (!getFilterBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); } size += unknownFields.getSerializedSize(); @@ -352,18 +319,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.cloud.location.ListLocationsRequest)) { return super.equals(obj); } - com.google.cloud.location.ListLocationsRequest other = - (com.google.cloud.location.ListLocationsRequest) obj; + com.google.cloud.location.ListLocationsRequest other = (com.google.cloud.location.ListLocationsRequest) obj; - if (!getName().equals(other.getName())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -388,127 +358,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.location.ListLocationsRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.location.ListLocationsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.location.ListLocationsRequest 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.cloud.location.ListLocationsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.location.ListLocationsRequest 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.cloud.location.ListLocationsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.location.ListLocationsRequest 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.cloud.location.ListLocationsRequest 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.cloud.location.ListLocationsRequest 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.cloud.location.ListLocationsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.location.ListLocationsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.location.ListLocationsRequest 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.cloud.location.ListLocationsRequest 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.cloud.location.ListLocationsRequest 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.cloud.location.ListLocationsRequest 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 for [Locations.ListLocations][google.cloud.location.Locations.ListLocations].
    * 
* * Protobuf type {@code google.cloud.location.ListLocationsRequest} */ - 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.location.ListLocationsRequest) com.google.cloud.location.ListLocationsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.location.LocationsProto - .internal_static_google_cloud_location_ListLocationsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.location.LocationsProto.internal_static_google_cloud_location_ListLocationsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.location.LocationsProto - .internal_static_google_cloud_location_ListLocationsRequest_fieldAccessorTable + return com.google.cloud.location.LocationsProto.internal_static_google_cloud_location_ListLocationsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.location.ListLocationsRequest.class, - com.google.cloud.location.ListLocationsRequest.Builder.class); + com.google.cloud.location.ListLocationsRequest.class, com.google.cloud.location.ListLocationsRequest.Builder.class); } // Construct using com.google.cloud.location.ListLocationsRequest.newBuilder() @@ -516,15 +477,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -540,9 +502,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.location.LocationsProto - .internal_static_google_cloud_location_ListLocationsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.location.LocationsProto.internal_static_google_cloud_location_ListLocationsRequest_descriptor; } @java.lang.Override @@ -561,8 +523,7 @@ public com.google.cloud.location.ListLocationsRequest build() { @java.lang.Override public com.google.cloud.location.ListLocationsRequest buildPartial() { - com.google.cloud.location.ListLocationsRequest result = - new com.google.cloud.location.ListLocationsRequest(this); + com.google.cloud.location.ListLocationsRequest result = new com.google.cloud.location.ListLocationsRequest(this); result.name_ = name_; result.filter_ = filter_; result.pageSize_ = pageSize_; @@ -575,39 +536,38 @@ public com.google.cloud.location.ListLocationsRequest 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.cloud.location.ListLocationsRequest) { - return mergeFrom((com.google.cloud.location.ListLocationsRequest) other); + return mergeFrom((com.google.cloud.location.ListLocationsRequest)other); } else { super.mergeFrom(other); return this; @@ -662,20 +622,18 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * The resource that owns the locations collection, if applicable.
      * 
* * 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; @@ -684,21 +642,20 @@ public java.lang.String getName() { } } /** - * - * *
      * The resource that owns the locations collection, if applicable.
      * 
* * 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 { @@ -706,61 +663,54 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The resource that owns the locations collection, if applicable.
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * The resource that owns the locations collection, if applicable.
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * The resource that owns the locations collection, if applicable.
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -768,20 +718,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * The standard list filter.
      * 
* * string filter = 2; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; 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(); filter_ = s; return s; @@ -790,21 +738,20 @@ public java.lang.String getFilter() { } } /** - * - * *
      * The standard list filter.
      * 
* * string filter = 2; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; 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); filter_ = b; return b; } else { @@ -812,76 +759,66 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * The standard list filter.
      * 
* * string filter = 2; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { + public Builder setFilter( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** - * - * *
      * The standard list filter.
      * 
* * string filter = 2; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
      * The standard list filter.
      * 
* * string filter = 2; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The standard list page size.
      * 
* * int32 page_size = 3; - * * @return The pageSize. */ @java.lang.Override @@ -889,36 +826,30 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The standard list page size.
      * 
* * int32 page_size = 3; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * The standard list page size.
      * 
* * int32 page_size = 3; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -926,20 +857,18 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * The standard list page token.
      * 
* * string page_token = 4; - * * @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; @@ -948,21 +877,20 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * The standard list page token.
      * 
* * string page_token = 4; - * * @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 { @@ -970,68 +898,61 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * The standard list page token.
      * 
* * string page_token = 4; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * The standard list page token.
      * 
* * string page_token = 4; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * The standard list page token.
      * 
* * string page_token = 4; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; 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); } @@ -1041,12 +962,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.location.ListLocationsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.location.ListLocationsRequest) private static final com.google.cloud.location.ListLocationsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.location.ListLocationsRequest(); } @@ -1055,16 +976,16 @@ public static com.google.cloud.location.ListLocationsRequest getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListLocationsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListLocationsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListLocationsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListLocationsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1079,4 +1000,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.location.ListLocationsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/location/ListLocationsRequestOrBuilder.java b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/location/ListLocationsRequestOrBuilder.java similarity index 61% rename from proto-google-cloud-translate-v3/src/main/java/com/google/cloud/location/ListLocationsRequestOrBuilder.java rename to owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/location/ListLocationsRequestOrBuilder.java index 3a3f39a7..c7aae890 100644 --- a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/location/ListLocationsRequestOrBuilder.java +++ b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/location/ListLocationsRequestOrBuilder.java @@ -1,113 +1,79 @@ -/* - * Copyright 2020 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/location/locations.proto package com.google.cloud.location; -public interface ListLocationsRequestOrBuilder - extends +public interface ListLocationsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.location.ListLocationsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The resource that owns the locations collection, if applicable.
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The resource that owns the locations collection, if applicable.
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * The standard list filter.
    * 
* * string filter = 2; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * The standard list filter.
    * 
* * string filter = 2; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * The standard list page size.
    * 
* * int32 page_size = 3; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * The standard list page token.
    * 
* * string page_token = 4; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * The standard list page token.
    * 
* * string page_token = 4; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/ListLocationsResponse.java b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/location/ListLocationsResponse.java similarity index 74% rename from proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/ListLocationsResponse.java rename to owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/location/ListLocationsResponse.java index 8e7553c0..368d21f4 100644 --- a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/ListLocationsResponse.java +++ b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/location/ListLocationsResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 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/location/locations.proto package com.google.cloud.location; /** - * - * *
  * The response message for [Locations.ListLocations][google.cloud.location.Locations.ListLocations].
  * 
* * Protobuf type {@code google.cloud.location.ListLocationsResponse} */ -public final class ListLocationsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListLocationsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.location.ListLocationsResponse) ListLocationsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListLocationsResponse.newBuilder() to construct. private ListLocationsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListLocationsResponse() { locations_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,15 +26,16 @@ private ListLocationsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListLocationsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListLocationsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,37 +55,35 @@ private ListLocationsResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - locations_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - locations_.add( - input.readMessage( - com.google.cloud.location.Location.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + locations_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + locations_.add( + input.readMessage(com.google.cloud.location.Location.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { locations_ = java.util.Collections.unmodifiableList(locations_); @@ -111,27 +92,22 @@ private ListLocationsResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.location.LocationsProto - .internal_static_google_cloud_location_ListLocationsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.location.LocationsProto.internal_static_google_cloud_location_ListLocationsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.location.LocationsProto - .internal_static_google_cloud_location_ListLocationsResponse_fieldAccessorTable + return com.google.cloud.location.LocationsProto.internal_static_google_cloud_location_ListLocationsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.location.ListLocationsResponse.class, - com.google.cloud.location.ListLocationsResponse.Builder.class); + com.google.cloud.location.ListLocationsResponse.class, com.google.cloud.location.ListLocationsResponse.Builder.class); } public static final int LOCATIONS_FIELD_NUMBER = 1; private java.util.List locations_; /** - * - * *
    * A list of locations that matches the specified filter in the request.
    * 
@@ -143,8 +119,6 @@ public java.util.List getLocationsList() { return locations_; } /** - * - * *
    * A list of locations that matches the specified filter in the request.
    * 
@@ -152,13 +126,11 @@ public java.util.List getLocationsList() { * repeated .google.cloud.location.Location locations = 1; */ @java.lang.Override - public java.util.List + public java.util.List getLocationsOrBuilderList() { return locations_; } /** - * - * *
    * A list of locations that matches the specified filter in the request.
    * 
@@ -170,8 +142,6 @@ public int getLocationsCount() { return locations_.size(); } /** - * - * *
    * A list of locations that matches the specified filter in the request.
    * 
@@ -183,8 +153,6 @@ public com.google.cloud.location.Location getLocations(int index) { return locations_.get(index); } /** - * - * *
    * A list of locations that matches the specified filter in the request.
    * 
@@ -192,21 +160,19 @@ public com.google.cloud.location.Location getLocations(int index) { * repeated .google.cloud.location.Location locations = 1; */ @java.lang.Override - public com.google.cloud.location.LocationOrBuilder getLocationsOrBuilder(int index) { + public com.google.cloud.location.LocationOrBuilder getLocationsOrBuilder( + int index) { return locations_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * The standard List next-page token.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -215,29 +181,29 @@ 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; } } /** - * - * *
    * The standard List next-page token.
    * 
* * 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 { @@ -246,7 +212,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -258,11 +223,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 { for (int i = 0; i < locations_.size(); i++) { output.writeMessage(1, locations_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } unknownFields.writeTo(output); @@ -275,9 +241,10 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < locations_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, locations_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, locations_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } size += unknownFields.getSerializedSize(); @@ -288,16 +255,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.cloud.location.ListLocationsResponse)) { return super.equals(obj); } - com.google.cloud.location.ListLocationsResponse other = - (com.google.cloud.location.ListLocationsResponse) obj; + com.google.cloud.location.ListLocationsResponse other = (com.google.cloud.location.ListLocationsResponse) obj; - if (!getLocationsList().equals(other.getLocationsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getLocationsList() + .equals(other.getLocationsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -320,127 +288,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.location.ListLocationsResponse parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.location.ListLocationsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.location.ListLocationsResponse 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.cloud.location.ListLocationsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.location.ListLocationsResponse 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.cloud.location.ListLocationsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.location.ListLocationsResponse 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.cloud.location.ListLocationsResponse 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.cloud.location.ListLocationsResponse 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.cloud.location.ListLocationsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.location.ListLocationsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.location.ListLocationsResponse 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.cloud.location.ListLocationsResponse 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.cloud.location.ListLocationsResponse 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.cloud.location.ListLocationsResponse 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 message for [Locations.ListLocations][google.cloud.location.Locations.ListLocations].
    * 
* * Protobuf type {@code google.cloud.location.ListLocationsResponse} */ - 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.location.ListLocationsResponse) com.google.cloud.location.ListLocationsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.location.LocationsProto - .internal_static_google_cloud_location_ListLocationsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.location.LocationsProto.internal_static_google_cloud_location_ListLocationsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.location.LocationsProto - .internal_static_google_cloud_location_ListLocationsResponse_fieldAccessorTable + return com.google.cloud.location.LocationsProto.internal_static_google_cloud_location_ListLocationsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.location.ListLocationsResponse.class, - com.google.cloud.location.ListLocationsResponse.Builder.class); + com.google.cloud.location.ListLocationsResponse.class, com.google.cloud.location.ListLocationsResponse.Builder.class); } // Construct using com.google.cloud.location.ListLocationsResponse.newBuilder() @@ -448,17 +407,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getLocationsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -474,9 +433,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.location.LocationsProto - .internal_static_google_cloud_location_ListLocationsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.location.LocationsProto.internal_static_google_cloud_location_ListLocationsResponse_descriptor; } @java.lang.Override @@ -495,8 +454,7 @@ public com.google.cloud.location.ListLocationsResponse build() { @java.lang.Override public com.google.cloud.location.ListLocationsResponse buildPartial() { - com.google.cloud.location.ListLocationsResponse result = - new com.google.cloud.location.ListLocationsResponse(this); + com.google.cloud.location.ListLocationsResponse result = new com.google.cloud.location.ListLocationsResponse(this); int from_bitField0_ = bitField0_; if (locationsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -516,39 +474,38 @@ public com.google.cloud.location.ListLocationsResponse 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.cloud.location.ListLocationsResponse) { - return mergeFrom((com.google.cloud.location.ListLocationsResponse) other); + return mergeFrom((com.google.cloud.location.ListLocationsResponse)other); } else { super.mergeFrom(other); return this; @@ -556,8 +513,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.location.ListLocationsResponse other) { - if (other == com.google.cloud.location.ListLocationsResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.location.ListLocationsResponse.getDefaultInstance()) return this; if (locationsBuilder_ == null) { if (!other.locations_.isEmpty()) { if (locations_.isEmpty()) { @@ -576,10 +532,9 @@ public Builder mergeFrom(com.google.cloud.location.ListLocationsResponse other) locationsBuilder_ = null; locations_ = other.locations_; bitField0_ = (bitField0_ & ~0x00000001); - locationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getLocationsFieldBuilder() - : null; + locationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getLocationsFieldBuilder() : null; } else { locationsBuilder_.addAllMessages(other.locations_); } @@ -617,28 +572,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List locations_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureLocationsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { locations_ = new java.util.ArrayList(locations_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.location.Location, - com.google.cloud.location.Location.Builder, - com.google.cloud.location.LocationOrBuilder> - locationsBuilder_; + com.google.cloud.location.Location, com.google.cloud.location.Location.Builder, com.google.cloud.location.LocationOrBuilder> locationsBuilder_; /** - * - * *
      * A list of locations that matches the specified filter in the request.
      * 
@@ -653,8 +601,6 @@ public java.util.List getLocationsList() { } } /** - * - * *
      * A list of locations that matches the specified filter in the request.
      * 
@@ -669,8 +615,6 @@ public int getLocationsCount() { } } /** - * - * *
      * A list of locations that matches the specified filter in the request.
      * 
@@ -685,15 +629,14 @@ public com.google.cloud.location.Location getLocations(int index) { } } /** - * - * *
      * A list of locations that matches the specified filter in the request.
      * 
* * repeated .google.cloud.location.Location locations = 1; */ - public Builder setLocations(int index, com.google.cloud.location.Location value) { + public Builder setLocations( + int index, com.google.cloud.location.Location value) { if (locationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -707,8 +650,6 @@ public Builder setLocations(int index, com.google.cloud.location.Location value) return this; } /** - * - * *
      * A list of locations that matches the specified filter in the request.
      * 
@@ -727,8 +668,6 @@ public Builder setLocations( return this; } /** - * - * *
      * A list of locations that matches the specified filter in the request.
      * 
@@ -749,15 +688,14 @@ public Builder addLocations(com.google.cloud.location.Location value) { return this; } /** - * - * *
      * A list of locations that matches the specified filter in the request.
      * 
* * repeated .google.cloud.location.Location locations = 1; */ - public Builder addLocations(int index, com.google.cloud.location.Location value) { + public Builder addLocations( + int index, com.google.cloud.location.Location value) { if (locationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -771,15 +709,14 @@ public Builder addLocations(int index, com.google.cloud.location.Location value) return this; } /** - * - * *
      * A list of locations that matches the specified filter in the request.
      * 
* * repeated .google.cloud.location.Location locations = 1; */ - public Builder addLocations(com.google.cloud.location.Location.Builder builderForValue) { + public Builder addLocations( + com.google.cloud.location.Location.Builder builderForValue) { if (locationsBuilder_ == null) { ensureLocationsIsMutable(); locations_.add(builderForValue.build()); @@ -790,8 +727,6 @@ public Builder addLocations(com.google.cloud.location.Location.Builder builderFo return this; } /** - * - * *
      * A list of locations that matches the specified filter in the request.
      * 
@@ -810,8 +745,6 @@ public Builder addLocations( return this; } /** - * - * *
      * A list of locations that matches the specified filter in the request.
      * 
@@ -822,7 +755,8 @@ public Builder addAllLocations( java.lang.Iterable values) { if (locationsBuilder_ == null) { ensureLocationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, locations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, locations_); onChanged(); } else { locationsBuilder_.addAllMessages(values); @@ -830,8 +764,6 @@ public Builder addAllLocations( return this; } /** - * - * *
      * A list of locations that matches the specified filter in the request.
      * 
@@ -849,8 +781,6 @@ public Builder clearLocations() { return this; } /** - * - * *
      * A list of locations that matches the specified filter in the request.
      * 
@@ -868,44 +798,39 @@ public Builder removeLocations(int index) { return this; } /** - * - * *
      * A list of locations that matches the specified filter in the request.
      * 
* * repeated .google.cloud.location.Location locations = 1; */ - public com.google.cloud.location.Location.Builder getLocationsBuilder(int index) { + public com.google.cloud.location.Location.Builder getLocationsBuilder( + int index) { return getLocationsFieldBuilder().getBuilder(index); } /** - * - * *
      * A list of locations that matches the specified filter in the request.
      * 
* * repeated .google.cloud.location.Location locations = 1; */ - public com.google.cloud.location.LocationOrBuilder getLocationsOrBuilder(int index) { + public com.google.cloud.location.LocationOrBuilder getLocationsOrBuilder( + int index) { if (locationsBuilder_ == null) { - return locations_.get(index); - } else { + return locations_.get(index); } else { return locationsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * A list of locations that matches the specified filter in the request.
      * 
* * repeated .google.cloud.location.Location locations = 1; */ - public java.util.List - getLocationsOrBuilderList() { + public java.util.List + getLocationsOrBuilderList() { if (locationsBuilder_ != null) { return locationsBuilder_.getMessageOrBuilderList(); } else { @@ -913,8 +838,6 @@ public com.google.cloud.location.LocationOrBuilder getLocationsOrBuilder(int ind } } /** - * - * *
      * A list of locations that matches the specified filter in the request.
      * 
@@ -922,47 +845,42 @@ public com.google.cloud.location.LocationOrBuilder getLocationsOrBuilder(int ind * repeated .google.cloud.location.Location locations = 1; */ public com.google.cloud.location.Location.Builder addLocationsBuilder() { - return getLocationsFieldBuilder() - .addBuilder(com.google.cloud.location.Location.getDefaultInstance()); + return getLocationsFieldBuilder().addBuilder( + com.google.cloud.location.Location.getDefaultInstance()); } /** - * - * *
      * A list of locations that matches the specified filter in the request.
      * 
* * repeated .google.cloud.location.Location locations = 1; */ - public com.google.cloud.location.Location.Builder addLocationsBuilder(int index) { - return getLocationsFieldBuilder() - .addBuilder(index, com.google.cloud.location.Location.getDefaultInstance()); + public com.google.cloud.location.Location.Builder addLocationsBuilder( + int index) { + return getLocationsFieldBuilder().addBuilder( + index, com.google.cloud.location.Location.getDefaultInstance()); } /** - * - * *
      * A list of locations that matches the specified filter in the request.
      * 
* * repeated .google.cloud.location.Location locations = 1; */ - public java.util.List getLocationsBuilderList() { + public java.util.List + getLocationsBuilderList() { return getLocationsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.location.Location, - com.google.cloud.location.Location.Builder, - com.google.cloud.location.LocationOrBuilder> + com.google.cloud.location.Location, com.google.cloud.location.Location.Builder, com.google.cloud.location.LocationOrBuilder> getLocationsFieldBuilder() { if (locationsBuilder_ == null) { - locationsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.location.Location, - com.google.cloud.location.Location.Builder, - com.google.cloud.location.LocationOrBuilder>( - locations_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + locationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.location.Location, com.google.cloud.location.Location.Builder, com.google.cloud.location.LocationOrBuilder>( + locations_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); locations_ = null; } return locationsBuilder_; @@ -970,20 +888,18 @@ public java.util.List getLocationsBu private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * The standard List next-page token.
      * 
* * 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; @@ -992,21 +908,20 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * The standard List next-page token.
      * 
* * 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 { @@ -1014,68 +929,61 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * The standard List next-page token.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * The standard List next-page token.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * The standard List next-page token.
      * 
* * 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) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; 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); } @@ -1085,12 +993,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.location.ListLocationsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.location.ListLocationsResponse) private static final com.google.cloud.location.ListLocationsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.location.ListLocationsResponse(); } @@ -1099,16 +1007,16 @@ public static com.google.cloud.location.ListLocationsResponse getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListLocationsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListLocationsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListLocationsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListLocationsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1123,4 +1031,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.location.ListLocationsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/location/ListLocationsResponseOrBuilder.java b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/location/ListLocationsResponseOrBuilder.java similarity index 66% rename from proto-google-cloud-translate-v3/src/main/java/com/google/cloud/location/ListLocationsResponseOrBuilder.java rename to owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/location/ListLocationsResponseOrBuilder.java index 704771cc..f813b85a 100644 --- a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/location/ListLocationsResponseOrBuilder.java +++ b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/location/ListLocationsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 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/location/locations.proto package com.google.cloud.location; -public interface ListLocationsResponseOrBuilder - extends +public interface ListLocationsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.location.ListLocationsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * A list of locations that matches the specified filter in the request.
    * 
* * repeated .google.cloud.location.Location locations = 1; */ - java.util.List getLocationsList(); + java.util.List + getLocationsList(); /** - * - * *
    * A list of locations that matches the specified filter in the request.
    * 
@@ -44,8 +25,6 @@ public interface ListLocationsResponseOrBuilder */ com.google.cloud.location.Location getLocations(int index); /** - * - * *
    * A list of locations that matches the specified filter in the request.
    * 
@@ -54,48 +33,41 @@ public interface ListLocationsResponseOrBuilder */ int getLocationsCount(); /** - * - * *
    * A list of locations that matches the specified filter in the request.
    * 
* * repeated .google.cloud.location.Location locations = 1; */ - java.util.List getLocationsOrBuilderList(); + java.util.List + getLocationsOrBuilderList(); /** - * - * *
    * A list of locations that matches the specified filter in the request.
    * 
* * repeated .google.cloud.location.Location locations = 1; */ - com.google.cloud.location.LocationOrBuilder getLocationsOrBuilder(int index); + com.google.cloud.location.LocationOrBuilder getLocationsOrBuilder( + int index); /** - * - * *
    * The standard List next-page token.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * The standard List next-page token.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/Location.java b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/location/Location.java similarity index 67% rename from proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/Location.java rename to owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/location/Location.java index 7b7bfc86..4af817e7 100644 --- a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/Location.java +++ b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/location/Location.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 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/location/locations.proto package com.google.cloud.location; /** - * - * *
  * A resource that represents Google Cloud Platform location.
  * 
* * Protobuf type {@code google.cloud.location.Location} */ -public final class Location extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Location extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.location.Location) LocationOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Location.newBuilder() to construct. private Location(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Location() { name_ = ""; locationId_ = ""; @@ -45,15 +27,16 @@ private Location() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Location(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Location( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,111 +56,103 @@ private Location( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; + name_ = s; + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - labels_ = - com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); - break; + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put( + labels__.getKey(), labels__.getValue()); + break; + } + case 26: { + com.google.protobuf.Any.Builder subBuilder = null; + if (metadata_ != null) { + subBuilder = metadata_.toBuilder(); } - case 26: - { - com.google.protobuf.Any.Builder subBuilder = null; - if (metadata_ != null) { - subBuilder = metadata_.toBuilder(); - } - metadata_ = input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(metadata_); - metadata_ = subBuilder.buildPartial(); - } - - break; + metadata_ = input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadata_); + metadata_ = subBuilder.buildPartial(); } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - locationId_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); - displayName_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + locationId_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + displayName_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.location.LocationsProto - .internal_static_google_cloud_location_Location_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.location.LocationsProto.internal_static_google_cloud_location_Location_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 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.cloud.location.LocationsProto - .internal_static_google_cloud_location_Location_fieldAccessorTable + return com.google.cloud.location.LocationsProto.internal_static_google_cloud_location_Location_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.location.Location.class, - com.google.cloud.location.Location.Builder.class); + com.google.cloud.location.Location.class, com.google.cloud.location.Location.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Resource name for the location, which may vary between implementations.
    * For example: `"projects/example-project/locations/us-east1"`
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -186,30 +161,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; } } /** - * - * *
    * Resource name for the location, which may vary between implementations.
    * For example: `"projects/example-project/locations/us-east1"`
    * 
* * 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 { @@ -220,14 +195,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int LOCATION_ID_FIELD_NUMBER = 4; private volatile java.lang.Object locationId_; /** - * - * *
    * The canonical id for this location. For example: `"us-east1"`.
    * 
* * string location_id = 4; - * * @return The locationId. */ @java.lang.Override @@ -236,29 +208,29 @@ public java.lang.String getLocationId() { 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(); locationId_ = s; return s; } } /** - * - * *
    * The canonical id for this location. For example: `"us-east1"`.
    * 
* * string location_id = 4; - * * @return The bytes for locationId. */ @java.lang.Override - public com.google.protobuf.ByteString getLocationIdBytes() { + public com.google.protobuf.ByteString + getLocationIdBytes() { java.lang.Object ref = locationId_; 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); locationId_ = b; return b; } else { @@ -269,15 +241,12 @@ public com.google.protobuf.ByteString getLocationIdBytes() { public static final int DISPLAY_NAME_FIELD_NUMBER = 5; private volatile java.lang.Object displayName_; /** - * - * *
    * The friendly name for this location, typically a nearby city name.
    * For example, "Tokyo".
    * 
* * string display_name = 5; - * * @return The displayName. */ @java.lang.Override @@ -286,30 +255,30 @@ 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; } } /** - * - * *
    * The friendly name for this location, typically a nearby city name.
    * For example, "Tokyo".
    * 
* * string display_name = 5; - * * @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 { @@ -318,23 +287,24 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } public static final int LABELS_FIELD_NUMBER = 2; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.location.LocationsProto - .internal_static_google_cloud_location_Location_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.cloud.location.LocationsProto.internal_static_google_cloud_location_Location_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - - 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_; } @@ -343,8 +313,6 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Cross-service attributes for the location. For example
    *     {"cloud.googleapis.com/region": "us-east1"}
@@ -352,22 +320,22 @@ public int getLabelsCount() {
    *
    * map<string, string> labels = 2;
    */
+
   @java.lang.Override
-  public boolean containsLabels(java.lang.String key) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
+  public boolean containsLabels(
+      java.lang.String key) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
     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();
   }
   /**
-   *
-   *
    * 
    * Cross-service attributes for the location. For example
    *     {"cloud.googleapis.com/region": "us-east1"}
@@ -376,12 +344,11 @@ public java.util.Map getLabels() {
    * map<string, string> labels = 2;
    */
   @java.lang.Override
+
   public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
-   *
-   *
    * 
    * Cross-service attributes for the location. For example
    *     {"cloud.googleapis.com/region": "us-east1"}
@@ -390,16 +357,16 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 2;
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
-    java.util.Map map = internalGetLabels().getMap();
+
+  public java.lang.String getLabelsOrDefault(
+      java.lang.String key,
+      java.lang.String defaultValue) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * Cross-service attributes for the location. For example
    *     {"cloud.googleapis.com/region": "us-east1"}
@@ -408,11 +375,12 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin
    * map<string, string> labels = 2;
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
-    java.util.Map map = internalGetLabels().getMap();
+
+  public java.lang.String getLabelsOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -422,15 +390,12 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
   public static final int METADATA_FIELD_NUMBER = 3;
   private com.google.protobuf.Any metadata_;
   /**
-   *
-   *
    * 
    * Service-specific metadata. For example the available capacity at the given
    * location.
    * 
* * .google.protobuf.Any metadata = 3; - * * @return Whether the metadata field is set. */ @java.lang.Override @@ -438,15 +403,12 @@ public boolean hasMetadata() { return metadata_ != null; } /** - * - * *
    * Service-specific metadata. For example the available capacity at the given
    * location.
    * 
* * .google.protobuf.Any metadata = 3; - * * @return The metadata. */ @java.lang.Override @@ -454,8 +416,6 @@ public com.google.protobuf.Any getMetadata() { return metadata_ == null ? com.google.protobuf.Any.getDefaultInstance() : metadata_; } /** - * - * *
    * Service-specific metadata. For example the available capacity at the given
    * location.
@@ -469,7 +429,6 @@ public com.google.protobuf.AnyOrBuilder getMetadataOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -481,19 +440,24 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
-    if (!getNameBytes().isEmpty()) {
+  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_);
     }
-    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
-        output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 2);
+    com.google.protobuf.GeneratedMessageV3
+      .serializeStringMapTo(
+        output,
+        internalGetLabels(),
+        LabelsDefaultEntryHolder.defaultEntry,
+        2);
     if (metadata_ != null) {
       output.writeMessage(3, getMetadata());
     }
-    if (!getLocationIdBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(locationId_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 4, locationId_);
     }
-    if (!getDisplayNameBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 5, displayName_);
     }
     unknownFields.writeTo(output);
@@ -505,26 +469,27 @@ public int getSerializedSize() {
     if (size != -1) return size;
 
     size = 0;
-    if (!getNameBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
     }
-    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(2, labels__);
+    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(2, labels__);
     }
     if (metadata_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getMetadata());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(3, getMetadata());
     }
-    if (!getLocationIdBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(locationId_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, locationId_);
     }
-    if (!getDisplayNameBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, displayName_);
     }
     size += unknownFields.getSerializedSize();
@@ -535,20 +500,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.cloud.location.Location)) {
       return super.equals(obj);
     }
     com.google.cloud.location.Location other = (com.google.cloud.location.Location) obj;
 
-    if (!getName().equals(other.getName())) return false;
-    if (!getLocationId().equals(other.getLocationId())) return false;
-    if (!getDisplayName().equals(other.getDisplayName())) return false;
-    if (!internalGetLabels().equals(other.internalGetLabels())) return false;
+    if (!getName()
+        .equals(other.getName())) return false;
+    if (!getLocationId()
+        .equals(other.getLocationId())) return false;
+    if (!getDisplayName()
+        .equals(other.getDisplayName())) return false;
+    if (!internalGetLabels().equals(
+        other.internalGetLabels())) return false;
     if (hasMetadata() != other.hasMetadata()) return false;
     if (hasMetadata()) {
-      if (!getMetadata().equals(other.getMetadata())) return false;
+      if (!getMetadata()
+          .equals(other.getMetadata())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -580,146 +550,140 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.location.Location parseFrom(java.nio.ByteBuffer data)
+  public static com.google.cloud.location.Location parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.location.Location 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.cloud.location.Location parseFrom(com.google.protobuf.ByteString data)
+  public static com.google.cloud.location.Location parseFrom(
+      com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.location.Location 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.cloud.location.Location parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.location.Location 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.cloud.location.Location 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.cloud.location.Location 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.cloud.location.Location 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.cloud.location.Location 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.cloud.location.Location 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.cloud.location.Location 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.cloud.location.Location 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 resource that represents Google Cloud Platform location.
    * 
* * Protobuf type {@code google.cloud.location.Location} */ - 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.location.Location) com.google.cloud.location.LocationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.location.LocationsProto - .internal_static_google_cloud_location_Location_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.location.LocationsProto.internal_static_google_cloud_location_Location_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 2: 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 2: 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.cloud.location.LocationsProto - .internal_static_google_cloud_location_Location_fieldAccessorTable + return com.google.cloud.location.LocationsProto.internal_static_google_cloud_location_Location_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.location.Location.class, - com.google.cloud.location.Location.Builder.class); + com.google.cloud.location.Location.class, com.google.cloud.location.Location.Builder.class); } // Construct using com.google.cloud.location.Location.newBuilder() @@ -727,15 +691,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -756,9 +721,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.location.LocationsProto - .internal_static_google_cloud_location_Location_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.location.LocationsProto.internal_static_google_cloud_location_Location_descriptor; } @java.lang.Override @@ -797,39 +762,38 @@ public com.google.cloud.location.Location 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.cloud.location.Location) { - return mergeFrom((com.google.cloud.location.Location) other); + return mergeFrom((com.google.cloud.location.Location)other); } else { super.mergeFrom(other); return this; @@ -850,7 +814,8 @@ public Builder mergeFrom(com.google.cloud.location.Location other) { displayName_ = other.displayName_; onChanged(); } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); if (other.hasMetadata()) { mergeMetadata(other.getMetadata()); } @@ -882,26 +847,23 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Resource name for the location, which may vary between implementations.
      * For example: `"projects/example-project/locations/us-east1"`
      * 
* * 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; @@ -910,22 +872,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Resource name for the location, which may vary between implementations.
      * For example: `"projects/example-project/locations/us-east1"`
      * 
* * 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 { @@ -933,64 +894,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Resource name for the location, which may vary between implementations.
      * For example: `"projects/example-project/locations/us-east1"`
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Resource name for the location, which may vary between implementations.
      * For example: `"projects/example-project/locations/us-east1"`
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Resource name for the location, which may vary between implementations.
      * For example: `"projects/example-project/locations/us-east1"`
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -998,20 +952,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object locationId_ = ""; /** - * - * *
      * The canonical id for this location. For example: `"us-east1"`.
      * 
* * string location_id = 4; - * * @return The locationId. */ public java.lang.String getLocationId() { java.lang.Object ref = locationId_; 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(); locationId_ = s; return s; @@ -1020,21 +972,20 @@ public java.lang.String getLocationId() { } } /** - * - * *
      * The canonical id for this location. For example: `"us-east1"`.
      * 
* * string location_id = 4; - * * @return The bytes for locationId. */ - public com.google.protobuf.ByteString getLocationIdBytes() { + public com.google.protobuf.ByteString + getLocationIdBytes() { java.lang.Object ref = locationId_; 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); locationId_ = b; return b; } else { @@ -1042,61 +993,54 @@ public com.google.protobuf.ByteString getLocationIdBytes() { } } /** - * - * *
      * The canonical id for this location. For example: `"us-east1"`.
      * 
* * string location_id = 4; - * * @param value The locationId to set. * @return This builder for chaining. */ - public Builder setLocationId(java.lang.String value) { + public Builder setLocationId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + locationId_ = value; onChanged(); return this; } /** - * - * *
      * The canonical id for this location. For example: `"us-east1"`.
      * 
* * string location_id = 4; - * * @return This builder for chaining. */ public Builder clearLocationId() { - + locationId_ = getDefaultInstance().getLocationId(); onChanged(); return this; } /** - * - * *
      * The canonical id for this location. For example: `"us-east1"`.
      * 
* * string location_id = 4; - * * @param value The bytes for locationId to set. * @return This builder for chaining. */ - public Builder setLocationIdBytes(com.google.protobuf.ByteString value) { + public Builder setLocationIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + locationId_ = value; onChanged(); return this; @@ -1104,21 +1048,19 @@ public Builder setLocationIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object displayName_ = ""; /** - * - * *
      * The friendly name for this location, typically a nearby city name.
      * For example, "Tokyo".
      * 
* * string display_name = 5; - * * @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; @@ -1127,22 +1069,21 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * The friendly name for this location, typically a nearby city name.
      * For example, "Tokyo".
      * 
* * string display_name = 5; - * * @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 { @@ -1150,84 +1091,78 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * The friendly name for this location, typically a nearby city name.
      * For example, "Tokyo".
      * 
* * string display_name = 5; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { + public Builder setDisplayName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** - * - * *
      * The friendly name for this location, typically a nearby city name.
      * For example, "Tokyo".
      * 
* * string display_name = 5; - * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** - * - * *
      * The friendly name for this location, typically a nearby city name.
      * For example, "Tokyo".
      * 
* * string display_name = 5; - * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; } - 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() { - onChanged(); - ; + internalGetMutableLabels() { + onChanged();; 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(); @@ -1239,8 +1174,6 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Cross-service attributes for the location. For example
      *     {"cloud.googleapis.com/region": "us-east1"}
@@ -1248,22 +1181,22 @@ public int getLabelsCount() {
      *
      * map<string, string> labels = 2;
      */
+
     @java.lang.Override
-    public boolean containsLabels(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
+    public boolean containsLabels(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
       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();
     }
     /**
-     *
-     *
      * 
      * Cross-service attributes for the location. For example
      *     {"cloud.googleapis.com/region": "us-east1"}
@@ -1272,12 +1205,11 @@ public java.util.Map getLabels() {
      * map<string, string> labels = 2;
      */
     @java.lang.Override
+
     public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
-     *
-     *
      * 
      * Cross-service attributes for the location. For example
      *     {"cloud.googleapis.com/region": "us-east1"}
@@ -1286,17 +1218,16 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 2;
      */
     @java.lang.Override
+
     public java.lang.String getLabelsOrDefault(
-        java.lang.String key, java.lang.String defaultValue) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      java.util.Map map = internalGetLabels().getMap();
+        java.lang.String key,
+        java.lang.String defaultValue) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * Cross-service attributes for the location. For example
      *     {"cloud.googleapis.com/region": "us-east1"}
@@ -1305,11 +1236,12 @@ public java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 2;
      */
     @java.lang.Override
-    public java.lang.String getLabelsOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      java.util.Map map = internalGetLabels().getMap();
+
+    public java.lang.String getLabelsOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -1317,12 +1249,11 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
     }
 
     public Builder clearLabels() {
-      internalGetMutableLabels().getMutableMap().clear();
+      internalGetMutableLabels().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Cross-service attributes for the location. For example
      *     {"cloud.googleapis.com/region": "us-east1"}
@@ -1330,21 +1261,23 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 2;
      */
-    public Builder removeLabels(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      internalGetMutableLabels().getMutableMap().remove(key);
+
+    public Builder removeLabels(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      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() {
       return internalGetMutableLabels().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * Cross-service attributes for the location. For example
      *     {"cloud.googleapis.com/region": "us-east1"}
@@ -1352,19 +1285,16 @@ public java.util.Map getMutableLabels() {
      *
      * map<string, string> labels = 2;
      */
-    public Builder putLabels(java.lang.String key, java.lang.String value) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      if (value == null) {
-        throw new java.lang.NullPointerException();
-      }
-      internalGetMutableLabels().getMutableMap().put(key, value);
+    public Builder putLabels(
+        java.lang.String key,
+        java.lang.String value) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      if (value == null) { throw new java.lang.NullPointerException(); }
+      internalGetMutableLabels().getMutableMap()
+          .put(key, value);
       return this;
     }
     /**
-     *
-     *
      * 
      * Cross-service attributes for the location. For example
      *     {"cloud.googleapis.com/region": "us-east1"}
@@ -1372,42 +1302,36 @@ public Builder putLabels(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> labels = 2;
      */
-    public Builder putAllLabels(java.util.Map values) {
-      internalGetMutableLabels().getMutableMap().putAll(values);
+
+    public Builder putAllLabels(
+        java.util.Map values) {
+      internalGetMutableLabels().getMutableMap()
+          .putAll(values);
       return this;
     }
 
     private com.google.protobuf.Any metadata_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Any,
-            com.google.protobuf.Any.Builder,
-            com.google.protobuf.AnyOrBuilder>
-        metadataBuilder_;
+        com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> metadataBuilder_;
     /**
-     *
-     *
      * 
      * Service-specific metadata. For example the available capacity at the given
      * location.
      * 
* * .google.protobuf.Any metadata = 3; - * * @return Whether the metadata field is set. */ public boolean hasMetadata() { return metadataBuilder_ != null || metadata_ != null; } /** - * - * *
      * Service-specific metadata. For example the available capacity at the given
      * location.
      * 
* * .google.protobuf.Any metadata = 3; - * * @return The metadata. */ public com.google.protobuf.Any getMetadata() { @@ -1418,8 +1342,6 @@ public com.google.protobuf.Any getMetadata() { } } /** - * - * *
      * Service-specific metadata. For example the available capacity at the given
      * location.
@@ -1441,8 +1363,6 @@ public Builder setMetadata(com.google.protobuf.Any value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Service-specific metadata. For example the available capacity at the given
      * location.
@@ -1450,7 +1370,8 @@ public Builder setMetadata(com.google.protobuf.Any value) {
      *
      * .google.protobuf.Any metadata = 3;
      */
-    public Builder setMetadata(com.google.protobuf.Any.Builder builderForValue) {
+    public Builder setMetadata(
+        com.google.protobuf.Any.Builder builderForValue) {
       if (metadataBuilder_ == null) {
         metadata_ = builderForValue.build();
         onChanged();
@@ -1461,8 +1382,6 @@ public Builder setMetadata(com.google.protobuf.Any.Builder builderForValue) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Service-specific metadata. For example the available capacity at the given
      * location.
@@ -1473,7 +1392,8 @@ public Builder setMetadata(com.google.protobuf.Any.Builder builderForValue) {
     public Builder mergeMetadata(com.google.protobuf.Any value) {
       if (metadataBuilder_ == null) {
         if (metadata_ != null) {
-          metadata_ = com.google.protobuf.Any.newBuilder(metadata_).mergeFrom(value).buildPartial();
+          metadata_ =
+            com.google.protobuf.Any.newBuilder(metadata_).mergeFrom(value).buildPartial();
         } else {
           metadata_ = value;
         }
@@ -1485,8 +1405,6 @@ public Builder mergeMetadata(com.google.protobuf.Any value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Service-specific metadata. For example the available capacity at the given
      * location.
@@ -1506,8 +1424,6 @@ public Builder clearMetadata() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Service-specific metadata. For example the available capacity at the given
      * location.
@@ -1516,13 +1432,11 @@ public Builder clearMetadata() {
      * .google.protobuf.Any metadata = 3;
      */
     public com.google.protobuf.Any.Builder getMetadataBuilder() {
-
+      
       onChanged();
       return getMetadataFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Service-specific metadata. For example the available capacity at the given
      * location.
@@ -1534,12 +1448,11 @@ public com.google.protobuf.AnyOrBuilder getMetadataOrBuilder() {
       if (metadataBuilder_ != null) {
         return metadataBuilder_.getMessageOrBuilder();
       } else {
-        return metadata_ == null ? com.google.protobuf.Any.getDefaultInstance() : metadata_;
+        return metadata_ == null ?
+            com.google.protobuf.Any.getDefaultInstance() : metadata_;
       }
     }
     /**
-     *
-     *
      * 
      * Service-specific metadata. For example the available capacity at the given
      * location.
@@ -1548,23 +1461,21 @@ public com.google.protobuf.AnyOrBuilder getMetadataOrBuilder() {
      * .google.protobuf.Any metadata = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Any,
-            com.google.protobuf.Any.Builder,
-            com.google.protobuf.AnyOrBuilder>
+        com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> 
         getMetadataFieldBuilder() {
       if (metadataBuilder_ == null) {
-        metadataBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Any,
-                com.google.protobuf.Any.Builder,
-                com.google.protobuf.AnyOrBuilder>(getMetadata(), getParentForChildren(), isClean());
+        metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>(
+                getMetadata(),
+                getParentForChildren(),
+                isClean());
         metadata_ = null;
       }
       return metadataBuilder_;
     }
-
     @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);
     }
 
@@ -1574,12 +1485,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.location.Location)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.location.Location)
   private static final com.google.cloud.location.Location DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.location.Location();
   }
@@ -1588,16 +1499,16 @@ public static com.google.cloud.location.Location getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public Location parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new Location(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public Location parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new Location(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1612,4 +1523,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.location.Location getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/LocationOrBuilder.java b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/location/LocationOrBuilder.java
similarity index 72%
rename from proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/LocationOrBuilder.java
rename to owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/location/LocationOrBuilder.java
index 98ab25de..0b24448b 100644
--- a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/LocationOrBuilder.java
+++ b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/location/LocationOrBuilder.java
@@ -1,110 +1,77 @@
-/*
- * Copyright 2020 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/location/locations.proto
 
 package com.google.cloud.location;
 
-public interface LocationOrBuilder
-    extends
+public interface LocationOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.location.Location)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Resource name for the location, which may vary between implementations.
    * For example: `"projects/example-project/locations/us-east1"`
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Resource name for the location, which may vary between implementations.
    * For example: `"projects/example-project/locations/us-east1"`
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * The canonical id for this location. For example: `"us-east1"`.
    * 
* * string location_id = 4; - * * @return The locationId. */ java.lang.String getLocationId(); /** - * - * *
    * The canonical id for this location. For example: `"us-east1"`.
    * 
* * string location_id = 4; - * * @return The bytes for locationId. */ - com.google.protobuf.ByteString getLocationIdBytes(); + com.google.protobuf.ByteString + getLocationIdBytes(); /** - * - * *
    * The friendly name for this location, typically a nearby city name.
    * For example, "Tokyo".
    * 
* * string display_name = 5; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
    * The friendly name for this location, typically a nearby city name.
    * For example, "Tokyo".
    * 
* * string display_name = 5; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
    * Cross-service attributes for the location. For example
    *     {"cloud.googleapis.com/region": "us-east1"}
@@ -114,8 +81,6 @@ public interface LocationOrBuilder
    */
   int getLabelsCount();
   /**
-   *
-   *
    * 
    * Cross-service attributes for the location. For example
    *     {"cloud.googleapis.com/region": "us-east1"}
@@ -123,13 +88,15 @@ public interface LocationOrBuilder
    *
    * map<string, string> labels = 2;
    */
-  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();
   /**
-   *
-   *
    * 
    * Cross-service attributes for the location. For example
    *     {"cloud.googleapis.com/region": "us-east1"}
@@ -137,10 +104,9 @@ public interface LocationOrBuilder
    *
    * map<string, string> labels = 2;
    */
-  java.util.Map getLabelsMap();
+  java.util.Map
+  getLabelsMap();
   /**
-   *
-   *
    * 
    * Cross-service attributes for the location. For example
    *     {"cloud.googleapis.com/region": "us-east1"}
@@ -148,10 +114,11 @@ public interface LocationOrBuilder
    *
    * map<string, string> labels = 2;
    */
-  java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue);
+
+  java.lang.String getLabelsOrDefault(
+      java.lang.String key,
+      java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * Cross-service attributes for the location. For example
    *     {"cloud.googleapis.com/region": "us-east1"}
@@ -159,37 +126,31 @@ public interface LocationOrBuilder
    *
    * map<string, string> labels = 2;
    */
-  java.lang.String getLabelsOrThrow(java.lang.String key);
+
+  java.lang.String getLabelsOrThrow(
+      java.lang.String key);
 
   /**
-   *
-   *
    * 
    * Service-specific metadata. For example the available capacity at the given
    * location.
    * 
* * .google.protobuf.Any metadata = 3; - * * @return Whether the metadata field is set. */ boolean hasMetadata(); /** - * - * *
    * Service-specific metadata. For example the available capacity at the given
    * location.
    * 
* * .google.protobuf.Any metadata = 3; - * * @return The metadata. */ com.google.protobuf.Any getMetadata(); /** - * - * *
    * Service-specific metadata. For example the available capacity at the given
    * location.
diff --git a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/location/LocationsProto.java b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/location/LocationsProto.java
new file mode 100644
index 00000000..1c920051
--- /dev/null
+++ b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/location/LocationsProto.java
@@ -0,0 +1,131 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/cloud/location/locations.proto
+
+package com.google.cloud.location;
+
+public final class LocationsProto {
+  private LocationsProto() {}
+  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_location_ListLocationsRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_location_ListLocationsRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_location_ListLocationsResponse_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_location_ListLocationsResponse_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_location_GetLocationRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_location_GetLocationRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_location_Location_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_location_Location_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_location_Location_LabelsEntry_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_location_Location_LabelsEntry_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/location/locations.proto\022" +
+      "\025google.cloud.location\032\034google/api/annot" +
+      "ations.proto\032\031google/protobuf/any.proto\032" +
+      "\027google/api/client.proto\"[\n\024ListLocation" +
+      "sRequest\022\014\n\004name\030\001 \001(\t\022\016\n\006filter\030\002 \001(\t\022\021" +
+      "\n\tpage_size\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\"d\n" +
+      "\025ListLocationsResponse\0222\n\tlocations\030\001 \003(" +
+      "\0132\037.google.cloud.location.Location\022\027\n\017ne" +
+      "xt_page_token\030\002 \001(\t\"\"\n\022GetLocationReques" +
+      "t\022\014\n\004name\030\001 \001(\t\"\327\001\n\010Location\022\014\n\004name\030\001 \001" +
+      "(\t\022\023\n\013location_id\030\004 \001(\t\022\024\n\014display_name\030" +
+      "\005 \001(\t\022;\n\006labels\030\002 \003(\0132+.google.cloud.loc" +
+      "ation.Location.LabelsEntry\022&\n\010metadata\030\003" +
+      " \001(\0132\024.google.protobuf.Any\032-\n\013LabelsEntr" +
+      "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\0012\244\003\n\tLo" +
+      "cations\022\253\001\n\rListLocations\022+.google.cloud" +
+      ".location.ListLocationsRequest\032,.google." +
+      "cloud.location.ListLocationsResponse\"?\202\323" +
+      "\344\223\0029\022\024/v1/{name=locations}Z!\022\037/v1/{name=" +
+      "projects/*}/locations\022\236\001\n\013GetLocation\022)." +
+      "google.cloud.location.GetLocationRequest" +
+      "\032\037.google.cloud.location.Location\"C\202\323\344\223\002" +
+      "=\022\026/v1/{name=locations/*}Z#\022!/v1/{name=p" +
+      "rojects/*/locations/*}\032H\312A\024cloud.googlea" +
+      "pis.com\322A.https://www.googleapis.com/aut" +
+      "h/cloud-platformBo\n\031com.google.cloud.loc" +
+      "ationB\016LocationsProtoP\001Z=google.golang.o" +
+      "rg/genproto/googleapis/cloud/location;lo" +
+      "cation\370\001\001b\006proto3"
+    };
+    descriptor = com.google.protobuf.Descriptors.FileDescriptor
+      .internalBuildGeneratedFileFrom(descriptorData,
+        new com.google.protobuf.Descriptors.FileDescriptor[] {
+          com.google.api.AnnotationsProto.getDescriptor(),
+          com.google.protobuf.AnyProto.getDescriptor(),
+          com.google.api.ClientProto.getDescriptor(),
+        });
+    internal_static_google_cloud_location_ListLocationsRequest_descriptor =
+      getDescriptor().getMessageTypes().get(0);
+    internal_static_google_cloud_location_ListLocationsRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_location_ListLocationsRequest_descriptor,
+        new java.lang.String[] { "Name", "Filter", "PageSize", "PageToken", });
+    internal_static_google_cloud_location_ListLocationsResponse_descriptor =
+      getDescriptor().getMessageTypes().get(1);
+    internal_static_google_cloud_location_ListLocationsResponse_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_location_ListLocationsResponse_descriptor,
+        new java.lang.String[] { "Locations", "NextPageToken", });
+    internal_static_google_cloud_location_GetLocationRequest_descriptor =
+      getDescriptor().getMessageTypes().get(2);
+    internal_static_google_cloud_location_GetLocationRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_location_GetLocationRequest_descriptor,
+        new java.lang.String[] { "Name", });
+    internal_static_google_cloud_location_Location_descriptor =
+      getDescriptor().getMessageTypes().get(3);
+    internal_static_google_cloud_location_Location_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_location_Location_descriptor,
+        new java.lang.String[] { "Name", "LocationId", "DisplayName", "Labels", "Metadata", });
+    internal_static_google_cloud_location_Location_LabelsEntry_descriptor =
+      internal_static_google_cloud_location_Location_descriptor.getNestedTypes().get(0);
+    internal_static_google_cloud_location_Location_LabelsEntry_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_location_Location_LabelsEntry_descriptor,
+        new java.lang.String[] { "Key", "Value", });
+    com.google.protobuf.ExtensionRegistry registry =
+        com.google.protobuf.ExtensionRegistry.newInstance();
+    registry.add(com.google.api.ClientProto.defaultHost);
+    registry.add(com.google.api.AnnotationsProto.http);
+    registry.add(com.google.api.ClientProto.oauthScopes);
+    com.google.protobuf.Descriptors.FileDescriptor
+        .internalUpdateFileDescriptor(descriptor, registry);
+    com.google.api.AnnotationsProto.getDescriptor();
+    com.google.protobuf.AnyProto.getDescriptor();
+    com.google.api.ClientProto.getDescriptor();
+  }
+
+  // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentInputConfig.java b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentInputConfig.java
similarity index 78%
rename from proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentInputConfig.java
rename to owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentInputConfig.java
index 652d1a1d..a618d2f2 100644
--- a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentInputConfig.java
+++ b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentInputConfig.java
@@ -1,55 +1,39 @@
-/*
- * Copyright 2020 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/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
 /**
- *
- *
  * 
  * Input configuration for BatchTranslateDocument request.
  * 
* * Protobuf type {@code google.cloud.translation.v3.BatchDocumentInputConfig} */ -public final class BatchDocumentInputConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BatchDocumentInputConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.BatchDocumentInputConfig) BatchDocumentInputConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BatchDocumentInputConfig.newBuilder() to construct. private BatchDocumentInputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private BatchDocumentInputConfig() {} + private BatchDocumentInputConfig() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BatchDocumentInputConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private BatchDocumentInputConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,67 +52,60 @@ private BatchDocumentInputConfig( case 0: done = true; break; - case 10: - { - com.google.cloud.translate.v3.GcsSource.Builder subBuilder = null; - if (sourceCase_ == 1) { - subBuilder = ((com.google.cloud.translate.v3.GcsSource) source_).toBuilder(); - } - source_ = - input.readMessage( - com.google.cloud.translate.v3.GcsSource.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.translate.v3.GcsSource) source_); - source_ = subBuilder.buildPartial(); - } - sourceCase_ = 1; - break; + case 10: { + com.google.cloud.translate.v3.GcsSource.Builder subBuilder = null; + if (sourceCase_ == 1) { + subBuilder = ((com.google.cloud.translate.v3.GcsSource) source_).toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + source_ = + input.readMessage(com.google.cloud.translate.v3.GcsSource.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.translate.v3.GcsSource) source_); + source_ = subBuilder.buildPartial(); } + sourceCase_ = 1; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_BatchDocumentInputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchDocumentInputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_BatchDocumentInputConfig_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchDocumentInputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.BatchDocumentInputConfig.class, - com.google.cloud.translate.v3.BatchDocumentInputConfig.Builder.class); + com.google.cloud.translate.v3.BatchDocumentInputConfig.class, com.google.cloud.translate.v3.BatchDocumentInputConfig.Builder.class); } private int sourceCase_ = 0; private java.lang.Object source_; - public enum SourceCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_SOURCE(1), SOURCE_NOT_SET(0); private final int value; - private SourceCase(int value) { this.value = value; } @@ -144,28 +121,24 @@ public static SourceCase valueOf(int value) { public static SourceCase forNumber(int value) { switch (value) { - case 1: - return GCS_SOURCE; - case 0: - return SOURCE_NOT_SET; - default: - return null; + case 1: return GCS_SOURCE; + case 0: return SOURCE_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public SourceCase getSourceCase() { - return SourceCase.forNumber(sourceCase_); + public SourceCase + getSourceCase() { + return SourceCase.forNumber( + sourceCase_); } public static final int GCS_SOURCE_FIELD_NUMBER = 1; /** - * - * *
    * Google Cloud Storage location for the source input.
    * This can be a single file (for example,
@@ -187,7 +160,6 @@ public SourceCase getSourceCase() {
    * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 1; - * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -195,8 +167,6 @@ public boolean hasGcsSource() { return sourceCase_ == 1; } /** - * - * *
    * Google Cloud Storage location for the source input.
    * This can be a single file (for example,
@@ -218,19 +188,16 @@ public boolean hasGcsSource() {
    * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 1; - * * @return The gcsSource. */ @java.lang.Override public com.google.cloud.translate.v3.GcsSource getGcsSource() { if (sourceCase_ == 1) { - return (com.google.cloud.translate.v3.GcsSource) source_; + return (com.google.cloud.translate.v3.GcsSource) source_; } return com.google.cloud.translate.v3.GcsSource.getDefaultInstance(); } /** - * - * *
    * Google Cloud Storage location for the source input.
    * This can be a single file (for example,
@@ -256,13 +223,12 @@ public com.google.cloud.translate.v3.GcsSource getGcsSource() {
   @java.lang.Override
   public com.google.cloud.translate.v3.GcsSourceOrBuilder getGcsSourceOrBuilder() {
     if (sourceCase_ == 1) {
-      return (com.google.cloud.translate.v3.GcsSource) source_;
+       return (com.google.cloud.translate.v3.GcsSource) source_;
     }
     return com.google.cloud.translate.v3.GcsSource.getDefaultInstance();
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -274,7 +240,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 (sourceCase_ == 1) {
       output.writeMessage(1, (com.google.cloud.translate.v3.GcsSource) source_);
     }
@@ -288,9 +255,8 @@ public int getSerializedSize() {
 
     size = 0;
     if (sourceCase_ == 1) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              1, (com.google.cloud.translate.v3.GcsSource) source_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, (com.google.cloud.translate.v3.GcsSource) source_);
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -300,18 +266,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.cloud.translate.v3.BatchDocumentInputConfig)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3.BatchDocumentInputConfig other =
-        (com.google.cloud.translate.v3.BatchDocumentInputConfig) obj;
+    com.google.cloud.translate.v3.BatchDocumentInputConfig other = (com.google.cloud.translate.v3.BatchDocumentInputConfig) obj;
 
     if (!getSourceCase().equals(other.getSourceCase())) return false;
     switch (sourceCase_) {
       case 1:
-        if (!getGcsSource().equals(other.getGcsSource())) return false;
+        if (!getGcsSource()
+            .equals(other.getGcsSource())) return false;
         break;
       case 0:
       default:
@@ -341,127 +307,117 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3.BatchDocumentInputConfig 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.cloud.translate.v3.BatchDocumentInputConfig 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.cloud.translate.v3.BatchDocumentInputConfig parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3.BatchDocumentInputConfig 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.cloud.translate.v3.BatchDocumentInputConfig parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3.BatchDocumentInputConfig 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.cloud.translate.v3.BatchDocumentInputConfig parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3.BatchDocumentInputConfig parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3.BatchDocumentInputConfig 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.cloud.translate.v3.BatchDocumentInputConfig parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3.BatchDocumentInputConfig parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3.BatchDocumentInputConfig 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.cloud.translate.v3.BatchDocumentInputConfig 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.cloud.translate.v3.BatchDocumentInputConfig 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.cloud.translate.v3.BatchDocumentInputConfig prototype) {
+  public static Builder newBuilder(com.google.cloud.translate.v3.BatchDocumentInputConfig 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;
   }
   /**
-   *
-   *
    * 
    * Input configuration for BatchTranslateDocument request.
    * 
* * Protobuf type {@code google.cloud.translation.v3.BatchDocumentInputConfig} */ - 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.translation.v3.BatchDocumentInputConfig) com.google.cloud.translate.v3.BatchDocumentInputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_BatchDocumentInputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchDocumentInputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_BatchDocumentInputConfig_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchDocumentInputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.BatchDocumentInputConfig.class, - com.google.cloud.translate.v3.BatchDocumentInputConfig.Builder.class); + com.google.cloud.translate.v3.BatchDocumentInputConfig.class, com.google.cloud.translate.v3.BatchDocumentInputConfig.Builder.class); } // Construct using com.google.cloud.translate.v3.BatchDocumentInputConfig.newBuilder() @@ -469,15 +425,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -487,9 +444,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_BatchDocumentInputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchDocumentInputConfig_descriptor; } @java.lang.Override @@ -508,8 +465,7 @@ public com.google.cloud.translate.v3.BatchDocumentInputConfig build() { @java.lang.Override public com.google.cloud.translate.v3.BatchDocumentInputConfig buildPartial() { - com.google.cloud.translate.v3.BatchDocumentInputConfig result = - new com.google.cloud.translate.v3.BatchDocumentInputConfig(this); + com.google.cloud.translate.v3.BatchDocumentInputConfig result = new com.google.cloud.translate.v3.BatchDocumentInputConfig(this); if (sourceCase_ == 1) { if (gcsSourceBuilder_ == null) { result.source_ = source_; @@ -526,39 +482,38 @@ public com.google.cloud.translate.v3.BatchDocumentInputConfig 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.cloud.translate.v3.BatchDocumentInputConfig) { - return mergeFrom((com.google.cloud.translate.v3.BatchDocumentInputConfig) other); + return mergeFrom((com.google.cloud.translate.v3.BatchDocumentInputConfig)other); } else { super.mergeFrom(other); return this; @@ -566,18 +521,15 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.BatchDocumentInputConfig other) { - if (other == com.google.cloud.translate.v3.BatchDocumentInputConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3.BatchDocumentInputConfig.getDefaultInstance()) return this; switch (other.getSourceCase()) { - case GCS_SOURCE: - { - mergeGcsSource(other.getGcsSource()); - break; - } - case SOURCE_NOT_SET: - { - break; - } + case GCS_SOURCE: { + mergeGcsSource(other.getGcsSource()); + break; + } + case SOURCE_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -598,8 +550,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.translate.v3.BatchDocumentInputConfig) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.translate.v3.BatchDocumentInputConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -608,12 +559,12 @@ public Builder mergeFrom( } return this; } - private int sourceCase_ = 0; private java.lang.Object source_; - - public SourceCase getSourceCase() { - return SourceCase.forNumber(sourceCase_); + public SourceCase + getSourceCase() { + return SourceCase.forNumber( + sourceCase_); } public Builder clearSource() { @@ -623,14 +574,10 @@ public Builder clearSource() { return this; } + private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.GcsSource, - com.google.cloud.translate.v3.GcsSource.Builder, - com.google.cloud.translate.v3.GcsSourceOrBuilder> - gcsSourceBuilder_; + com.google.cloud.translate.v3.GcsSource, com.google.cloud.translate.v3.GcsSource.Builder, com.google.cloud.translate.v3.GcsSourceOrBuilder> gcsSourceBuilder_; /** - * - * *
      * Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -652,7 +599,6 @@ public Builder clearSource() {
      * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 1; - * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -660,8 +606,6 @@ public boolean hasGcsSource() { return sourceCase_ == 1; } /** - * - * *
      * Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -683,7 +627,6 @@ public boolean hasGcsSource() {
      * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 1; - * * @return The gcsSource. */ @java.lang.Override @@ -701,8 +644,6 @@ public com.google.cloud.translate.v3.GcsSource getGcsSource() { } } /** - * - * *
      * Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -739,8 +680,6 @@ public Builder setGcsSource(com.google.cloud.translate.v3.GcsSource value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -763,7 +702,8 @@ public Builder setGcsSource(com.google.cloud.translate.v3.GcsSource value) {
      *
      * .google.cloud.translation.v3.GcsSource gcs_source = 1;
      */
-    public Builder setGcsSource(com.google.cloud.translate.v3.GcsSource.Builder builderForValue) {
+    public Builder setGcsSource(
+        com.google.cloud.translate.v3.GcsSource.Builder builderForValue) {
       if (gcsSourceBuilder_ == null) {
         source_ = builderForValue.build();
         onChanged();
@@ -774,8 +714,6 @@ public Builder setGcsSource(com.google.cloud.translate.v3.GcsSource.Builder buil
       return this;
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -800,13 +738,10 @@ public Builder setGcsSource(com.google.cloud.translate.v3.GcsSource.Builder buil
      */
     public Builder mergeGcsSource(com.google.cloud.translate.v3.GcsSource value) {
       if (gcsSourceBuilder_ == null) {
-        if (sourceCase_ == 1
-            && source_ != com.google.cloud.translate.v3.GcsSource.getDefaultInstance()) {
-          source_ =
-              com.google.cloud.translate.v3.GcsSource.newBuilder(
-                      (com.google.cloud.translate.v3.GcsSource) source_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (sourceCase_ == 1 &&
+            source_ != com.google.cloud.translate.v3.GcsSource.getDefaultInstance()) {
+          source_ = com.google.cloud.translate.v3.GcsSource.newBuilder((com.google.cloud.translate.v3.GcsSource) source_)
+              .mergeFrom(value).buildPartial();
         } else {
           source_ = value;
         }
@@ -821,8 +756,6 @@ public Builder mergeGcsSource(com.google.cloud.translate.v3.GcsSource value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -862,8 +795,6 @@ public Builder clearGcsSource() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -890,8 +821,6 @@ public com.google.cloud.translate.v3.GcsSource.Builder getGcsSourceBuilder() {
       return getGcsSourceFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -926,8 +855,6 @@ public com.google.cloud.translate.v3.GcsSourceOrBuilder getGcsSourceOrBuilder()
       }
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -951,32 +878,26 @@ public com.google.cloud.translate.v3.GcsSourceOrBuilder getGcsSourceOrBuilder()
      * .google.cloud.translation.v3.GcsSource gcs_source = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.translate.v3.GcsSource,
-            com.google.cloud.translate.v3.GcsSource.Builder,
-            com.google.cloud.translate.v3.GcsSourceOrBuilder>
+        com.google.cloud.translate.v3.GcsSource, com.google.cloud.translate.v3.GcsSource.Builder, com.google.cloud.translate.v3.GcsSourceOrBuilder> 
         getGcsSourceFieldBuilder() {
       if (gcsSourceBuilder_ == null) {
         if (!(sourceCase_ == 1)) {
           source_ = com.google.cloud.translate.v3.GcsSource.getDefaultInstance();
         }
-        gcsSourceBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.translate.v3.GcsSource,
-                com.google.cloud.translate.v3.GcsSource.Builder,
-                com.google.cloud.translate.v3.GcsSourceOrBuilder>(
+        gcsSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.translate.v3.GcsSource, com.google.cloud.translate.v3.GcsSource.Builder, com.google.cloud.translate.v3.GcsSourceOrBuilder>(
                 (com.google.cloud.translate.v3.GcsSource) source_,
                 getParentForChildren(),
                 isClean());
         source_ = null;
       }
       sourceCase_ = 1;
-      onChanged();
-      ;
+      onChanged();;
       return gcsSourceBuilder_;
     }
-
     @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);
     }
 
@@ -986,12 +907,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.BatchDocumentInputConfig)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.BatchDocumentInputConfig)
   private static final com.google.cloud.translate.v3.BatchDocumentInputConfig DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3.BatchDocumentInputConfig();
   }
@@ -1000,16 +921,16 @@ public static com.google.cloud.translate.v3.BatchDocumentInputConfig getDefaultI
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public BatchDocumentInputConfig parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new BatchDocumentInputConfig(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public BatchDocumentInputConfig parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new BatchDocumentInputConfig(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1024,4 +945,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3.BatchDocumentInputConfig getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentInputConfigOrBuilder.java b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentInputConfigOrBuilder.java
similarity index 83%
rename from proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentInputConfigOrBuilder.java
rename to owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentInputConfigOrBuilder.java
index 806139bc..078e84fc 100644
--- a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentInputConfigOrBuilder.java
+++ b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentInputConfigOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2020 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/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
-public interface BatchDocumentInputConfigOrBuilder
-    extends
+public interface BatchDocumentInputConfigOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.BatchDocumentInputConfig)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Google Cloud Storage location for the source input.
    * This can be a single file (for example,
@@ -47,13 +29,10 @@ public interface BatchDocumentInputConfigOrBuilder
    * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 1; - * * @return Whether the gcsSource field is set. */ boolean hasGcsSource(); /** - * - * *
    * Google Cloud Storage location for the source input.
    * This can be a single file (for example,
@@ -75,13 +54,10 @@ public interface BatchDocumentInputConfigOrBuilder
    * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 1; - * * @return The gcsSource. */ com.google.cloud.translate.v3.GcsSource getGcsSource(); /** - * - * *
    * Google Cloud Storage location for the source input.
    * This can be a single file (for example,
diff --git a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentOutputConfig.java b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentOutputConfig.java
similarity index 85%
rename from proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentOutputConfig.java
rename to owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentOutputConfig.java
index b96860b3..512dd796 100644
--- a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentOutputConfig.java
+++ b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentOutputConfig.java
@@ -1,55 +1,39 @@
-/*
- * Copyright 2020 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/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
 /**
- *
- *
  * 
  * Output configuration for BatchTranslateDocument request.
  * 
* * Protobuf type {@code google.cloud.translation.v3.BatchDocumentOutputConfig} */ -public final class BatchDocumentOutputConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BatchDocumentOutputConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.BatchDocumentOutputConfig) BatchDocumentOutputConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BatchDocumentOutputConfig.newBuilder() to construct. private BatchDocumentOutputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private BatchDocumentOutputConfig() {} + private BatchDocumentOutputConfig() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BatchDocumentOutputConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private BatchDocumentOutputConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,68 +52,60 @@ private BatchDocumentOutputConfig( case 0: done = true; break; - case 10: - { - com.google.cloud.translate.v3.GcsDestination.Builder subBuilder = null; - if (destinationCase_ == 1) { - subBuilder = - ((com.google.cloud.translate.v3.GcsDestination) destination_).toBuilder(); - } - destination_ = - input.readMessage( - com.google.cloud.translate.v3.GcsDestination.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.translate.v3.GcsDestination) destination_); - destination_ = subBuilder.buildPartial(); - } - destinationCase_ = 1; - break; + case 10: { + com.google.cloud.translate.v3.GcsDestination.Builder subBuilder = null; + if (destinationCase_ == 1) { + subBuilder = ((com.google.cloud.translate.v3.GcsDestination) destination_).toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + destination_ = + input.readMessage(com.google.cloud.translate.v3.GcsDestination.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.translate.v3.GcsDestination) destination_); + destination_ = subBuilder.buildPartial(); } + destinationCase_ = 1; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_BatchDocumentOutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchDocumentOutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_BatchDocumentOutputConfig_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchDocumentOutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.BatchDocumentOutputConfig.class, - com.google.cloud.translate.v3.BatchDocumentOutputConfig.Builder.class); + com.google.cloud.translate.v3.BatchDocumentOutputConfig.class, com.google.cloud.translate.v3.BatchDocumentOutputConfig.Builder.class); } private int destinationCase_ = 0; private java.lang.Object destination_; - public enum DestinationCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_DESTINATION(1), DESTINATION_NOT_SET(0); private final int value; - private DestinationCase(int value) { this.value = value; } @@ -145,28 +121,24 @@ public static DestinationCase valueOf(int value) { public static DestinationCase forNumber(int value) { switch (value) { - case 1: - return GCS_DESTINATION; - case 0: - return DESTINATION_NOT_SET; - default: - return null; + case 1: return GCS_DESTINATION; + case 0: return DESTINATION_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public DestinationCase getDestinationCase() { - return DestinationCase.forNumber(destinationCase_); + public DestinationCase + getDestinationCase() { + return DestinationCase.forNumber( + destinationCase_); } public static final int GCS_DESTINATION_FIELD_NUMBER = 1; /** - * - * *
    * Google Cloud Storage destination for output content.
    * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -209,7 +181,6 @@ public DestinationCase getDestinationCase() {
    * 
* * .google.cloud.translation.v3.GcsDestination gcs_destination = 1; - * * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -217,8 +188,6 @@ public boolean hasGcsDestination() { return destinationCase_ == 1; } /** - * - * *
    * Google Cloud Storage destination for output content.
    * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -261,19 +230,16 @@ public boolean hasGcsDestination() {
    * 
* * .google.cloud.translation.v3.GcsDestination gcs_destination = 1; - * * @return The gcsDestination. */ @java.lang.Override public com.google.cloud.translate.v3.GcsDestination getGcsDestination() { if (destinationCase_ == 1) { - return (com.google.cloud.translate.v3.GcsDestination) destination_; + return (com.google.cloud.translate.v3.GcsDestination) destination_; } return com.google.cloud.translate.v3.GcsDestination.getDefaultInstance(); } /** - * - * *
    * Google Cloud Storage destination for output content.
    * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -320,13 +286,12 @@ public com.google.cloud.translate.v3.GcsDestination getGcsDestination() {
   @java.lang.Override
   public com.google.cloud.translate.v3.GcsDestinationOrBuilder getGcsDestinationOrBuilder() {
     if (destinationCase_ == 1) {
-      return (com.google.cloud.translate.v3.GcsDestination) destination_;
+       return (com.google.cloud.translate.v3.GcsDestination) destination_;
     }
     return com.google.cloud.translate.v3.GcsDestination.getDefaultInstance();
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -338,7 +303,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 (destinationCase_ == 1) {
       output.writeMessage(1, (com.google.cloud.translate.v3.GcsDestination) destination_);
     }
@@ -352,9 +318,8 @@ public int getSerializedSize() {
 
     size = 0;
     if (destinationCase_ == 1) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              1, (com.google.cloud.translate.v3.GcsDestination) destination_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, (com.google.cloud.translate.v3.GcsDestination) destination_);
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -364,18 +329,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.cloud.translate.v3.BatchDocumentOutputConfig)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3.BatchDocumentOutputConfig other =
-        (com.google.cloud.translate.v3.BatchDocumentOutputConfig) obj;
+    com.google.cloud.translate.v3.BatchDocumentOutputConfig other = (com.google.cloud.translate.v3.BatchDocumentOutputConfig) obj;
 
     if (!getDestinationCase().equals(other.getDestinationCase())) return false;
     switch (destinationCase_) {
       case 1:
-        if (!getGcsDestination().equals(other.getGcsDestination())) return false;
+        if (!getGcsDestination()
+            .equals(other.getGcsDestination())) return false;
         break;
       case 0:
       default:
@@ -405,127 +370,117 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3.BatchDocumentOutputConfig 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.cloud.translate.v3.BatchDocumentOutputConfig 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.cloud.translate.v3.BatchDocumentOutputConfig parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3.BatchDocumentOutputConfig 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.cloud.translate.v3.BatchDocumentOutputConfig parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3.BatchDocumentOutputConfig 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.cloud.translate.v3.BatchDocumentOutputConfig parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3.BatchDocumentOutputConfig parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3.BatchDocumentOutputConfig 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.cloud.translate.v3.BatchDocumentOutputConfig parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3.BatchDocumentOutputConfig parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3.BatchDocumentOutputConfig 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.cloud.translate.v3.BatchDocumentOutputConfig 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.cloud.translate.v3.BatchDocumentOutputConfig 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.cloud.translate.v3.BatchDocumentOutputConfig prototype) {
+  public static Builder newBuilder(com.google.cloud.translate.v3.BatchDocumentOutputConfig 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;
   }
   /**
-   *
-   *
    * 
    * Output configuration for BatchTranslateDocument request.
    * 
* * Protobuf type {@code google.cloud.translation.v3.BatchDocumentOutputConfig} */ - 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.translation.v3.BatchDocumentOutputConfig) com.google.cloud.translate.v3.BatchDocumentOutputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_BatchDocumentOutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchDocumentOutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_BatchDocumentOutputConfig_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchDocumentOutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.BatchDocumentOutputConfig.class, - com.google.cloud.translate.v3.BatchDocumentOutputConfig.Builder.class); + com.google.cloud.translate.v3.BatchDocumentOutputConfig.class, com.google.cloud.translate.v3.BatchDocumentOutputConfig.Builder.class); } // Construct using com.google.cloud.translate.v3.BatchDocumentOutputConfig.newBuilder() @@ -533,15 +488,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -551,9 +507,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_BatchDocumentOutputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchDocumentOutputConfig_descriptor; } @java.lang.Override @@ -572,8 +528,7 @@ public com.google.cloud.translate.v3.BatchDocumentOutputConfig build() { @java.lang.Override public com.google.cloud.translate.v3.BatchDocumentOutputConfig buildPartial() { - com.google.cloud.translate.v3.BatchDocumentOutputConfig result = - new com.google.cloud.translate.v3.BatchDocumentOutputConfig(this); + com.google.cloud.translate.v3.BatchDocumentOutputConfig result = new com.google.cloud.translate.v3.BatchDocumentOutputConfig(this); if (destinationCase_ == 1) { if (gcsDestinationBuilder_ == null) { result.destination_ = destination_; @@ -590,39 +545,38 @@ public com.google.cloud.translate.v3.BatchDocumentOutputConfig 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.cloud.translate.v3.BatchDocumentOutputConfig) { - return mergeFrom((com.google.cloud.translate.v3.BatchDocumentOutputConfig) other); + return mergeFrom((com.google.cloud.translate.v3.BatchDocumentOutputConfig)other); } else { super.mergeFrom(other); return this; @@ -630,18 +584,15 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.BatchDocumentOutputConfig other) { - if (other == com.google.cloud.translate.v3.BatchDocumentOutputConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3.BatchDocumentOutputConfig.getDefaultInstance()) return this; switch (other.getDestinationCase()) { - case GCS_DESTINATION: - { - mergeGcsDestination(other.getGcsDestination()); - break; - } - case DESTINATION_NOT_SET: - { - break; - } + case GCS_DESTINATION: { + mergeGcsDestination(other.getGcsDestination()); + break; + } + case DESTINATION_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -662,8 +613,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.translate.v3.BatchDocumentOutputConfig) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.translate.v3.BatchDocumentOutputConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -672,12 +622,12 @@ public Builder mergeFrom( } return this; } - private int destinationCase_ = 0; private java.lang.Object destination_; - - public DestinationCase getDestinationCase() { - return DestinationCase.forNumber(destinationCase_); + public DestinationCase + getDestinationCase() { + return DestinationCase.forNumber( + destinationCase_); } public Builder clearDestination() { @@ -687,14 +637,10 @@ public Builder clearDestination() { return this; } + private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.GcsDestination, - com.google.cloud.translate.v3.GcsDestination.Builder, - com.google.cloud.translate.v3.GcsDestinationOrBuilder> - gcsDestinationBuilder_; + com.google.cloud.translate.v3.GcsDestination, com.google.cloud.translate.v3.GcsDestination.Builder, com.google.cloud.translate.v3.GcsDestinationOrBuilder> gcsDestinationBuilder_; /** - * - * *
      * Google Cloud Storage destination for output content.
      * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -737,7 +683,6 @@ public Builder clearDestination() {
      * 
* * .google.cloud.translation.v3.GcsDestination gcs_destination = 1; - * * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -745,8 +690,6 @@ public boolean hasGcsDestination() { return destinationCase_ == 1; } /** - * - * *
      * Google Cloud Storage destination for output content.
      * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -789,7 +732,6 @@ public boolean hasGcsDestination() {
      * 
* * .google.cloud.translation.v3.GcsDestination gcs_destination = 1; - * * @return The gcsDestination. */ @java.lang.Override @@ -807,8 +749,6 @@ public com.google.cloud.translate.v3.GcsDestination getGcsDestination() { } } /** - * - * *
      * Google Cloud Storage destination for output content.
      * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -866,8 +806,6 @@ public Builder setGcsDestination(com.google.cloud.translate.v3.GcsDestination va
       return this;
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage destination for output content.
      * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -923,8 +861,6 @@ public Builder setGcsDestination(
       return this;
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage destination for output content.
      * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -970,13 +906,10 @@ public Builder setGcsDestination(
      */
     public Builder mergeGcsDestination(com.google.cloud.translate.v3.GcsDestination value) {
       if (gcsDestinationBuilder_ == null) {
-        if (destinationCase_ == 1
-            && destination_ != com.google.cloud.translate.v3.GcsDestination.getDefaultInstance()) {
-          destination_ =
-              com.google.cloud.translate.v3.GcsDestination.newBuilder(
-                      (com.google.cloud.translate.v3.GcsDestination) destination_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (destinationCase_ == 1 &&
+            destination_ != com.google.cloud.translate.v3.GcsDestination.getDefaultInstance()) {
+          destination_ = com.google.cloud.translate.v3.GcsDestination.newBuilder((com.google.cloud.translate.v3.GcsDestination) destination_)
+              .mergeFrom(value).buildPartial();
         } else {
           destination_ = value;
         }
@@ -991,8 +924,6 @@ public Builder mergeGcsDestination(com.google.cloud.translate.v3.GcsDestination
       return this;
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage destination for output content.
      * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -1053,8 +984,6 @@ public Builder clearGcsDestination() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage destination for output content.
      * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -1102,8 +1031,6 @@ public com.google.cloud.translate.v3.GcsDestination.Builder getGcsDestinationBui
       return getGcsDestinationFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage destination for output content.
      * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -1159,8 +1086,6 @@ public com.google.cloud.translate.v3.GcsDestinationOrBuilder getGcsDestinationOr
       }
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage destination for output content.
      * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -1205,32 +1130,26 @@ public com.google.cloud.translate.v3.GcsDestinationOrBuilder getGcsDestinationOr
      * .google.cloud.translation.v3.GcsDestination gcs_destination = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.translate.v3.GcsDestination,
-            com.google.cloud.translate.v3.GcsDestination.Builder,
-            com.google.cloud.translate.v3.GcsDestinationOrBuilder>
+        com.google.cloud.translate.v3.GcsDestination, com.google.cloud.translate.v3.GcsDestination.Builder, com.google.cloud.translate.v3.GcsDestinationOrBuilder> 
         getGcsDestinationFieldBuilder() {
       if (gcsDestinationBuilder_ == null) {
         if (!(destinationCase_ == 1)) {
           destination_ = com.google.cloud.translate.v3.GcsDestination.getDefaultInstance();
         }
-        gcsDestinationBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.translate.v3.GcsDestination,
-                com.google.cloud.translate.v3.GcsDestination.Builder,
-                com.google.cloud.translate.v3.GcsDestinationOrBuilder>(
+        gcsDestinationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.translate.v3.GcsDestination, com.google.cloud.translate.v3.GcsDestination.Builder, com.google.cloud.translate.v3.GcsDestinationOrBuilder>(
                 (com.google.cloud.translate.v3.GcsDestination) destination_,
                 getParentForChildren(),
                 isClean());
         destination_ = null;
       }
       destinationCase_ = 1;
-      onChanged();
-      ;
+      onChanged();;
       return gcsDestinationBuilder_;
     }
-
     @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);
     }
 
@@ -1240,12 +1159,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.BatchDocumentOutputConfig)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.BatchDocumentOutputConfig)
   private static final com.google.cloud.translate.v3.BatchDocumentOutputConfig DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3.BatchDocumentOutputConfig();
   }
@@ -1254,16 +1173,16 @@ public static com.google.cloud.translate.v3.BatchDocumentOutputConfig getDefault
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public BatchDocumentOutputConfig parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new BatchDocumentOutputConfig(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public BatchDocumentOutputConfig parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new BatchDocumentOutputConfig(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1278,4 +1197,6 @@ public com.google.protobuf.Parser getParserForType()
   public com.google.cloud.translate.v3.BatchDocumentOutputConfig getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentOutputConfigOrBuilder.java b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentOutputConfigOrBuilder.java
similarity index 91%
rename from proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentOutputConfigOrBuilder.java
rename to owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentOutputConfigOrBuilder.java
index 5783dd39..7ccb0df1 100644
--- a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentOutputConfigOrBuilder.java
+++ b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentOutputConfigOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2020 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/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
-public interface BatchDocumentOutputConfigOrBuilder
-    extends
+public interface BatchDocumentOutputConfigOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.BatchDocumentOutputConfig)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Google Cloud Storage destination for output content.
    * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -68,13 +50,10 @@ public interface BatchDocumentOutputConfigOrBuilder
    * 
* * .google.cloud.translation.v3.GcsDestination gcs_destination = 1; - * * @return Whether the gcsDestination field is set. */ boolean hasGcsDestination(); /** - * - * *
    * Google Cloud Storage destination for output content.
    * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -117,13 +96,10 @@ public interface BatchDocumentOutputConfigOrBuilder
    * 
* * .google.cloud.translation.v3.GcsDestination gcs_destination = 1; - * * @return The gcsDestination. */ com.google.cloud.translate.v3.GcsDestination getGcsDestination(); /** - * - * *
    * Google Cloud Storage destination for output content.
    * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -169,6 +145,5 @@ public interface BatchDocumentOutputConfigOrBuilder
    */
   com.google.cloud.translate.v3.GcsDestinationOrBuilder getGcsDestinationOrBuilder();
 
-  public com.google.cloud.translate.v3.BatchDocumentOutputConfig.DestinationCase
-      getDestinationCase();
+  public com.google.cloud.translate.v3.BatchDocumentOutputConfig.DestinationCase getDestinationCase();
 }
diff --git a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentMetadata.java b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentMetadata.java
similarity index 73%
rename from proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentMetadata.java
rename to owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentMetadata.java
index 38517ed0..159471c3 100644
--- a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentMetadata.java
+++ b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentMetadata.java
@@ -1,58 +1,40 @@
-/*
- * Copyright 2020 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/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
 /**
- *
- *
  * 
  * State metadata for the batch translation operation.
  * 
* * Protobuf type {@code google.cloud.translation.v3.BatchTranslateDocumentMetadata} */ -public final class BatchTranslateDocumentMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BatchTranslateDocumentMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.BatchTranslateDocumentMetadata) BatchTranslateDocumentMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BatchTranslateDocumentMetadata.newBuilder() to construct. - private BatchTranslateDocumentMetadata( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private BatchTranslateDocumentMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BatchTranslateDocumentMetadata() { state_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BatchTranslateDocumentMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private BatchTranslateDocumentMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,115 +53,107 @@ private BatchTranslateDocumentMetadata( case 0: done = true; break; - case 8: - { - int rawValue = input.readEnum(); + case 8: { + int rawValue = input.readEnum(); - state_ = rawValue; - break; - } - case 16: - { - totalPages_ = input.readInt64(); - break; - } - case 24: - { - translatedPages_ = input.readInt64(); - break; - } - case 32: - { - failedPages_ = input.readInt64(); - break; - } - case 40: - { - totalBillablePages_ = input.readInt64(); - break; - } - case 48: - { - totalCharacters_ = input.readInt64(); - break; - } - case 56: - { - translatedCharacters_ = input.readInt64(); - break; - } - case 64: - { - failedCharacters_ = input.readInt64(); - break; - } - case 72: - { - totalBillableCharacters_ = input.readInt64(); - break; + state_ = rawValue; + break; + } + case 16: { + + totalPages_ = input.readInt64(); + break; + } + case 24: { + + translatedPages_ = input.readInt64(); + break; + } + case 32: { + + failedPages_ = input.readInt64(); + break; + } + case 40: { + + totalBillablePages_ = input.readInt64(); + break; + } + case 48: { + + totalCharacters_ = input.readInt64(); + break; + } + case 56: { + + translatedCharacters_ = input.readInt64(); + break; + } + case 64: { + + failedCharacters_ = input.readInt64(); + break; + } + case 72: { + + totalBillableCharacters_ = input.readInt64(); + break; + } + case 82: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (submitTime_ != null) { + subBuilder = submitTime_.toBuilder(); } - case 82: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (submitTime_ != null) { - subBuilder = submitTime_.toBuilder(); - } - submitTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(submitTime_); - submitTime_ = subBuilder.buildPartial(); - } - - break; + submitTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(submitTime_); + submitTime_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_BatchTranslateDocumentMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateDocumentMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_BatchTranslateDocumentMetadata_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateDocumentMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.class, - com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.Builder.class); + com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.class, com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.Builder.class); } /** - * - * *
    * State of the job.
    * 
* * Protobuf enum {@code google.cloud.translation.v3.BatchTranslateDocumentMetadata.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Invalid.
      * 
@@ -188,8 +162,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * Request is being processed.
      * 
@@ -198,8 +170,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ RUNNING(1), /** - * - * *
      * The batch is processed, and at least one item was successfully processed.
      * 
@@ -208,8 +178,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ SUCCEEDED(2), /** - * - * *
      * The batch is done and no item was successfully processed.
      * 
@@ -218,8 +186,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ FAILED(3), /** - * - * *
      * Request is in the process of being canceled after caller invoked
      * longrunning.Operations.CancelOperation on the request id.
@@ -229,8 +195,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     CANCELLING(4),
     /**
-     *
-     *
      * 
      * The batch is done after the user has called the
      * longrunning.Operations.CancelOperation. Any records processed before the
@@ -244,8 +208,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * Invalid.
      * 
@@ -254,8 +216,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Request is being processed.
      * 
@@ -264,8 +224,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RUNNING_VALUE = 1; /** - * - * *
      * The batch is processed, and at least one item was successfully processed.
      * 
@@ -274,8 +232,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SUCCEEDED_VALUE = 2; /** - * - * *
      * The batch is done and no item was successfully processed.
      * 
@@ -284,8 +240,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FAILED_VALUE = 3; /** - * - * *
      * Request is in the process of being canceled after caller invoked
      * longrunning.Operations.CancelOperation on the request id.
@@ -295,8 +249,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int CANCELLING_VALUE = 4;
     /**
-     *
-     *
      * 
      * The batch is done after the user has called the
      * longrunning.Operations.CancelOperation. Any records processed before the
@@ -307,6 +259,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int CANCELLED_VALUE = 5;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -331,57 +284,52 @@ public static State valueOf(int value) {
      */
     public static State forNumber(int value) {
       switch (value) {
-        case 0:
-          return STATE_UNSPECIFIED;
-        case 1:
-          return RUNNING;
-        case 2:
-          return SUCCEEDED;
-        case 3:
-          return FAILED;
-        case 4:
-          return CANCELLING;
-        case 5:
-          return CANCELLED;
-        default:
-          return null;
+        case 0: return STATE_UNSPECIFIED;
+        case 1: return RUNNING;
+        case 2: return SUCCEEDED;
+        case 3: return FAILED;
+        case 4: return CANCELLING;
+        case 5: return CANCELLED;
+        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<
+        State> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public State findValueByNumber(int number) {
+              return State.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public State findValueByNumber(int number) {
-            return State.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.cloud.translate.v3.BatchTranslateDocumentMetadata.getDescriptor()
-          .getEnumTypes()
-          .get(0);
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
+      return com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final State[] VALUES = values();
 
-    public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static State 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;
@@ -401,53 +349,39 @@ private State(int value) {
   public static final int STATE_FIELD_NUMBER = 1;
   private int state_;
   /**
-   *
-   *
    * 
    * The state of the operation.
    * 
* * .google.cloud.translation.v3.BatchTranslateDocumentMetadata.State state = 1; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * The state of the operation.
    * 
* * .google.cloud.translation.v3.BatchTranslateDocumentMetadata.State state = 1; - * * @return The state. */ - @java.lang.Override - public com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.State getState() { + @java.lang.Override public com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.State result = - com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.State.valueOf(state_); - return result == null - ? com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.State.UNRECOGNIZED - : result; + com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.State result = com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.State.valueOf(state_); + return result == null ? com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.State.UNRECOGNIZED : result; } public static final int TOTAL_PAGES_FIELD_NUMBER = 2; private long totalPages_; /** - * - * *
    * Total number of pages to translate in all documents so far. Documents
    * without clear page definition (such as XLSX) are not counted.
    * 
* * int64 total_pages = 2; - * * @return The totalPages. */ @java.lang.Override @@ -458,15 +392,12 @@ public long getTotalPages() { public static final int TRANSLATED_PAGES_FIELD_NUMBER = 3; private long translatedPages_; /** - * - * *
    * Number of successfully translated pages in all documents so far. Documents
    * without clear page definition (such as XLSX) are not counted.
    * 
* * int64 translated_pages = 3; - * * @return The translatedPages. */ @java.lang.Override @@ -477,15 +408,12 @@ public long getTranslatedPages() { public static final int FAILED_PAGES_FIELD_NUMBER = 4; private long failedPages_; /** - * - * *
    * Number of pages that failed to process in all documents so far. Documents
    * without clear page definition (such as XLSX) are not counted.
    * 
* * int64 failed_pages = 4; - * * @return The failedPages. */ @java.lang.Override @@ -496,15 +424,12 @@ public long getFailedPages() { public static final int TOTAL_BILLABLE_PAGES_FIELD_NUMBER = 5; private long totalBillablePages_; /** - * - * *
    * Number of billable pages in documents with clear page definition (such as
    * PDF, DOCX, PPTX) so far.
    * 
* * int64 total_billable_pages = 5; - * * @return The totalBillablePages. */ @java.lang.Override @@ -515,14 +440,11 @@ public long getTotalBillablePages() { public static final int TOTAL_CHARACTERS_FIELD_NUMBER = 6; private long totalCharacters_; /** - * - * *
    * Total number of characters (Unicode codepoints) in all documents so far.
    * 
* * int64 total_characters = 6; - * * @return The totalCharacters. */ @java.lang.Override @@ -533,15 +455,12 @@ public long getTotalCharacters() { public static final int TRANSLATED_CHARACTERS_FIELD_NUMBER = 7; private long translatedCharacters_; /** - * - * *
    * Number of successfully translated characters (Unicode codepoints) in all
    * documents so far.
    * 
* * int64 translated_characters = 7; - * * @return The translatedCharacters. */ @java.lang.Override @@ -552,15 +471,12 @@ public long getTranslatedCharacters() { public static final int FAILED_CHARACTERS_FIELD_NUMBER = 8; private long failedCharacters_; /** - * - * *
    * Number of characters that have failed to process (Unicode codepoints) in
    * all documents so far.
    * 
* * int64 failed_characters = 8; - * * @return The failedCharacters. */ @java.lang.Override @@ -571,15 +487,12 @@ public long getFailedCharacters() { public static final int TOTAL_BILLABLE_CHARACTERS_FIELD_NUMBER = 9; private long totalBillableCharacters_; /** - * - * *
    * Number of billable characters (Unicode codepoints) in documents without
    * clear page definition (such as XLSX) so far.
    * 
* * int64 total_billable_characters = 9; - * * @return The totalBillableCharacters. */ @java.lang.Override @@ -590,14 +503,11 @@ public long getTotalBillableCharacters() { public static final int SUBMIT_TIME_FIELD_NUMBER = 10; private com.google.protobuf.Timestamp submitTime_; /** - * - * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 10; - * * @return Whether the submitTime field is set. */ @java.lang.Override @@ -605,14 +515,11 @@ public boolean hasSubmitTime() { return submitTime_ != null; } /** - * - * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 10; - * * @return The submitTime. */ @java.lang.Override @@ -620,8 +527,6 @@ public com.google.protobuf.Timestamp getSubmitTime() { return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } /** - * - * *
    * Time when the operation was submitted.
    * 
@@ -634,7 +539,6 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -646,10 +550,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (state_ - != com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.State.STATE_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (state_ != com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(1, state_); } if (totalPages_ != 0L) { @@ -688,37 +591,45 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (state_ - != com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.State.STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_); + if (state_ != com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, state_); } if (totalPages_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, totalPages_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, totalPages_); } if (translatedPages_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, translatedPages_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, translatedPages_); } if (failedPages_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, failedPages_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(4, failedPages_); } if (totalBillablePages_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, totalBillablePages_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(5, totalBillablePages_); } if (totalCharacters_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, totalCharacters_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(6, totalCharacters_); } if (translatedCharacters_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(7, translatedCharacters_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(7, translatedCharacters_); } if (failedCharacters_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(8, failedCharacters_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(8, failedCharacters_); } if (totalBillableCharacters_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(9, totalBillableCharacters_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(9, totalBillableCharacters_); } if (submitTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getSubmitTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, getSubmitTime()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -728,26 +639,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.cloud.translate.v3.BatchTranslateDocumentMetadata)) { return super.equals(obj); } - com.google.cloud.translate.v3.BatchTranslateDocumentMetadata other = - (com.google.cloud.translate.v3.BatchTranslateDocumentMetadata) obj; + com.google.cloud.translate.v3.BatchTranslateDocumentMetadata other = (com.google.cloud.translate.v3.BatchTranslateDocumentMetadata) obj; if (state_ != other.state_) return false; - if (getTotalPages() != other.getTotalPages()) return false; - if (getTranslatedPages() != other.getTranslatedPages()) return false; - if (getFailedPages() != other.getFailedPages()) return false; - if (getTotalBillablePages() != other.getTotalBillablePages()) return false; - if (getTotalCharacters() != other.getTotalCharacters()) return false; - if (getTranslatedCharacters() != other.getTranslatedCharacters()) return false; - if (getFailedCharacters() != other.getFailedCharacters()) return false; - if (getTotalBillableCharacters() != other.getTotalBillableCharacters()) return false; + if (getTotalPages() + != other.getTotalPages()) return false; + if (getTranslatedPages() + != other.getTranslatedPages()) return false; + if (getFailedPages() + != other.getFailedPages()) return false; + if (getTotalBillablePages() + != other.getTotalBillablePages()) return false; + if (getTotalCharacters() + != other.getTotalCharacters()) return false; + if (getTranslatedCharacters() + != other.getTranslatedCharacters()) return false; + if (getFailedCharacters() + != other.getFailedCharacters()) return false; + if (getTotalBillableCharacters() + != other.getTotalBillableCharacters()) return false; if (hasSubmitTime() != other.hasSubmitTime()) return false; if (hasSubmitTime()) { - if (!getSubmitTime().equals(other.getSubmitTime())) return false; + if (!getSubmitTime() + .equals(other.getSubmitTime())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -763,21 +682,29 @@ public int hashCode() { hash = (37 * hash) + STATE_FIELD_NUMBER; hash = (53 * hash) + state_; hash = (37 * hash) + TOTAL_PAGES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalPages()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTotalPages()); hash = (37 * hash) + TRANSLATED_PAGES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTranslatedPages()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTranslatedPages()); hash = (37 * hash) + FAILED_PAGES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getFailedPages()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getFailedPages()); hash = (37 * hash) + TOTAL_BILLABLE_PAGES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalBillablePages()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTotalBillablePages()); hash = (37 * hash) + TOTAL_CHARACTERS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalCharacters()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTotalCharacters()); hash = (37 * hash) + TRANSLATED_CHARACTERS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTranslatedCharacters()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTranslatedCharacters()); hash = (37 * hash) + FAILED_CHARACTERS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getFailedCharacters()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getFailedCharacters()); hash = (37 * hash) + TOTAL_BILLABLE_CHARACTERS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalBillableCharacters()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTotalBillableCharacters()); if (hasSubmitTime()) { hash = (37 * hash) + SUBMIT_TIME_FIELD_NUMBER; hash = (53 * hash) + getSubmitTime().hashCode(); @@ -788,127 +715,117 @@ public int hashCode() { } public static com.google.cloud.translate.v3.BatchTranslateDocumentMetadata 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.cloud.translate.v3.BatchTranslateDocumentMetadata 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.cloud.translate.v3.BatchTranslateDocumentMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.BatchTranslateDocumentMetadata 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.cloud.translate.v3.BatchTranslateDocumentMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.BatchTranslateDocumentMetadata 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.cloud.translate.v3.BatchTranslateDocumentMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.BatchTranslateDocumentMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.BatchTranslateDocumentMetadata 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.cloud.translate.v3.BatchTranslateDocumentMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.BatchTranslateDocumentMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.BatchTranslateDocumentMetadata 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.cloud.translate.v3.BatchTranslateDocumentMetadata 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.cloud.translate.v3.BatchTranslateDocumentMetadata 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.cloud.translate.v3.BatchTranslateDocumentMetadata prototype) { + public static Builder newBuilder(com.google.cloud.translate.v3.BatchTranslateDocumentMetadata 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; } /** - * - * *
    * State metadata for the batch translation operation.
    * 
* * Protobuf type {@code google.cloud.translation.v3.BatchTranslateDocumentMetadata} */ - 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.translation.v3.BatchTranslateDocumentMetadata) com.google.cloud.translate.v3.BatchTranslateDocumentMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_BatchTranslateDocumentMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateDocumentMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_BatchTranslateDocumentMetadata_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateDocumentMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.class, - com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.Builder.class); + com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.class, com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.Builder.class); } // Construct using com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.newBuilder() @@ -916,15 +833,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -956,14 +874,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_BatchTranslateDocumentMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateDocumentMetadata_descriptor; } @java.lang.Override - public com.google.cloud.translate.v3.BatchTranslateDocumentMetadata - getDefaultInstanceForType() { + public com.google.cloud.translate.v3.BatchTranslateDocumentMetadata getDefaultInstanceForType() { return com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.getDefaultInstance(); } @@ -978,8 +895,7 @@ public com.google.cloud.translate.v3.BatchTranslateDocumentMetadata build() { @java.lang.Override public com.google.cloud.translate.v3.BatchTranslateDocumentMetadata buildPartial() { - com.google.cloud.translate.v3.BatchTranslateDocumentMetadata result = - new com.google.cloud.translate.v3.BatchTranslateDocumentMetadata(this); + com.google.cloud.translate.v3.BatchTranslateDocumentMetadata result = new com.google.cloud.translate.v3.BatchTranslateDocumentMetadata(this); result.state_ = state_; result.totalPages_ = totalPages_; result.translatedPages_ = translatedPages_; @@ -1002,39 +918,38 @@ public com.google.cloud.translate.v3.BatchTranslateDocumentMetadata 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.cloud.translate.v3.BatchTranslateDocumentMetadata) { - return mergeFrom((com.google.cloud.translate.v3.BatchTranslateDocumentMetadata) other); + return mergeFrom((com.google.cloud.translate.v3.BatchTranslateDocumentMetadata)other); } else { super.mergeFrom(other); return this; @@ -1042,9 +957,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.BatchTranslateDocumentMetadata other) { - if (other - == com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.getDefaultInstance()) return this; if (other.state_ != 0) { setStateValue(other.getStateValue()); } @@ -1094,8 +1007,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.translate.v3.BatchTranslateDocumentMetadata) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.translate.v3.BatchTranslateDocumentMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1107,109 +1019,86 @@ public Builder mergeFrom( private int state_ = 0; /** - * - * *
      * The state of the operation.
      * 
* * .google.cloud.translation.v3.BatchTranslateDocumentMetadata.State state = 1; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * The state of the operation.
      * 
* * .google.cloud.translation.v3.BatchTranslateDocumentMetadata.State state = 1; - * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** - * - * *
      * The state of the operation.
      * 
* * .google.cloud.translation.v3.BatchTranslateDocumentMetadata.State state = 1; - * * @return The state. */ @java.lang.Override public com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.State result = - com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.State.valueOf(state_); - return result == null - ? com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.State.UNRECOGNIZED - : result; + com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.State result = com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.State.valueOf(state_); + return result == null ? com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.State.UNRECOGNIZED : result; } /** - * - * *
      * The state of the operation.
      * 
* * .google.cloud.translation.v3.BatchTranslateDocumentMetadata.State state = 1; - * * @param value The state to set. * @return This builder for chaining. */ - public Builder setState( - com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.State value) { + public Builder setState(com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.State value) { if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The state of the operation.
      * 
* * .google.cloud.translation.v3.BatchTranslateDocumentMetadata.State state = 1; - * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; } - private long totalPages_; + private long totalPages_ ; /** - * - * *
      * Total number of pages to translate in all documents so far. Documents
      * without clear page definition (such as XLSX) are not counted.
      * 
* * int64 total_pages = 2; - * * @return The totalPages. */ @java.lang.Override @@ -1217,54 +1106,45 @@ public long getTotalPages() { return totalPages_; } /** - * - * *
      * Total number of pages to translate in all documents so far. Documents
      * without clear page definition (such as XLSX) are not counted.
      * 
* * int64 total_pages = 2; - * * @param value The totalPages to set. * @return This builder for chaining. */ public Builder setTotalPages(long value) { - + totalPages_ = value; onChanged(); return this; } /** - * - * *
      * Total number of pages to translate in all documents so far. Documents
      * without clear page definition (such as XLSX) are not counted.
      * 
* * int64 total_pages = 2; - * * @return This builder for chaining. */ public Builder clearTotalPages() { - + totalPages_ = 0L; onChanged(); return this; } - private long translatedPages_; + private long translatedPages_ ; /** - * - * *
      * Number of successfully translated pages in all documents so far. Documents
      * without clear page definition (such as XLSX) are not counted.
      * 
* * int64 translated_pages = 3; - * * @return The translatedPages. */ @java.lang.Override @@ -1272,54 +1152,45 @@ public long getTranslatedPages() { return translatedPages_; } /** - * - * *
      * Number of successfully translated pages in all documents so far. Documents
      * without clear page definition (such as XLSX) are not counted.
      * 
* * int64 translated_pages = 3; - * * @param value The translatedPages to set. * @return This builder for chaining. */ public Builder setTranslatedPages(long value) { - + translatedPages_ = value; onChanged(); return this; } /** - * - * *
      * Number of successfully translated pages in all documents so far. Documents
      * without clear page definition (such as XLSX) are not counted.
      * 
* * int64 translated_pages = 3; - * * @return This builder for chaining. */ public Builder clearTranslatedPages() { - + translatedPages_ = 0L; onChanged(); return this; } - private long failedPages_; + private long failedPages_ ; /** - * - * *
      * Number of pages that failed to process in all documents so far. Documents
      * without clear page definition (such as XLSX) are not counted.
      * 
* * int64 failed_pages = 4; - * * @return The failedPages. */ @java.lang.Override @@ -1327,54 +1198,45 @@ public long getFailedPages() { return failedPages_; } /** - * - * *
      * Number of pages that failed to process in all documents so far. Documents
      * without clear page definition (such as XLSX) are not counted.
      * 
* * int64 failed_pages = 4; - * * @param value The failedPages to set. * @return This builder for chaining. */ public Builder setFailedPages(long value) { - + failedPages_ = value; onChanged(); return this; } /** - * - * *
      * Number of pages that failed to process in all documents so far. Documents
      * without clear page definition (such as XLSX) are not counted.
      * 
* * int64 failed_pages = 4; - * * @return This builder for chaining. */ public Builder clearFailedPages() { - + failedPages_ = 0L; onChanged(); return this; } - private long totalBillablePages_; + private long totalBillablePages_ ; /** - * - * *
      * Number of billable pages in documents with clear page definition (such as
      * PDF, DOCX, PPTX) so far.
      * 
* * int64 total_billable_pages = 5; - * * @return The totalBillablePages. */ @java.lang.Override @@ -1382,53 +1244,44 @@ public long getTotalBillablePages() { return totalBillablePages_; } /** - * - * *
      * Number of billable pages in documents with clear page definition (such as
      * PDF, DOCX, PPTX) so far.
      * 
* * int64 total_billable_pages = 5; - * * @param value The totalBillablePages to set. * @return This builder for chaining. */ public Builder setTotalBillablePages(long value) { - + totalBillablePages_ = value; onChanged(); return this; } /** - * - * *
      * Number of billable pages in documents with clear page definition (such as
      * PDF, DOCX, PPTX) so far.
      * 
* * int64 total_billable_pages = 5; - * * @return This builder for chaining. */ public Builder clearTotalBillablePages() { - + totalBillablePages_ = 0L; onChanged(); return this; } - private long totalCharacters_; + private long totalCharacters_ ; /** - * - * *
      * Total number of characters (Unicode codepoints) in all documents so far.
      * 
* * int64 total_characters = 6; - * * @return The totalCharacters. */ @java.lang.Override @@ -1436,52 +1289,43 @@ public long getTotalCharacters() { return totalCharacters_; } /** - * - * *
      * Total number of characters (Unicode codepoints) in all documents so far.
      * 
* * int64 total_characters = 6; - * * @param value The totalCharacters to set. * @return This builder for chaining. */ public Builder setTotalCharacters(long value) { - + totalCharacters_ = value; onChanged(); return this; } /** - * - * *
      * Total number of characters (Unicode codepoints) in all documents so far.
      * 
* * int64 total_characters = 6; - * * @return This builder for chaining. */ public Builder clearTotalCharacters() { - + totalCharacters_ = 0L; onChanged(); return this; } - private long translatedCharacters_; + private long translatedCharacters_ ; /** - * - * *
      * Number of successfully translated characters (Unicode codepoints) in all
      * documents so far.
      * 
* * int64 translated_characters = 7; - * * @return The translatedCharacters. */ @java.lang.Override @@ -1489,54 +1333,45 @@ public long getTranslatedCharacters() { return translatedCharacters_; } /** - * - * *
      * Number of successfully translated characters (Unicode codepoints) in all
      * documents so far.
      * 
* * int64 translated_characters = 7; - * * @param value The translatedCharacters to set. * @return This builder for chaining. */ public Builder setTranslatedCharacters(long value) { - + translatedCharacters_ = value; onChanged(); return this; } /** - * - * *
      * Number of successfully translated characters (Unicode codepoints) in all
      * documents so far.
      * 
* * int64 translated_characters = 7; - * * @return This builder for chaining. */ public Builder clearTranslatedCharacters() { - + translatedCharacters_ = 0L; onChanged(); return this; } - private long failedCharacters_; + private long failedCharacters_ ; /** - * - * *
      * Number of characters that have failed to process (Unicode codepoints) in
      * all documents so far.
      * 
* * int64 failed_characters = 8; - * * @return The failedCharacters. */ @java.lang.Override @@ -1544,54 +1379,45 @@ public long getFailedCharacters() { return failedCharacters_; } /** - * - * *
      * Number of characters that have failed to process (Unicode codepoints) in
      * all documents so far.
      * 
* * int64 failed_characters = 8; - * * @param value The failedCharacters to set. * @return This builder for chaining. */ public Builder setFailedCharacters(long value) { - + failedCharacters_ = value; onChanged(); return this; } /** - * - * *
      * Number of characters that have failed to process (Unicode codepoints) in
      * all documents so far.
      * 
* * int64 failed_characters = 8; - * * @return This builder for chaining. */ public Builder clearFailedCharacters() { - + failedCharacters_ = 0L; onChanged(); return this; } - private long totalBillableCharacters_; + private long totalBillableCharacters_ ; /** - * - * *
      * Number of billable characters (Unicode codepoints) in documents without
      * clear page definition (such as XLSX) so far.
      * 
* * int64 total_billable_characters = 9; - * * @return The totalBillableCharacters. */ @java.lang.Override @@ -1599,38 +1425,32 @@ public long getTotalBillableCharacters() { return totalBillableCharacters_; } /** - * - * *
      * Number of billable characters (Unicode codepoints) in documents without
      * clear page definition (such as XLSX) so far.
      * 
* * int64 total_billable_characters = 9; - * * @param value The totalBillableCharacters to set. * @return This builder for chaining. */ public Builder setTotalBillableCharacters(long value) { - + totalBillableCharacters_ = value; onChanged(); return this; } /** - * - * *
      * Number of billable characters (Unicode codepoints) in documents without
      * clear page definition (such as XLSX) so far.
      * 
* * int64 total_billable_characters = 9; - * * @return This builder for chaining. */ public Builder clearTotalBillableCharacters() { - + totalBillableCharacters_ = 0L; onChanged(); return this; @@ -1638,47 +1458,34 @@ public Builder clearTotalBillableCharacters() { private com.google.protobuf.Timestamp submitTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - submitTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> submitTimeBuilder_; /** - * - * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 10; - * * @return Whether the submitTime field is set. */ public boolean hasSubmitTime() { return submitTimeBuilder_ != null || submitTime_ != null; } /** - * - * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 10; - * * @return The submitTime. */ public com.google.protobuf.Timestamp getSubmitTime() { if (submitTimeBuilder_ == null) { - return submitTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : submitTime_; + return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } else { return submitTimeBuilder_.getMessage(); } } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -1699,15 +1506,14 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 10; */ - public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setSubmitTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (submitTimeBuilder_ == null) { submitTime_ = builderForValue.build(); onChanged(); @@ -1718,8 +1524,6 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -1730,7 +1534,7 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { if (submitTimeBuilder_ == null) { if (submitTime_ != null) { submitTime_ = - com.google.protobuf.Timestamp.newBuilder(submitTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(submitTime_).mergeFrom(value).buildPartial(); } else { submitTime_ = value; } @@ -1742,8 +1546,6 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -1762,8 +1564,6 @@ public Builder clearSubmitTime() { return this; } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -1771,13 +1571,11 @@ public Builder clearSubmitTime() { * .google.protobuf.Timestamp submit_time = 10; */ public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder() { - + onChanged(); return getSubmitTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -1788,14 +1586,11 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { if (submitTimeBuilder_ != null) { return submitTimeBuilder_.getMessageOrBuilder(); } else { - return submitTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : submitTime_; + return submitTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -1803,24 +1598,21 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { * .google.protobuf.Timestamp submit_time = 10; */ 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> getSubmitTimeFieldBuilder() { if (submitTimeBuilder_ == null) { - submitTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getSubmitTime(), getParentForChildren(), isClean()); + submitTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getSubmitTime(), + getParentForChildren(), + isClean()); submitTime_ = null; } return submitTimeBuilder_; } - @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); } @@ -1830,13 +1622,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.BatchTranslateDocumentMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.BatchTranslateDocumentMetadata) - private static final com.google.cloud.translate.v3.BatchTranslateDocumentMetadata - DEFAULT_INSTANCE; - + private static final com.google.cloud.translate.v3.BatchTranslateDocumentMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.BatchTranslateDocumentMetadata(); } @@ -1845,16 +1636,16 @@ public static com.google.cloud.translate.v3.BatchTranslateDocumentMetadata getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchTranslateDocumentMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BatchTranslateDocumentMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchTranslateDocumentMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BatchTranslateDocumentMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1869,4 +1660,6 @@ public com.google.protobuf.Parser getParserForTy public com.google.cloud.translate.v3.BatchTranslateDocumentMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentMetadataOrBuilder.java b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentMetadataOrBuilder.java similarity index 81% rename from proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentMetadataOrBuilder.java rename to owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentMetadataOrBuilder.java index eb703cf7..a2a7d1b0 100644 --- a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentMetadataOrBuilder.java +++ b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentMetadataOrBuilder.java @@ -1,191 +1,137 @@ -/* - * Copyright 2020 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/translate/v3/translation_service.proto package com.google.cloud.translate.v3; -public interface BatchTranslateDocumentMetadataOrBuilder - extends +public interface BatchTranslateDocumentMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.BatchTranslateDocumentMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The state of the operation.
    * 
* * .google.cloud.translation.v3.BatchTranslateDocumentMetadata.State state = 1; - * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * The state of the operation.
    * 
* * .google.cloud.translation.v3.BatchTranslateDocumentMetadata.State state = 1; - * * @return The state. */ com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.State getState(); /** - * - * *
    * Total number of pages to translate in all documents so far. Documents
    * without clear page definition (such as XLSX) are not counted.
    * 
* * int64 total_pages = 2; - * * @return The totalPages. */ long getTotalPages(); /** - * - * *
    * Number of successfully translated pages in all documents so far. Documents
    * without clear page definition (such as XLSX) are not counted.
    * 
* * int64 translated_pages = 3; - * * @return The translatedPages. */ long getTranslatedPages(); /** - * - * *
    * Number of pages that failed to process in all documents so far. Documents
    * without clear page definition (such as XLSX) are not counted.
    * 
* * int64 failed_pages = 4; - * * @return The failedPages. */ long getFailedPages(); /** - * - * *
    * Number of billable pages in documents with clear page definition (such as
    * PDF, DOCX, PPTX) so far.
    * 
* * int64 total_billable_pages = 5; - * * @return The totalBillablePages. */ long getTotalBillablePages(); /** - * - * *
    * Total number of characters (Unicode codepoints) in all documents so far.
    * 
* * int64 total_characters = 6; - * * @return The totalCharacters. */ long getTotalCharacters(); /** - * - * *
    * Number of successfully translated characters (Unicode codepoints) in all
    * documents so far.
    * 
* * int64 translated_characters = 7; - * * @return The translatedCharacters. */ long getTranslatedCharacters(); /** - * - * *
    * Number of characters that have failed to process (Unicode codepoints) in
    * all documents so far.
    * 
* * int64 failed_characters = 8; - * * @return The failedCharacters. */ long getFailedCharacters(); /** - * - * *
    * Number of billable characters (Unicode codepoints) in documents without
    * clear page definition (such as XLSX) so far.
    * 
* * int64 total_billable_characters = 9; - * * @return The totalBillableCharacters. */ long getTotalBillableCharacters(); /** - * - * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 10; - * * @return Whether the submitTime field is set. */ boolean hasSubmitTime(); /** - * - * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 10; - * * @return The submitTime. */ com.google.protobuf.Timestamp getSubmitTime(); /** - * - * *
    * Time when the operation was submitted.
    * 
diff --git a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentRequest.java b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentRequest.java similarity index 65% rename from proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentRequest.java rename to owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentRequest.java index 3b92ddf5..113a744f 100644 --- a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentRequest.java +++ b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 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/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** - * - * *
  * The BatchTranslateDocument request.
  * 
* * Protobuf type {@code google.cloud.translation.v3.BatchTranslateDocumentRequest} */ -public final class BatchTranslateDocumentRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BatchTranslateDocumentRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.BatchTranslateDocumentRequest) BatchTranslateDocumentRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BatchTranslateDocumentRequest.newBuilder() to construct. private BatchTranslateDocumentRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BatchTranslateDocumentRequest() { parent_ = ""; sourceLanguageCode_ = ""; @@ -46,15 +28,16 @@ private BatchTranslateDocumentRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BatchTranslateDocumentRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private BatchTranslateDocumentRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -74,121 +57,102 @@ private BatchTranslateDocumentRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - sourceLanguageCode_ = s; - break; + sourceLanguageCode_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + targetLanguageCodes_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - targetLanguageCodes_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - targetLanguageCodes_.add(s); - break; + targetLanguageCodes_.add(s); + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + inputConfigs_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; } - case 34: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - inputConfigs_ = - new java.util.ArrayList< - com.google.cloud.translate.v3.BatchDocumentInputConfig>(); - mutable_bitField0_ |= 0x00000002; - } - inputConfigs_.add( - input.readMessage( - com.google.cloud.translate.v3.BatchDocumentInputConfig.parser(), - extensionRegistry)); - break; + inputConfigs_.add( + input.readMessage(com.google.cloud.translate.v3.BatchDocumentInputConfig.parser(), extensionRegistry)); + break; + } + case 42: { + com.google.cloud.translate.v3.BatchDocumentOutputConfig.Builder subBuilder = null; + if (outputConfig_ != null) { + subBuilder = outputConfig_.toBuilder(); } - case 42: - { - com.google.cloud.translate.v3.BatchDocumentOutputConfig.Builder subBuilder = null; - if (outputConfig_ != null) { - subBuilder = outputConfig_.toBuilder(); - } - outputConfig_ = - input.readMessage( - com.google.cloud.translate.v3.BatchDocumentOutputConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(outputConfig_); - outputConfig_ = subBuilder.buildPartial(); - } - - break; + outputConfig_ = input.readMessage(com.google.cloud.translate.v3.BatchDocumentOutputConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(outputConfig_); + outputConfig_ = subBuilder.buildPartial(); } - case 50: - { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - models_ = - com.google.protobuf.MapField.newMapField(ModelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000004; - } - com.google.protobuf.MapEntry models__ = - input.readMessage( - ModelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - models_.getMutableMap().put(models__.getKey(), models__.getValue()); - break; + + break; + } + case 50: { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + models_ = com.google.protobuf.MapField.newMapField( + ModelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000004; } - case 58: - { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - glossaries_ = - com.google.protobuf.MapField.newMapField( - GlossariesDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000008; - } - com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig> - glossaries__ = - input.readMessage( - GlossariesDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - glossaries_.getMutableMap().put(glossaries__.getKey(), glossaries__.getValue()); - break; + com.google.protobuf.MapEntry + models__ = input.readMessage( + ModelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + models_.getMutableMap().put( + models__.getKey(), models__.getValue()); + break; + } + case 58: { + if (!((mutable_bitField0_ & 0x00000008) != 0)) { + glossaries_ = com.google.protobuf.MapField.newMapField( + GlossariesDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000008; } - case 66: - { - if (!((mutable_bitField0_ & 0x00000010) != 0)) { - formatConversions_ = - com.google.protobuf.MapField.newMapField( - FormatConversionsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000010; - } - com.google.protobuf.MapEntry formatConversions__ = - input.readMessage( - FormatConversionsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - formatConversions_ - .getMutableMap() - .put(formatConversions__.getKey(), formatConversions__.getValue()); - break; + com.google.protobuf.MapEntry + glossaries__ = input.readMessage( + GlossariesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + glossaries_.getMutableMap().put( + glossaries__.getKey(), glossaries__.getValue()); + break; + } + case 66: { + if (!((mutable_bitField0_ & 0x00000010) != 0)) { + formatConversions_ = com.google.protobuf.MapField.newMapField( + FormatConversionsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000010; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + com.google.protobuf.MapEntry + formatConversions__ = input.readMessage( + FormatConversionsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + formatConversions_.getMutableMap().put( + formatConversions__.getKey(), formatConversions__.getValue()); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { targetLanguageCodes_ = targetLanguageCodes_.getUnmodifiableView(); @@ -200,15 +164,15 @@ private BatchTranslateDocumentRequest( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_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 internalGetModels(); @@ -217,25 +181,21 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { case 8: return internalGetFormatConversions(); 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.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.BatchTranslateDocumentRequest.class, - com.google.cloud.translate.v3.BatchTranslateDocumentRequest.Builder.class); + com.google.cloud.translate.v3.BatchTranslateDocumentRequest.class, com.google.cloud.translate.v3.BatchTranslateDocumentRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. Location to make a regional call.
    * Format: `projects/{project-number-or-id}/locations/{location-id}`.
@@ -245,10 +205,7 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
    * error is returned.
    * 
* - * - * 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 @@ -257,15 +214,14 @@ 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. Location to make a regional call.
    * Format: `projects/{project-number-or-id}/locations/{location-id}`.
@@ -275,18 +231,17 @@ public java.lang.String getParent() {
    * error is returned.
    * 
* - * - * 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 { @@ -297,8 +252,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int SOURCE_LANGUAGE_CODE_FIELD_NUMBER = 2; private volatile java.lang.Object sourceLanguageCode_; /** - * - * *
    * Required. The BCP-47 language code of the input document if known, for
    * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -306,7 +259,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The sourceLanguageCode. */ @java.lang.Override @@ -315,15 +267,14 @@ public java.lang.String getSourceLanguageCode() { 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(); sourceLanguageCode_ = s; return s; } } /** - * - * *
    * Required. The BCP-47 language code of the input document if known, for
    * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -331,15 +282,16 @@ public java.lang.String getSourceLanguageCode() {
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for sourceLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { + public com.google.protobuf.ByteString + getSourceLanguageCodeBytes() { java.lang.Object ref = sourceLanguageCode_; 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); sourceLanguageCode_ = b; return b; } else { @@ -350,48 +302,37 @@ public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { public static final int TARGET_LANGUAGE_CODES_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList targetLanguageCodes_; /** - * - * *
    * Required. The BCP-47 language code to use for translation of the input
    * document. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @return A list containing the targetLanguageCodes. */ - public com.google.protobuf.ProtocolStringList getTargetLanguageCodesList() { + public com.google.protobuf.ProtocolStringList + getTargetLanguageCodesList() { return targetLanguageCodes_; } /** - * - * *
    * Required. The BCP-47 language code to use for translation of the input
    * document. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The count of targetLanguageCodes. */ public int getTargetLanguageCodesCount() { return targetLanguageCodes_.size(); } /** - * - * *
    * Required. The BCP-47 language code to use for translation of the input
    * document. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param index The index of the element to return. * @return The targetLanguageCodes at the given index. */ @@ -399,28 +340,23 @@ public java.lang.String getTargetLanguageCodes(int index) { return targetLanguageCodes_.get(index); } /** - * - * *
    * Required. The BCP-47 language code to use for translation of the input
    * document. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param index The index of the value to return. * @return The bytes of the targetLanguageCodes at the given index. */ - public com.google.protobuf.ByteString getTargetLanguageCodesBytes(int index) { + public com.google.protobuf.ByteString + getTargetLanguageCodesBytes(int index) { return targetLanguageCodes_.getByteString(index); } public static final int INPUT_CONFIGS_FIELD_NUMBER = 4; private java.util.List inputConfigs_; /** - * - * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -428,18 +364,13 @@ public com.google.protobuf.ByteString getTargetLanguageCodesBytes(int index) {
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public java.util.List - getInputConfigsList() { + public java.util.List getInputConfigsList() { return inputConfigs_; } /** - * - * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -447,18 +378,14 @@ public com.google.protobuf.ByteString getTargetLanguageCodesBytes(int index) {
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public java.util.List + public java.util.List getInputConfigsOrBuilderList() { return inputConfigs_; } /** - * - * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -466,17 +393,13 @@ public com.google.protobuf.ByteString getTargetLanguageCodesBytes(int index) {
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public int getInputConfigsCount() { return inputConfigs_.size(); } /** - * - * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -484,17 +407,13 @@ public int getInputConfigsCount() {
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.translate.v3.BatchDocumentInputConfig getInputConfigs(int index) { return inputConfigs_.get(index); } /** - * - * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -502,9 +421,7 @@ public com.google.cloud.translate.v3.BatchDocumentInputConfig getInputConfigs(in
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.translate.v3.BatchDocumentInputConfigOrBuilder getInputConfigsOrBuilder( @@ -515,18 +432,13 @@ public com.google.cloud.translate.v3.BatchDocumentInputConfigOrBuilder getInputC public static final int OUTPUT_CONFIG_FIELD_NUMBER = 5; private com.google.cloud.translate.v3.BatchDocumentOutputConfig outputConfig_; /** - * - * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * - * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the outputConfig field is set. */ @java.lang.Override @@ -534,63 +446,52 @@ public boolean hasOutputConfig() { return outputConfig_ != null; } /** - * - * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * - * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; * @return The outputConfig. */ @java.lang.Override public com.google.cloud.translate.v3.BatchDocumentOutputConfig getOutputConfig() { - return outputConfig_ == null - ? com.google.cloud.translate.v3.BatchDocumentOutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? com.google.cloud.translate.v3.BatchDocumentOutputConfig.getDefaultInstance() : outputConfig_; } /** - * - * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * - * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.translate.v3.BatchDocumentOutputConfigOrBuilder - getOutputConfigOrBuilder() { + public com.google.cloud.translate.v3.BatchDocumentOutputConfigOrBuilder getOutputConfigOrBuilder() { return getOutputConfig(); } public static final int MODELS_FIELD_NUMBER = 6; - private static final class ModelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_ModelsEntry_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.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_ModelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - - private com.google.protobuf.MapField models_; - - private com.google.protobuf.MapField internalGetModels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> models_; + private com.google.protobuf.MapField + internalGetModels() { if (models_ == null) { - return com.google.protobuf.MapField.emptyMapField(ModelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + ModelsDefaultEntryHolder.defaultEntry); } return models_; } @@ -599,8 +500,6 @@ public int getModelsCount() { return internalGetModels().getMap().size(); } /** - * - * *
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is the model name. Value can be a built-in general model,
@@ -616,22 +515,22 @@ public int getModelsCount() {
    *
    * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
+
   @java.lang.Override
-  public boolean containsModels(java.lang.String key) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
+  public boolean containsModels(
+      java.lang.String key) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
     return internalGetModels().getMap().containsKey(key);
   }
-  /** Use {@link #getModelsMap()} instead. */
+  /**
+   * Use {@link #getModelsMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getModels() {
     return getModelsMap();
   }
   /**
-   *
-   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is the model name. Value can be a built-in general model,
@@ -648,12 +547,11 @@ public java.util.Map getModels() {
    * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
+
   public java.util.Map getModelsMap() {
     return internalGetModels().getMap();
   }
   /**
-   *
-   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is the model name. Value can be a built-in general model,
@@ -670,16 +568,16 @@ public java.util.Map getModelsMap() {
    * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public java.lang.String getModelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
-    java.util.Map map = internalGetModels().getMap();
+
+  public java.lang.String getModelsOrDefault(
+      java.lang.String key,
+      java.lang.String defaultValue) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
+    java.util.Map map =
+        internalGetModels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is the model name. Value can be a built-in general model,
@@ -696,11 +594,12 @@ public java.lang.String getModelsOrDefault(java.lang.String key, java.lang.Strin
    * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public java.lang.String getModelsOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
-    java.util.Map map = internalGetModels().getMap();
+
+  public java.lang.String getModelsOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
+    java.util.Map map =
+        internalGetModels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -708,32 +607,24 @@ public java.lang.String getModelsOrThrow(java.lang.String key) {
   }
 
   public static final int GLOSSARIES_FIELD_NUMBER = 7;
-
   private static final class GlossariesDefaultEntryHolder {
     static final com.google.protobuf.MapEntry<
-            java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig>
-        defaultEntry =
+        java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig> defaultEntry =
             com.google.protobuf.MapEntry
-                .
-                    newDefaultInstance(
-                        com.google.cloud.translate.v3.TranslationServiceProto
-                            .internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_GlossariesEntry_descriptor,
-                        com.google.protobuf.WireFormat.FieldType.STRING,
-                        "",
-                        com.google.protobuf.WireFormat.FieldType.MESSAGE,
-                        com.google.cloud.translate.v3.TranslateTextGlossaryConfig
-                            .getDefaultInstance());
+            .newDefaultInstance(
+                com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_GlossariesEntry_descriptor, 
+                com.google.protobuf.WireFormat.FieldType.STRING,
+                "",
+                com.google.protobuf.WireFormat.FieldType.MESSAGE,
+                com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance());
   }
-
-  private com.google.protobuf.MapField<
-          java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig>
-      glossaries_;
-
   private com.google.protobuf.MapField<
-          java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig>
-      internalGetGlossaries() {
+      java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig> glossaries_;
+  private com.google.protobuf.MapField
+  internalGetGlossaries() {
     if (glossaries_ == null) {
-      return com.google.protobuf.MapField.emptyMapField(GlossariesDefaultEntryHolder.defaultEntry);
+      return com.google.protobuf.MapField.emptyMapField(
+          GlossariesDefaultEntryHolder.defaultEntry);
     }
     return glossaries_;
   }
@@ -742,85 +633,68 @@ public int getGlossariesCount() {
     return internalGetGlossaries().getMap().size();
   }
   /**
-   *
-   *
    * 
    * Optional. Glossaries to be applied. It's keyed by target language code.
    * 
* - * - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ + @java.lang.Override - public boolean containsGlossaries(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } + public boolean containsGlossaries( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } return internalGetGlossaries().getMap().containsKey(key); } - /** Use {@link #getGlossariesMap()} instead. */ + /** + * Use {@link #getGlossariesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated - public java.util.Map - getGlossaries() { + public java.util.Map getGlossaries() { return getGlossariesMap(); } /** - * - * *
    * Optional. Glossaries to be applied. It's keyed by target language code.
    * 
* - * - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.Map - getGlossariesMap() { + + public java.util.Map getGlossariesMap() { return internalGetGlossaries().getMap(); } /** - * - * *
    * Optional. Glossaries to be applied. It's keyed by target language code.
    * 
* - * - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOrDefault( java.lang.String key, com.google.cloud.translate.v3.TranslateTextGlossaryConfig defaultValue) { - if (key == null) { - throw new java.lang.NullPointerException(); - } + if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetGlossaries().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Optional. Glossaries to be applied. It's keyed by target language code.
    * 
* - * - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOrThrow( java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } + if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetGlossaries().getMap(); if (!map.containsKey(key)) { @@ -830,22 +704,21 @@ public com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOr } public static final int FORMAT_CONVERSIONS_FIELD_NUMBER = 8; - private static final class FormatConversionsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_FormatConversionsEntry_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.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_FormatConversionsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - - private com.google.protobuf.MapField formatConversions_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> formatConversions_; private com.google.protobuf.MapField - internalGetFormatConversions() { + internalGetFormatConversions() { if (formatConversions_ == null) { return com.google.protobuf.MapField.emptyMapField( FormatConversionsDefaultEntryHolder.defaultEntry); @@ -857,8 +730,6 @@ public int getFormatConversionsCount() { return internalGetFormatConversions().getMap().size(); } /** - * - * *
    * Optional. File format conversion map to be applied to all input files.
    * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -870,26 +741,24 @@ public int getFormatConversionsCount() {
    * original file.
    * 
* - * - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; */ + @java.lang.Override - public boolean containsFormatConversions(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } + public boolean containsFormatConversions( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } return internalGetFormatConversions().getMap().containsKey(key); } - /** Use {@link #getFormatConversionsMap()} instead. */ + /** + * Use {@link #getFormatConversionsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getFormatConversions() { return getFormatConversionsMap(); } /** - * - * *
    * Optional. File format conversion map to be applied to all input files.
    * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -901,17 +770,14 @@ public java.util.Map getFormatConversions()
    * original file.
    * 
* - * - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.util.Map getFormatConversionsMap() { return internalGetFormatConversions().getMap(); } /** - * - * *
    * Optional. File format conversion map to be applied to all input files.
    * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -923,22 +789,19 @@ public java.util.Map getFormatConversionsMap
    * original file.
    * 
* - * - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.lang.String getFormatConversionsOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetFormatConversions().getMap(); + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetFormatConversions().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Optional. File format conversion map to be applied to all input files.
    * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -950,16 +813,15 @@ public java.lang.String getFormatConversionsOrDefault(
    * original file.
    * 
* - * - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getFormatConversionsOrThrow(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetFormatConversions().getMap(); + + public java.lang.String getFormatConversionsOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetFormatConversions().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -967,7 +829,6 @@ public java.lang.String getFormatConversionsOrThrow(java.lang.String key) { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -979,11 +840,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + 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_); } - if (!getSourceLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceLanguageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, sourceLanguageCode_); } for (int i = 0; i < targetLanguageCodes_.size(); i++) { @@ -995,11 +857,20 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (outputConfig_ != null) { output.writeMessage(5, getOutputConfig()); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetModels(), ModelsDefaultEntryHolder.defaultEntry, 6); - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetGlossaries(), GlossariesDefaultEntryHolder.defaultEntry, 7); - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetModels(), + ModelsDefaultEntryHolder.defaultEntry, + 6); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetGlossaries(), + GlossariesDefaultEntryHolder.defaultEntry, + 7); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( output, internalGetFormatConversions(), FormatConversionsDefaultEntryHolder.defaultEntry, @@ -1013,10 +884,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } - if (!getSourceLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceLanguageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, sourceLanguageCode_); } { @@ -1028,43 +899,42 @@ public int getSerializedSize() { size += 1 * getTargetLanguageCodesList().size(); } for (int i = 0; i < inputConfigs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, inputConfigs_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, inputConfigs_.get(i)); } if (outputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getOutputConfig()); - } - for (java.util.Map.Entry entry : - internalGetModels().getMap().entrySet()) { - com.google.protobuf.MapEntry models__ = - ModelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, models__); - } - for (java.util.Map.Entry< - java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig> - entry : internalGetGlossaries().getMap().entrySet()) { - com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig> - glossaries__ = - GlossariesDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, glossaries__); - } - for (java.util.Map.Entry entry : - internalGetFormatConversions().getMap().entrySet()) { - com.google.protobuf.MapEntry formatConversions__ = - FormatConversionsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, formatConversions__); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getOutputConfig()); + } + for (java.util.Map.Entry entry + : internalGetModels().getMap().entrySet()) { + com.google.protobuf.MapEntry + models__ = ModelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, models__); + } + for (java.util.Map.Entry entry + : internalGetGlossaries().getMap().entrySet()) { + com.google.protobuf.MapEntry + glossaries__ = GlossariesDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, glossaries__); + } + for (java.util.Map.Entry entry + : internalGetFormatConversions().getMap().entrySet()) { + com.google.protobuf.MapEntry + formatConversions__ = FormatConversionsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, formatConversions__); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1074,25 +944,32 @@ 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.cloud.translate.v3.BatchTranslateDocumentRequest)) { return super.equals(obj); } - com.google.cloud.translate.v3.BatchTranslateDocumentRequest other = - (com.google.cloud.translate.v3.BatchTranslateDocumentRequest) obj; + com.google.cloud.translate.v3.BatchTranslateDocumentRequest other = (com.google.cloud.translate.v3.BatchTranslateDocumentRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getSourceLanguageCode().equals(other.getSourceLanguageCode())) return false; - if (!getTargetLanguageCodesList().equals(other.getTargetLanguageCodesList())) return false; - if (!getInputConfigsList().equals(other.getInputConfigsList())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getSourceLanguageCode() + .equals(other.getSourceLanguageCode())) return false; + if (!getTargetLanguageCodesList() + .equals(other.getTargetLanguageCodesList())) return false; + if (!getInputConfigsList() + .equals(other.getInputConfigsList())) return false; if (hasOutputConfig() != other.hasOutputConfig()) return false; if (hasOutputConfig()) { - if (!getOutputConfig().equals(other.getOutputConfig())) return false; - } - if (!internalGetModels().equals(other.internalGetModels())) return false; - if (!internalGetGlossaries().equals(other.internalGetGlossaries())) return false; - if (!internalGetFormatConversions().equals(other.internalGetFormatConversions())) return false; + if (!getOutputConfig() + .equals(other.getOutputConfig())) return false; + } + if (!internalGetModels().equals( + other.internalGetModels())) return false; + if (!internalGetGlossaries().equals( + other.internalGetGlossaries())) return false; + if (!internalGetFormatConversions().equals( + other.internalGetFormatConversions())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1138,121 +1015,114 @@ public int hashCode() { } public static com.google.cloud.translate.v3.BatchTranslateDocumentRequest 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.cloud.translate.v3.BatchTranslateDocumentRequest 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.cloud.translate.v3.BatchTranslateDocumentRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.BatchTranslateDocumentRequest 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.cloud.translate.v3.BatchTranslateDocumentRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.BatchTranslateDocumentRequest 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.cloud.translate.v3.BatchTranslateDocumentRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.BatchTranslateDocumentRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.BatchTranslateDocumentRequest 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.cloud.translate.v3.BatchTranslateDocumentRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.BatchTranslateDocumentRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.BatchTranslateDocumentRequest 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.cloud.translate.v3.BatchTranslateDocumentRequest 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.cloud.translate.v3.BatchTranslateDocumentRequest 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.cloud.translate.v3.BatchTranslateDocumentRequest prototype) { + public static Builder newBuilder(com.google.cloud.translate.v3.BatchTranslateDocumentRequest 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 BatchTranslateDocument request.
    * 
* * Protobuf type {@code google.cloud.translation.v3.BatchTranslateDocumentRequest} */ - 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.translation.v3.BatchTranslateDocumentRequest) com.google.cloud.translate.v3.BatchTranslateDocumentRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 6: return internalGetModels(); @@ -1261,12 +1131,13 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { case 8: return internalGetFormatConversions(); 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 internalGetMutableModels(); @@ -1275,18 +1146,16 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) { case 8: return internalGetMutableFormatConversions(); 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.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.BatchTranslateDocumentRequest.class, - com.google.cloud.translate.v3.BatchTranslateDocumentRequest.Builder.class); + com.google.cloud.translate.v3.BatchTranslateDocumentRequest.class, com.google.cloud.translate.v3.BatchTranslateDocumentRequest.Builder.class); } // Construct using com.google.cloud.translate.v3.BatchTranslateDocumentRequest.newBuilder() @@ -1294,17 +1163,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getInputConfigsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1333,9 +1202,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_descriptor; } @java.lang.Override @@ -1354,8 +1223,7 @@ public com.google.cloud.translate.v3.BatchTranslateDocumentRequest build() { @java.lang.Override public com.google.cloud.translate.v3.BatchTranslateDocumentRequest buildPartial() { - com.google.cloud.translate.v3.BatchTranslateDocumentRequest result = - new com.google.cloud.translate.v3.BatchTranslateDocumentRequest(this); + com.google.cloud.translate.v3.BatchTranslateDocumentRequest result = new com.google.cloud.translate.v3.BatchTranslateDocumentRequest(this); int from_bitField0_ = bitField0_; result.parent_ = parent_; result.sourceLanguageCode_ = sourceLanguageCode_; @@ -1392,39 +1260,38 @@ public com.google.cloud.translate.v3.BatchTranslateDocumentRequest 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.cloud.translate.v3.BatchTranslateDocumentRequest) { - return mergeFrom((com.google.cloud.translate.v3.BatchTranslateDocumentRequest) other); + return mergeFrom((com.google.cloud.translate.v3.BatchTranslateDocumentRequest)other); } else { super.mergeFrom(other); return this; @@ -1432,8 +1299,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.BatchTranslateDocumentRequest other) { - if (other == com.google.cloud.translate.v3.BatchTranslateDocumentRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3.BatchTranslateDocumentRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -1470,10 +1336,9 @@ public Builder mergeFrom(com.google.cloud.translate.v3.BatchTranslateDocumentReq inputConfigsBuilder_ = null; inputConfigs_ = other.inputConfigs_; bitField0_ = (bitField0_ & ~0x00000002); - inputConfigsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getInputConfigsFieldBuilder() - : null; + inputConfigsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getInputConfigsFieldBuilder() : null; } else { inputConfigsBuilder_.addAllMessages(other.inputConfigs_); } @@ -1482,9 +1347,12 @@ public Builder mergeFrom(com.google.cloud.translate.v3.BatchTranslateDocumentReq if (other.hasOutputConfig()) { mergeOutputConfig(other.getOutputConfig()); } - internalGetMutableModels().mergeFrom(other.internalGetModels()); - internalGetMutableGlossaries().mergeFrom(other.internalGetGlossaries()); - internalGetMutableFormatConversions().mergeFrom(other.internalGetFormatConversions()); + internalGetMutableModels().mergeFrom( + other.internalGetModels()); + internalGetMutableGlossaries().mergeFrom( + other.internalGetGlossaries()); + internalGetMutableFormatConversions().mergeFrom( + other.internalGetFormatConversions()); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -1504,8 +1372,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.translate.v3.BatchTranslateDocumentRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.translate.v3.BatchTranslateDocumentRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1514,13 +1381,10 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Location to make a regional call.
      * Format: `projects/{project-number-or-id}/locations/{location-id}`.
@@ -1530,16 +1394,14 @@ public Builder mergeFrom(
      * error is returned.
      * 
* - * - * 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; @@ -1548,8 +1410,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Location to make a regional call.
      * Format: `projects/{project-number-or-id}/locations/{location-id}`.
@@ -1559,17 +1419,16 @@ public java.lang.String getParent() {
      * error is returned.
      * 
* - * - * 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 { @@ -1577,8 +1436,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Location to make a regional call.
      * Format: `projects/{project-number-or-id}/locations/{location-id}`.
@@ -1588,25 +1445,21 @@ public com.google.protobuf.ByteString getParentBytes() {
      * error is returned.
      * 
* - * - * 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) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. Location to make a regional call.
      * Format: `projects/{project-number-or-id}/locations/{location-id}`.
@@ -1616,21 +1469,16 @@ public Builder setParent(java.lang.String value) {
      * error is returned.
      * 
* - * - * 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() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. Location to make a regional call.
      * Format: `projects/{project-number-or-id}/locations/{location-id}`.
@@ -1640,19 +1488,17 @@ public Builder clearParent() {
      * error is returned.
      * 
* - * - * 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) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -1660,8 +1506,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object sourceLanguageCode_ = ""; /** - * - * *
      * Required. The BCP-47 language code of the input document if known, for
      * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -1669,13 +1513,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The sourceLanguageCode. */ public java.lang.String getSourceLanguageCode() { java.lang.Object ref = sourceLanguageCode_; 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(); sourceLanguageCode_ = s; return s; @@ -1684,8 +1528,6 @@ public java.lang.String getSourceLanguageCode() { } } /** - * - * *
      * Required. The BCP-47 language code of the input document if known, for
      * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -1693,14 +1535,15 @@ public java.lang.String getSourceLanguageCode() {
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for sourceLanguageCode. */ - public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { + public com.google.protobuf.ByteString + getSourceLanguageCodeBytes() { java.lang.Object ref = sourceLanguageCode_; 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); sourceLanguageCode_ = b; return b; } else { @@ -1708,8 +1551,6 @@ public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { } } /** - * - * *
      * Required. The BCP-47 language code of the input document if known, for
      * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -1717,22 +1558,20 @@ public com.google.protobuf.ByteString getSourceLanguageCodeBytes() {
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCode(java.lang.String value) { + public Builder setSourceLanguageCode( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + sourceLanguageCode_ = value; onChanged(); return this; } /** - * - * *
      * Required. The BCP-47 language code of the input document if known, for
      * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -1740,18 +1579,15 @@ public Builder setSourceLanguageCode(java.lang.String value) {
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearSourceLanguageCode() { - + sourceLanguageCode_ = getDefaultInstance().getSourceLanguageCode(); onChanged(); return this; } /** - * - * *
      * Required. The BCP-47 language code of the input document if known, for
      * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -1759,73 +1595,60 @@ public Builder clearSourceLanguageCode() {
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCodeBytes(com.google.protobuf.ByteString value) { + public Builder setSourceLanguageCodeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceLanguageCode_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList targetLanguageCodes_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList targetLanguageCodes_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureTargetLanguageCodesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { targetLanguageCodes_ = new com.google.protobuf.LazyStringArrayList(targetLanguageCodes_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * Required. The BCP-47 language code to use for translation of the input
      * document. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @return A list containing the targetLanguageCodes. */ - public com.google.protobuf.ProtocolStringList getTargetLanguageCodesList() { + public com.google.protobuf.ProtocolStringList + getTargetLanguageCodesList() { return targetLanguageCodes_.getUnmodifiableView(); } /** - * - * *
      * Required. The BCP-47 language code to use for translation of the input
      * document. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The count of targetLanguageCodes. */ public int getTargetLanguageCodesCount() { return targetLanguageCodes_.size(); } /** - * - * *
      * Required. The BCP-47 language code to use for translation of the input
      * document. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param index The index of the element to return. * @return The targetLanguageCodes at the given index. */ @@ -1833,100 +1656,85 @@ public java.lang.String getTargetLanguageCodes(int index) { return targetLanguageCodes_.get(index); } /** - * - * *
      * Required. The BCP-47 language code to use for translation of the input
      * document. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param index The index of the value to return. * @return The bytes of the targetLanguageCodes at the given index. */ - public com.google.protobuf.ByteString getTargetLanguageCodesBytes(int index) { + public com.google.protobuf.ByteString + getTargetLanguageCodesBytes(int index) { return targetLanguageCodes_.getByteString(index); } /** - * - * *
      * Required. The BCP-47 language code to use for translation of the input
      * document. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param index The index to set the value at. * @param value The targetLanguageCodes to set. * @return This builder for chaining. */ - public Builder setTargetLanguageCodes(int index, java.lang.String value) { + public Builder setTargetLanguageCodes( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureTargetLanguageCodesIsMutable(); + throw new NullPointerException(); + } + ensureTargetLanguageCodesIsMutable(); targetLanguageCodes_.set(index, value); onChanged(); return this; } /** - * - * *
      * Required. The BCP-47 language code to use for translation of the input
      * document. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param value The targetLanguageCodes to add. * @return This builder for chaining. */ - public Builder addTargetLanguageCodes(java.lang.String value) { + public Builder addTargetLanguageCodes( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureTargetLanguageCodesIsMutable(); + throw new NullPointerException(); + } + ensureTargetLanguageCodesIsMutable(); targetLanguageCodes_.add(value); onChanged(); return this; } /** - * - * *
      * Required. The BCP-47 language code to use for translation of the input
      * document. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param values The targetLanguageCodes to add. * @return This builder for chaining. */ - public Builder addAllTargetLanguageCodes(java.lang.Iterable values) { + public Builder addAllTargetLanguageCodes( + java.lang.Iterable values) { ensureTargetLanguageCodesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, targetLanguageCodes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, targetLanguageCodes_); onChanged(); return this; } /** - * - * *
      * Required. The BCP-47 language code to use for translation of the input
      * document. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @return This builder for chaining. */ public Builder clearTargetLanguageCodes() { @@ -1936,24 +1744,21 @@ public Builder clearTargetLanguageCodes() { return this; } /** - * - * *
      * Required. The BCP-47 language code to use for translation of the input
      * document. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param value The bytes of the targetLanguageCodes to add. * @return This builder for chaining. */ - public Builder addTargetLanguageCodesBytes(com.google.protobuf.ByteString value) { + public Builder addTargetLanguageCodesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureTargetLanguageCodesIsMutable(); targetLanguageCodes_.add(value); onChanged(); @@ -1961,26 +1766,18 @@ public Builder addTargetLanguageCodesBytes(com.google.protobuf.ByteString value) } private java.util.List inputConfigs_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureInputConfigsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - inputConfigs_ = - new java.util.ArrayList( - inputConfigs_); + inputConfigs_ = new java.util.ArrayList(inputConfigs_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.translate.v3.BatchDocumentInputConfig, - com.google.cloud.translate.v3.BatchDocumentInputConfig.Builder, - com.google.cloud.translate.v3.BatchDocumentInputConfigOrBuilder> - inputConfigsBuilder_; + com.google.cloud.translate.v3.BatchDocumentInputConfig, com.google.cloud.translate.v3.BatchDocumentInputConfig.Builder, com.google.cloud.translate.v3.BatchDocumentInputConfigOrBuilder> inputConfigsBuilder_; /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -1988,12 +1785,9 @@ private void ensureInputConfigsIsMutable() {
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List - getInputConfigsList() { + public java.util.List getInputConfigsList() { if (inputConfigsBuilder_ == null) { return java.util.Collections.unmodifiableList(inputConfigs_); } else { @@ -2001,8 +1795,6 @@ private void ensureInputConfigsIsMutable() { } } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2010,9 +1802,7 @@ private void ensureInputConfigsIsMutable() {
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ public int getInputConfigsCount() { if (inputConfigsBuilder_ == null) { @@ -2022,8 +1812,6 @@ public int getInputConfigsCount() { } } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2031,9 +1819,7 @@ public int getInputConfigsCount() {
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.translate.v3.BatchDocumentInputConfig getInputConfigs(int index) { if (inputConfigsBuilder_ == null) { @@ -2043,8 +1829,6 @@ public com.google.cloud.translate.v3.BatchDocumentInputConfig getInputConfigs(in } } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2052,9 +1836,7 @@ public com.google.cloud.translate.v3.BatchDocumentInputConfig getInputConfigs(in
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setInputConfigs( int index, com.google.cloud.translate.v3.BatchDocumentInputConfig value) { @@ -2071,8 +1853,6 @@ public Builder setInputConfigs( return this; } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2080,9 +1860,7 @@ public Builder setInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setInputConfigs( int index, com.google.cloud.translate.v3.BatchDocumentInputConfig.Builder builderForValue) { @@ -2096,8 +1874,6 @@ public Builder setInputConfigs( return this; } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2105,9 +1881,7 @@ public Builder setInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addInputConfigs(com.google.cloud.translate.v3.BatchDocumentInputConfig value) { if (inputConfigsBuilder_ == null) { @@ -2123,8 +1897,6 @@ public Builder addInputConfigs(com.google.cloud.translate.v3.BatchDocumentInputC return this; } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2132,9 +1904,7 @@ public Builder addInputConfigs(com.google.cloud.translate.v3.BatchDocumentInputC
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addInputConfigs( int index, com.google.cloud.translate.v3.BatchDocumentInputConfig value) { @@ -2151,8 +1921,6 @@ public Builder addInputConfigs( return this; } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2160,9 +1928,7 @@ public Builder addInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addInputConfigs( com.google.cloud.translate.v3.BatchDocumentInputConfig.Builder builderForValue) { @@ -2176,8 +1942,6 @@ public Builder addInputConfigs( return this; } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2185,9 +1949,7 @@ public Builder addInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addInputConfigs( int index, com.google.cloud.translate.v3.BatchDocumentInputConfig.Builder builderForValue) { @@ -2201,8 +1963,6 @@ public Builder addInputConfigs( return this; } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2210,16 +1970,14 @@ public Builder addInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addAllInputConfigs( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (inputConfigsBuilder_ == null) { ensureInputConfigsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, inputConfigs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, inputConfigs_); onChanged(); } else { inputConfigsBuilder_.addAllMessages(values); @@ -2227,8 +1985,6 @@ public Builder addAllInputConfigs( return this; } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2236,9 +1992,7 @@ public Builder addAllInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearInputConfigs() { if (inputConfigsBuilder_ == null) { @@ -2251,8 +2005,6 @@ public Builder clearInputConfigs() { return this; } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2260,9 +2012,7 @@ public Builder clearInputConfigs() {
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder removeInputConfigs(int index) { if (inputConfigsBuilder_ == null) { @@ -2275,8 +2025,6 @@ public Builder removeInputConfigs(int index) { return this; } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2284,17 +2032,13 @@ public Builder removeInputConfigs(int index) {
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.translate.v3.BatchDocumentInputConfig.Builder getInputConfigsBuilder( int index) { return getInputConfigsFieldBuilder().getBuilder(index); } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2302,21 +2046,16 @@ public com.google.cloud.translate.v3.BatchDocumentInputConfig.Builder getInputCo
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.translate.v3.BatchDocumentInputConfigOrBuilder getInputConfigsOrBuilder( int index) { if (inputConfigsBuilder_ == null) { - return inputConfigs_.get(index); - } else { + return inputConfigs_.get(index); } else { return inputConfigsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2324,12 +2063,10 @@ public com.google.cloud.translate.v3.BatchDocumentInputConfigOrBuilder getInputC
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List - getInputConfigsOrBuilderList() { + public java.util.List + getInputConfigsOrBuilderList() { if (inputConfigsBuilder_ != null) { return inputConfigsBuilder_.getMessageOrBuilderList(); } else { @@ -2337,8 +2074,6 @@ public com.google.cloud.translate.v3.BatchDocumentInputConfigOrBuilder getInputC } } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2346,17 +2081,13 @@ public com.google.cloud.translate.v3.BatchDocumentInputConfigOrBuilder getInputC
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.translate.v3.BatchDocumentInputConfig.Builder addInputConfigsBuilder() { - return getInputConfigsFieldBuilder() - .addBuilder(com.google.cloud.translate.v3.BatchDocumentInputConfig.getDefaultInstance()); + return getInputConfigsFieldBuilder().addBuilder( + com.google.cloud.translate.v3.BatchDocumentInputConfig.getDefaultInstance()); } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2364,19 +2095,14 @@ public com.google.cloud.translate.v3.BatchDocumentInputConfig.Builder addInputCo
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.translate.v3.BatchDocumentInputConfig.Builder addInputConfigsBuilder( int index) { - return getInputConfigsFieldBuilder() - .addBuilder( - index, com.google.cloud.translate.v3.BatchDocumentInputConfig.getDefaultInstance()); + return getInputConfigsFieldBuilder().addBuilder( + index, com.google.cloud.translate.v3.BatchDocumentInputConfig.getDefaultInstance()); } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2384,27 +2110,22 @@ public com.google.cloud.translate.v3.BatchDocumentInputConfig.Builder addInputCo
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List - getInputConfigsBuilderList() { + public java.util.List + getInputConfigsBuilderList() { return getInputConfigsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.translate.v3.BatchDocumentInputConfig, - com.google.cloud.translate.v3.BatchDocumentInputConfig.Builder, - com.google.cloud.translate.v3.BatchDocumentInputConfigOrBuilder> + com.google.cloud.translate.v3.BatchDocumentInputConfig, com.google.cloud.translate.v3.BatchDocumentInputConfig.Builder, com.google.cloud.translate.v3.BatchDocumentInputConfigOrBuilder> getInputConfigsFieldBuilder() { if (inputConfigsBuilder_ == null) { - inputConfigsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.translate.v3.BatchDocumentInputConfig, - com.google.cloud.translate.v3.BatchDocumentInputConfig.Builder, - com.google.cloud.translate.v3.BatchDocumentInputConfigOrBuilder>( - inputConfigs_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + inputConfigsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.translate.v3.BatchDocumentInputConfig, com.google.cloud.translate.v3.BatchDocumentInputConfig.Builder, com.google.cloud.translate.v3.BatchDocumentInputConfigOrBuilder>( + inputConfigs_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); inputConfigs_ = null; } return inputConfigsBuilder_; @@ -2412,64 +2133,45 @@ public com.google.cloud.translate.v3.BatchDocumentInputConfig.Builder addInputCo private com.google.cloud.translate.v3.BatchDocumentOutputConfig outputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.BatchDocumentOutputConfig, - com.google.cloud.translate.v3.BatchDocumentOutputConfig.Builder, - com.google.cloud.translate.v3.BatchDocumentOutputConfigOrBuilder> - outputConfigBuilder_; + com.google.cloud.translate.v3.BatchDocumentOutputConfig, com.google.cloud.translate.v3.BatchDocumentOutputConfig.Builder, com.google.cloud.translate.v3.BatchDocumentOutputConfigOrBuilder> outputConfigBuilder_; /** - * - * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * - * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return outputConfigBuilder_ != null || outputConfig_ != null; } /** - * - * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * - * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; * @return The outputConfig. */ public com.google.cloud.translate.v3.BatchDocumentOutputConfig getOutputConfig() { if (outputConfigBuilder_ == null) { - return outputConfig_ == null - ? com.google.cloud.translate.v3.BatchDocumentOutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? com.google.cloud.translate.v3.BatchDocumentOutputConfig.getDefaultInstance() : outputConfig_; } else { return outputConfigBuilder_.getMessage(); } } /** - * - * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * - * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setOutputConfig(com.google.cloud.translate.v3.BatchDocumentOutputConfig value) { if (outputConfigBuilder_ == null) { @@ -2485,17 +2187,13 @@ public Builder setOutputConfig(com.google.cloud.translate.v3.BatchDocumentOutput return this; } /** - * - * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * - * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setOutputConfig( com.google.cloud.translate.v3.BatchDocumentOutputConfig.Builder builderForValue) { @@ -2509,26 +2207,19 @@ public Builder setOutputConfig( return this; } /** - * - * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * - * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeOutputConfig( - com.google.cloud.translate.v3.BatchDocumentOutputConfig value) { + public Builder mergeOutputConfig(com.google.cloud.translate.v3.BatchDocumentOutputConfig value) { if (outputConfigBuilder_ == null) { if (outputConfig_ != null) { outputConfig_ = - com.google.cloud.translate.v3.BatchDocumentOutputConfig.newBuilder(outputConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.translate.v3.BatchDocumentOutputConfig.newBuilder(outputConfig_).mergeFrom(value).buildPartial(); } else { outputConfig_ = value; } @@ -2540,17 +2231,13 @@ public Builder mergeOutputConfig( return this; } /** - * - * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * - * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearOutputConfig() { if (outputConfigBuilder_ == null) { @@ -2564,92 +2251,75 @@ public Builder clearOutputConfig() { return this; } /** - * - * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * - * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.translate.v3.BatchDocumentOutputConfig.Builder - getOutputConfigBuilder() { - + public com.google.cloud.translate.v3.BatchDocumentOutputConfig.Builder getOutputConfigBuilder() { + onChanged(); return getOutputConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * - * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.translate.v3.BatchDocumentOutputConfigOrBuilder - getOutputConfigOrBuilder() { + public com.google.cloud.translate.v3.BatchDocumentOutputConfigOrBuilder getOutputConfigOrBuilder() { if (outputConfigBuilder_ != null) { return outputConfigBuilder_.getMessageOrBuilder(); } else { - return outputConfig_ == null - ? com.google.cloud.translate.v3.BatchDocumentOutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? + com.google.cloud.translate.v3.BatchDocumentOutputConfig.getDefaultInstance() : outputConfig_; } } /** - * - * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * - * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.BatchDocumentOutputConfig, - com.google.cloud.translate.v3.BatchDocumentOutputConfig.Builder, - com.google.cloud.translate.v3.BatchDocumentOutputConfigOrBuilder> + com.google.cloud.translate.v3.BatchDocumentOutputConfig, com.google.cloud.translate.v3.BatchDocumentOutputConfig.Builder, com.google.cloud.translate.v3.BatchDocumentOutputConfigOrBuilder> getOutputConfigFieldBuilder() { if (outputConfigBuilder_ == null) { - outputConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.BatchDocumentOutputConfig, - com.google.cloud.translate.v3.BatchDocumentOutputConfig.Builder, - com.google.cloud.translate.v3.BatchDocumentOutputConfigOrBuilder>( - getOutputConfig(), getParentForChildren(), isClean()); + outputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3.BatchDocumentOutputConfig, com.google.cloud.translate.v3.BatchDocumentOutputConfig.Builder, com.google.cloud.translate.v3.BatchDocumentOutputConfigOrBuilder>( + getOutputConfig(), + getParentForChildren(), + isClean()); outputConfig_ = null; } return outputConfigBuilder_; } - private com.google.protobuf.MapField models_; - - private com.google.protobuf.MapField internalGetModels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> models_; + private com.google.protobuf.MapField + internalGetModels() { if (models_ == null) { - return com.google.protobuf.MapField.emptyMapField(ModelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + ModelsDefaultEntryHolder.defaultEntry); } return models_; } - private com.google.protobuf.MapField - internalGetMutableModels() { - onChanged(); - ; + internalGetMutableModels() { + onChanged();; if (models_ == null) { - models_ = com.google.protobuf.MapField.newMapField(ModelsDefaultEntryHolder.defaultEntry); + models_ = com.google.protobuf.MapField.newMapField( + ModelsDefaultEntryHolder.defaultEntry); } if (!models_.isMutable()) { models_ = models_.copy(); @@ -2661,8 +2331,6 @@ public int getModelsCount() { return internalGetModels().getMap().size(); } /** - * - * *
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is the model name. Value can be a built-in general model,
@@ -2678,22 +2346,22 @@ public int getModelsCount() {
      *
      * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
+
     @java.lang.Override
-    public boolean containsModels(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
+    public boolean containsModels(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
       return internalGetModels().getMap().containsKey(key);
     }
-    /** Use {@link #getModelsMap()} instead. */
+    /**
+     * Use {@link #getModelsMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getModels() {
       return getModelsMap();
     }
     /**
-     *
-     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is the model name. Value can be a built-in general model,
@@ -2710,12 +2378,11 @@ public java.util.Map getModels() {
      * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
+
     public java.util.Map getModelsMap() {
       return internalGetModels().getMap();
     }
     /**
-     *
-     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is the model name. Value can be a built-in general model,
@@ -2732,17 +2399,16 @@ public java.util.Map getModelsMap() {
      * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
+
     public java.lang.String getModelsOrDefault(
-        java.lang.String key, java.lang.String defaultValue) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      java.util.Map map = internalGetModels().getMap();
+        java.lang.String key,
+        java.lang.String defaultValue) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      java.util.Map map =
+          internalGetModels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is the model name. Value can be a built-in general model,
@@ -2759,11 +2425,12 @@ public java.lang.String getModelsOrDefault(
      * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public java.lang.String getModelsOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      java.util.Map map = internalGetModels().getMap();
+
+    public java.lang.String getModelsOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      java.util.Map map =
+          internalGetModels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -2771,12 +2438,11 @@ public java.lang.String getModelsOrThrow(java.lang.String key) {
     }
 
     public Builder clearModels() {
-      internalGetMutableModels().getMutableMap().clear();
+      internalGetMutableModels().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is the model name. Value can be a built-in general model,
@@ -2792,21 +2458,23 @@ public Builder clearModels() {
      *
      * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder removeModels(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      internalGetMutableModels().getMutableMap().remove(key);
+
+    public Builder removeModels(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      internalGetMutableModels().getMutableMap()
+          .remove(key);
       return this;
     }
-    /** Use alternate mutation accessors instead. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableModels() {
+    public java.util.Map
+    getMutableModels() {
       return internalGetMutableModels().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is the model name. Value can be a built-in general model,
@@ -2822,19 +2490,16 @@ public java.util.Map getMutableModels() {
      *
      * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putModels(java.lang.String key, java.lang.String value) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      if (value == null) {
-        throw new java.lang.NullPointerException();
-      }
-      internalGetMutableModels().getMutableMap().put(key, value);
+    public Builder putModels(
+        java.lang.String key,
+        java.lang.String value) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      if (value == null) { throw new java.lang.NullPointerException(); }
+      internalGetMutableModels().getMutableMap()
+          .put(key, value);
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is the model name. Value can be a built-in general model,
@@ -2850,33 +2515,30 @@ public Builder putModels(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putAllModels(java.util.Map values) {
-      internalGetMutableModels().getMutableMap().putAll(values);
+
+    public Builder putAllModels(
+        java.util.Map values) {
+      internalGetMutableModels().getMutableMap()
+          .putAll(values);
       return this;
     }
 
     private com.google.protobuf.MapField<
-            java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig>
-        glossaries_;
-
-    private com.google.protobuf.MapField<
-            java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig>
-        internalGetGlossaries() {
+        java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig> glossaries_;
+    private com.google.protobuf.MapField
+    internalGetGlossaries() {
       if (glossaries_ == null) {
         return com.google.protobuf.MapField.emptyMapField(
             GlossariesDefaultEntryHolder.defaultEntry);
       }
       return glossaries_;
     }
-
-    private com.google.protobuf.MapField<
-            java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig>
-        internalGetMutableGlossaries() {
-      onChanged();
-      ;
+    private com.google.protobuf.MapField
+    internalGetMutableGlossaries() {
+      onChanged();;
       if (glossaries_ == null) {
-        glossaries_ =
-            com.google.protobuf.MapField.newMapField(GlossariesDefaultEntryHolder.defaultEntry);
+        glossaries_ = com.google.protobuf.MapField.newMapField(
+            GlossariesDefaultEntryHolder.defaultEntry);
       }
       if (!glossaries_.isMutable()) {
         glossaries_ = glossaries_.copy();
@@ -2888,89 +2550,70 @@ public int getGlossariesCount() {
       return internalGetGlossaries().getMap().size();
     }
     /**
-     *
-     *
      * 
      * Optional. Glossaries to be applied. It's keyed by target language code.
      * 
* - * - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ + @java.lang.Override - public boolean containsGlossaries(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } + public boolean containsGlossaries( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } return internalGetGlossaries().getMap().containsKey(key); } - /** Use {@link #getGlossariesMap()} instead. */ + /** + * Use {@link #getGlossariesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated - public java.util.Map< - java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig> - getGlossaries() { + public java.util.Map getGlossaries() { return getGlossariesMap(); } /** - * - * *
      * Optional. Glossaries to be applied. It's keyed by target language code.
      * 
* - * - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.Map< - java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig> - getGlossariesMap() { + + public java.util.Map getGlossariesMap() { return internalGetGlossaries().getMap(); } /** - * - * *
      * Optional. Glossaries to be applied. It's keyed by target language code.
      * 
* - * - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOrDefault( java.lang.String key, com.google.cloud.translate.v3.TranslateTextGlossaryConfig defaultValue) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map - map = internalGetGlossaries().getMap(); + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetGlossaries().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Optional. Glossaries to be applied. It's keyed by target language code.
      * 
* - * - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOrThrow( java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map - map = internalGetGlossaries().getMap(); + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetGlossaries().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -2978,93 +2621,80 @@ public com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOr } public Builder clearGlossaries() { - internalGetMutableGlossaries().getMutableMap().clear(); + internalGetMutableGlossaries().getMutableMap() + .clear(); return this; } /** - * - * *
      * Optional. Glossaries to be applied. It's keyed by target language code.
      * 
* - * - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder removeGlossaries(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableGlossaries().getMutableMap().remove(key); + + public Builder removeGlossaries( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableGlossaries().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map< - java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig> - getMutableGlossaries() { + public java.util.Map + getMutableGlossaries() { return internalGetMutableGlossaries().getMutableMap(); } /** - * - * *
      * Optional. Glossaries to be applied. It's keyed by target language code.
      * 
* - * - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder putGlossaries( - java.lang.String key, com.google.cloud.translate.v3.TranslateTextGlossaryConfig value) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - if (value == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableGlossaries().getMutableMap().put(key, value); + java.lang.String key, + com.google.cloud.translate.v3.TranslateTextGlossaryConfig value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableGlossaries().getMutableMap() + .put(key, value); return this; } /** - * - * *
      * Optional. Glossaries to be applied. It's keyed by target language code.
      * 
* - * - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ + public Builder putAllGlossaries( - java.util.Map - values) { - internalGetMutableGlossaries().getMutableMap().putAll(values); + java.util.Map values) { + internalGetMutableGlossaries().getMutableMap() + .putAll(values); return this; } - private com.google.protobuf.MapField formatConversions_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> formatConversions_; private com.google.protobuf.MapField - internalGetFormatConversions() { + internalGetFormatConversions() { if (formatConversions_ == null) { return com.google.protobuf.MapField.emptyMapField( FormatConversionsDefaultEntryHolder.defaultEntry); } return formatConversions_; } - private com.google.protobuf.MapField - internalGetMutableFormatConversions() { - onChanged(); - ; + internalGetMutableFormatConversions() { + onChanged();; if (formatConversions_ == null) { - formatConversions_ = - com.google.protobuf.MapField.newMapField( - FormatConversionsDefaultEntryHolder.defaultEntry); + formatConversions_ = com.google.protobuf.MapField.newMapField( + FormatConversionsDefaultEntryHolder.defaultEntry); } if (!formatConversions_.isMutable()) { formatConversions_ = formatConversions_.copy(); @@ -3076,8 +2706,6 @@ public int getFormatConversionsCount() { return internalGetFormatConversions().getMap().size(); } /** - * - * *
      * Optional. File format conversion map to be applied to all input files.
      * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -3089,26 +2717,24 @@ public int getFormatConversionsCount() {
      * original file.
      * 
* - * - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; */ + @java.lang.Override - public boolean containsFormatConversions(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } + public boolean containsFormatConversions( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } return internalGetFormatConversions().getMap().containsKey(key); } - /** Use {@link #getFormatConversionsMap()} instead. */ + /** + * Use {@link #getFormatConversionsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getFormatConversions() { return getFormatConversionsMap(); } /** - * - * *
      * Optional. File format conversion map to be applied to all input files.
      * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -3120,17 +2746,14 @@ public java.util.Map getFormatConversions()
      * original file.
      * 
* - * - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.util.Map getFormatConversionsMap() { return internalGetFormatConversions().getMap(); } /** - * - * *
      * Optional. File format conversion map to be applied to all input files.
      * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -3142,23 +2765,19 @@ public java.util.Map getFormatConversionsMap
      * original file.
      * 
* - * - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.lang.String getFormatConversionsOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new java.lang.NullPointerException(); - } + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetFormatConversions().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Optional. File format conversion map to be applied to all input files.
      * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -3170,15 +2789,13 @@ public java.lang.String getFormatConversionsOrDefault(
      * original file.
      * 
* - * - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getFormatConversionsOrThrow(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } + + public java.lang.String getFormatConversionsOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetFormatConversions().getMap(); if (!map.containsKey(key)) { @@ -3188,12 +2805,11 @@ public java.lang.String getFormatConversionsOrThrow(java.lang.String key) { } public Builder clearFormatConversions() { - internalGetMutableFormatConversions().getMutableMap().clear(); + internalGetMutableFormatConversions().getMutableMap() + .clear(); return this; } /** - * - * *
      * Optional. File format conversion map to be applied to all input files.
      * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -3205,25 +2821,25 @@ public Builder clearFormatConversions() {
      * original file.
      * 
* - * - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder removeFormatConversions(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableFormatConversions().getMutableMap().remove(key); + + public Builder removeFormatConversions( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableFormatConversions().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableFormatConversions() { + public java.util.Map + getMutableFormatConversions() { return internalGetMutableFormatConversions().getMutableMap(); } /** - * - * *
      * Optional. File format conversion map to be applied to all input files.
      * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -3235,23 +2851,18 @@ public java.util.Map getMutableFormatConvers
      * original file.
      * 
* - * - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder putFormatConversions(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - if (value == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableFormatConversions().getMutableMap().put(key, value); + public Builder putFormatConversions( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableFormatConversions().getMutableMap() + .put(key, value); return this; } /** - * - * *
      * Optional. File format conversion map to be applied to all input files.
      * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -3263,18 +2874,18 @@ public Builder putFormatConversions(java.lang.String key, java.lang.String value
      * original file.
      * 
* - * - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; */ + public Builder putAllFormatConversions( java.util.Map values) { - internalGetMutableFormatConversions().getMutableMap().putAll(values); + internalGetMutableFormatConversions().getMutableMap() + .putAll(values); 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); } @@ -3284,12 +2895,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.BatchTranslateDocumentRequest) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.BatchTranslateDocumentRequest) private static final com.google.cloud.translate.v3.BatchTranslateDocumentRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.BatchTranslateDocumentRequest(); } @@ -3298,16 +2909,16 @@ public static com.google.cloud.translate.v3.BatchTranslateDocumentRequest getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchTranslateDocumentRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BatchTranslateDocumentRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchTranslateDocumentRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BatchTranslateDocumentRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3322,4 +2933,6 @@ public com.google.protobuf.Parser getParserForTyp public com.google.cloud.translate.v3.BatchTranslateDocumentRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentRequestOrBuilder.java b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentRequestOrBuilder.java similarity index 70% rename from proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentRequestOrBuilder.java rename to owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentRequestOrBuilder.java index 38993312..f61fa1c8 100644 --- a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentRequestOrBuilder.java +++ b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 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/translate/v3/translation_service.proto package com.google.cloud.translate.v3; -public interface BatchTranslateDocumentRequestOrBuilder - extends +public interface BatchTranslateDocumentRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.BatchTranslateDocumentRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Location to make a regional call.
    * Format: `projects/{project-number-or-id}/locations/{location-id}`.
@@ -35,16 +17,11 @@ public interface BatchTranslateDocumentRequestOrBuilder
    * error is returned.
    * 
* - * - * 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. Location to make a regional call.
    * Format: `projects/{project-number-or-id}/locations/{location-id}`.
@@ -54,17 +31,13 @@ public interface BatchTranslateDocumentRequestOrBuilder
    * error is returned.
    * 
* - * - * 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(); /** - * - * *
    * Required. The BCP-47 language code of the input document if known, for
    * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -72,13 +45,10 @@ public interface BatchTranslateDocumentRequestOrBuilder
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The sourceLanguageCode. */ java.lang.String getSourceLanguageCode(); /** - * - * *
    * Required. The BCP-47 language code of the input document if known, for
    * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -86,73 +56,57 @@ public interface BatchTranslateDocumentRequestOrBuilder
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for sourceLanguageCode. */ - com.google.protobuf.ByteString getSourceLanguageCodeBytes(); + com.google.protobuf.ByteString + getSourceLanguageCodeBytes(); /** - * - * *
    * Required. The BCP-47 language code to use for translation of the input
    * document. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @return A list containing the targetLanguageCodes. */ - java.util.List getTargetLanguageCodesList(); + java.util.List + getTargetLanguageCodesList(); /** - * - * *
    * Required. The BCP-47 language code to use for translation of the input
    * document. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The count of targetLanguageCodes. */ int getTargetLanguageCodesCount(); /** - * - * *
    * Required. The BCP-47 language code to use for translation of the input
    * document. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param index The index of the element to return. * @return The targetLanguageCodes at the given index. */ java.lang.String getTargetLanguageCodes(int index); /** - * - * *
    * Required. The BCP-47 language code to use for translation of the input
    * document. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param index The index of the value to return. * @return The bytes of the targetLanguageCodes at the given index. */ - com.google.protobuf.ByteString getTargetLanguageCodesBytes(int index); + com.google.protobuf.ByteString + getTargetLanguageCodesBytes(int index); /** - * - * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -160,14 +114,11 @@ public interface BatchTranslateDocumentRequestOrBuilder
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ - java.util.List getInputConfigsList(); + java.util.List + getInputConfigsList(); /** - * - * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -175,14 +126,10 @@ public interface BatchTranslateDocumentRequestOrBuilder
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.translate.v3.BatchDocumentInputConfig getInputConfigs(int index); /** - * - * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -190,14 +137,10 @@ public interface BatchTranslateDocumentRequestOrBuilder
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ int getInputConfigsCount(); /** - * - * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -205,15 +148,11 @@ public interface BatchTranslateDocumentRequestOrBuilder
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ - java.util.List + java.util.List getInputConfigsOrBuilderList(); /** - * - * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -221,63 +160,45 @@ public interface BatchTranslateDocumentRequestOrBuilder
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.translate.v3.BatchDocumentInputConfigOrBuilder getInputConfigsOrBuilder( int index); /** - * - * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * - * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the outputConfig field is set. */ boolean hasOutputConfig(); /** - * - * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * - * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; * @return The outputConfig. */ com.google.cloud.translate.v3.BatchDocumentOutputConfig getOutputConfig(); /** - * - * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * - * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.translate.v3.BatchDocumentOutputConfigOrBuilder getOutputConfigOrBuilder(); /** - * - * *
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is the model name. Value can be a built-in general model,
@@ -295,8 +216,6 @@ com.google.cloud.translate.v3.BatchDocumentInputConfigOrBuilder getInputConfigsO
    */
   int getModelsCount();
   /**
-   *
-   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is the model name. Value can be a built-in general model,
@@ -312,13 +231,15 @@ com.google.cloud.translate.v3.BatchDocumentInputConfigOrBuilder getInputConfigsO
    *
    * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
-  boolean containsModels(java.lang.String key);
-  /** Use {@link #getModelsMap()} instead. */
+  boolean containsModels(
+      java.lang.String key);
+  /**
+   * Use {@link #getModelsMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getModels();
+  java.util.Map
+  getModels();
   /**
-   *
-   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is the model name. Value can be a built-in general model,
@@ -334,10 +255,9 @@ com.google.cloud.translate.v3.BatchDocumentInputConfigOrBuilder getInputConfigsO
    *
    * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.util.Map getModelsMap();
+  java.util.Map
+  getModelsMap();
   /**
-   *
-   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is the model name. Value can be a built-in general model,
@@ -353,10 +273,11 @@ com.google.cloud.translate.v3.BatchDocumentInputConfigOrBuilder getInputConfigsO
    *
    * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.lang.String getModelsOrDefault(java.lang.String key, java.lang.String defaultValue);
+
+  java.lang.String getModelsOrDefault(
+      java.lang.String key,
+      java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is the model name. Value can be a built-in general model,
@@ -372,79 +293,65 @@ com.google.cloud.translate.v3.BatchDocumentInputConfigOrBuilder getInputConfigsO
    *
    * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.lang.String getModelsOrThrow(java.lang.String key);
+
+  java.lang.String getModelsOrThrow(
+      java.lang.String key);
 
   /**
-   *
-   *
    * 
    * Optional. Glossaries to be applied. It's keyed by target language code.
    * 
* - * - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ int getGlossariesCount(); /** - * - * *
    * Optional. Glossaries to be applied. It's keyed by target language code.
    * 
* - * - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsGlossaries( + java.lang.String key); + /** + * Use {@link #getGlossariesMap()} instead. */ - boolean containsGlossaries(java.lang.String key); - /** Use {@link #getGlossariesMap()} instead. */ @java.lang.Deprecated java.util.Map - getGlossaries(); + getGlossaries(); /** - * - * *
    * Optional. Glossaries to be applied. It's keyed by target language code.
    * 
* - * - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ java.util.Map - getGlossariesMap(); + getGlossariesMap(); /** - * - * *
    * Optional. Glossaries to be applied. It's keyed by target language code.
    * 
* - * - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ + com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOrDefault( - java.lang.String key, com.google.cloud.translate.v3.TranslateTextGlossaryConfig defaultValue); + java.lang.String key, + com.google.cloud.translate.v3.TranslateTextGlossaryConfig defaultValue); /** - * - * *
    * Optional. Glossaries to be applied. It's keyed by target language code.
    * 
* - * - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ + com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOrThrow( java.lang.String key); /** - * - * *
    * Optional. File format conversion map to be applied to all input files.
    * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -456,14 +363,10 @@ com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOrThrow(
    * original file.
    * 
* - * - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; */ int getFormatConversionsCount(); /** - * - * *
    * Optional. File format conversion map to be applied to all input files.
    * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -475,17 +378,17 @@ com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOrThrow(
    * original file.
    * 
* - * - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsFormatConversions( + java.lang.String key); + /** + * Use {@link #getFormatConversionsMap()} instead. */ - boolean containsFormatConversions(java.lang.String key); - /** Use {@link #getFormatConversionsMap()} instead. */ @java.lang.Deprecated - java.util.Map getFormatConversions(); + java.util.Map + getFormatConversions(); /** - * - * *
    * Optional. File format conversion map to be applied to all input files.
    * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -497,14 +400,11 @@ com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOrThrow(
    * original file.
    * 
* - * - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.Map getFormatConversionsMap(); + java.util.Map + getFormatConversionsMap(); /** - * - * *
    * Optional. File format conversion map to be applied to all input files.
    * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -516,15 +416,13 @@ com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOrThrow(
    * original file.
    * 
* - * - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; */ + java.lang.String getFormatConversionsOrDefault( - java.lang.String key, java.lang.String defaultValue); + java.lang.String key, + java.lang.String defaultValue); /** - * - * *
    * Optional. File format conversion map to be applied to all input files.
    * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -536,9 +434,9 @@ java.lang.String getFormatConversionsOrDefault(
    * original file.
    * 
* - * - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; */ - java.lang.String getFormatConversionsOrThrow(java.lang.String key); + + java.lang.String getFormatConversionsOrThrow( + java.lang.String key); } diff --git a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentResponse.java b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentResponse.java similarity index 74% rename from proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentResponse.java rename to owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentResponse.java index c7fcbe1f..7524dfc5 100644 --- a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentResponse.java +++ b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentResponse.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 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/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** - * - * *
  * Stored in the
  * [google.longrunning.Operation.response][google.longrunning.Operation.response]
@@ -30,30 +13,30 @@
  *
  * Protobuf type {@code google.cloud.translation.v3.BatchTranslateDocumentResponse}
  */
-public final class BatchTranslateDocumentResponse extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class BatchTranslateDocumentResponse extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.BatchTranslateDocumentResponse)
     BatchTranslateDocumentResponseOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use BatchTranslateDocumentResponse.newBuilder() to construct.
-  private BatchTranslateDocumentResponse(
-      com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private BatchTranslateDocumentResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private BatchTranslateDocumentResponse() {}
+  private BatchTranslateDocumentResponse() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new BatchTranslateDocumentResponse();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private BatchTranslateDocumentResponse(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -72,122 +55,113 @@ private BatchTranslateDocumentResponse(
           case 0:
             done = true;
             break;
-          case 8:
-            {
-              totalPages_ = input.readInt64();
-              break;
-            }
-          case 16:
-            {
-              translatedPages_ = input.readInt64();
-              break;
-            }
-          case 24:
-            {
-              failedPages_ = input.readInt64();
-              break;
-            }
-          case 32:
-            {
-              totalBillablePages_ = input.readInt64();
-              break;
-            }
-          case 40:
-            {
-              totalCharacters_ = input.readInt64();
-              break;
-            }
-          case 48:
-            {
-              translatedCharacters_ = input.readInt64();
-              break;
-            }
-          case 56:
-            {
-              failedCharacters_ = input.readInt64();
-              break;
+          case 8: {
+
+            totalPages_ = input.readInt64();
+            break;
+          }
+          case 16: {
+
+            translatedPages_ = input.readInt64();
+            break;
+          }
+          case 24: {
+
+            failedPages_ = input.readInt64();
+            break;
+          }
+          case 32: {
+
+            totalBillablePages_ = input.readInt64();
+            break;
+          }
+          case 40: {
+
+            totalCharacters_ = input.readInt64();
+            break;
+          }
+          case 48: {
+
+            translatedCharacters_ = input.readInt64();
+            break;
+          }
+          case 56: {
+
+            failedCharacters_ = input.readInt64();
+            break;
+          }
+          case 64: {
+
+            totalBillableCharacters_ = input.readInt64();
+            break;
+          }
+          case 74: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (submitTime_ != null) {
+              subBuilder = submitTime_.toBuilder();
             }
-          case 64:
-            {
-              totalBillableCharacters_ = input.readInt64();
-              break;
+            submitTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(submitTime_);
+              submitTime_ = subBuilder.buildPartial();
             }
-          case 74:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (submitTime_ != null) {
-                subBuilder = submitTime_.toBuilder();
-              }
-              submitTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(submitTime_);
-                submitTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+
+            break;
+          }
+          case 82: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (endTime_ != null) {
+              subBuilder = endTime_.toBuilder();
             }
-          case 82:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (endTime_ != null) {
-                subBuilder = endTime_.toBuilder();
-              }
-              endTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(endTime_);
-                endTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+            endTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(endTime_);
+              endTime_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.translate.v3.TranslationServiceProto
-        .internal_static_google_cloud_translation_v3_BatchTranslateDocumentResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateDocumentResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.translate.v3.TranslationServiceProto
-        .internal_static_google_cloud_translation_v3_BatchTranslateDocumentResponse_fieldAccessorTable
+    return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateDocumentResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.translate.v3.BatchTranslateDocumentResponse.class,
-            com.google.cloud.translate.v3.BatchTranslateDocumentResponse.Builder.class);
+            com.google.cloud.translate.v3.BatchTranslateDocumentResponse.class, com.google.cloud.translate.v3.BatchTranslateDocumentResponse.Builder.class);
   }
 
   public static final int TOTAL_PAGES_FIELD_NUMBER = 1;
   private long totalPages_;
   /**
-   *
-   *
    * 
    * Total number of pages to translate in all documents. Documents without
    * clear page definition (such as XLSX) are not counted.
    * 
* * int64 total_pages = 1; - * * @return The totalPages. */ @java.lang.Override @@ -198,15 +172,12 @@ public long getTotalPages() { public static final int TRANSLATED_PAGES_FIELD_NUMBER = 2; private long translatedPages_; /** - * - * *
    * Number of successfully translated pages in all documents. Documents without
    * clear page definition (such as XLSX) are not counted.
    * 
* * int64 translated_pages = 2; - * * @return The translatedPages. */ @java.lang.Override @@ -217,15 +188,12 @@ public long getTranslatedPages() { public static final int FAILED_PAGES_FIELD_NUMBER = 3; private long failedPages_; /** - * - * *
    * Number of pages that failed to process in all documents. Documents without
    * clear page definition (such as XLSX) are not counted.
    * 
* * int64 failed_pages = 3; - * * @return The failedPages. */ @java.lang.Override @@ -236,15 +204,12 @@ public long getFailedPages() { public static final int TOTAL_BILLABLE_PAGES_FIELD_NUMBER = 4; private long totalBillablePages_; /** - * - * *
    * Number of billable pages in documents with clear page definition (such as
    * PDF, DOCX, PPTX)
    * 
* * int64 total_billable_pages = 4; - * * @return The totalBillablePages. */ @java.lang.Override @@ -255,14 +220,11 @@ public long getTotalBillablePages() { public static final int TOTAL_CHARACTERS_FIELD_NUMBER = 5; private long totalCharacters_; /** - * - * *
    * Total number of characters (Unicode codepoints) in all documents.
    * 
* * int64 total_characters = 5; - * * @return The totalCharacters. */ @java.lang.Override @@ -273,15 +235,12 @@ public long getTotalCharacters() { public static final int TRANSLATED_CHARACTERS_FIELD_NUMBER = 6; private long translatedCharacters_; /** - * - * *
    * Number of successfully translated characters (Unicode codepoints) in all
    * documents.
    * 
* * int64 translated_characters = 6; - * * @return The translatedCharacters. */ @java.lang.Override @@ -292,15 +251,12 @@ public long getTranslatedCharacters() { public static final int FAILED_CHARACTERS_FIELD_NUMBER = 7; private long failedCharacters_; /** - * - * *
    * Number of characters that have failed to process (Unicode codepoints) in
    * all documents.
    * 
* * int64 failed_characters = 7; - * * @return The failedCharacters. */ @java.lang.Override @@ -311,15 +267,12 @@ public long getFailedCharacters() { public static final int TOTAL_BILLABLE_CHARACTERS_FIELD_NUMBER = 8; private long totalBillableCharacters_; /** - * - * *
    * Number of billable characters (Unicode codepoints) in documents without
    * clear page definition, such as XLSX.
    * 
* * int64 total_billable_characters = 8; - * * @return The totalBillableCharacters. */ @java.lang.Override @@ -330,14 +283,11 @@ public long getTotalBillableCharacters() { public static final int SUBMIT_TIME_FIELD_NUMBER = 9; private com.google.protobuf.Timestamp submitTime_; /** - * - * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 9; - * * @return Whether the submitTime field is set. */ @java.lang.Override @@ -345,14 +295,11 @@ public boolean hasSubmitTime() { return submitTime_ != null; } /** - * - * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 9; - * * @return The submitTime. */ @java.lang.Override @@ -360,8 +307,6 @@ public com.google.protobuf.Timestamp getSubmitTime() { return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } /** - * - * *
    * Time when the operation was submitted.
    * 
@@ -376,8 +321,6 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 10; private com.google.protobuf.Timestamp endTime_; /** - * - * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -385,7 +328,6 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() {
    * 
* * .google.protobuf.Timestamp end_time = 10; - * * @return Whether the endTime field is set. */ @java.lang.Override @@ -393,8 +335,6 @@ public boolean hasEndTime() { return endTime_ != null; } /** - * - * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -402,7 +342,6 @@ public boolean hasEndTime() {
    * 
* * .google.protobuf.Timestamp end_time = 10; - * * @return The endTime. */ @java.lang.Override @@ -410,8 +349,6 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** - * - * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -426,7 +363,6 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -438,7 +374,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 (totalPages_ != 0L) {
       output.writeInt64(1, totalPages_);
     }
@@ -479,34 +416,44 @@ public int getSerializedSize() {
 
     size = 0;
     if (totalPages_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, totalPages_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(1, totalPages_);
     }
     if (translatedPages_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, translatedPages_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(2, translatedPages_);
     }
     if (failedPages_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, failedPages_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(3, failedPages_);
     }
     if (totalBillablePages_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, totalBillablePages_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(4, totalBillablePages_);
     }
     if (totalCharacters_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, totalCharacters_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(5, totalCharacters_);
     }
     if (translatedCharacters_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, translatedCharacters_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(6, translatedCharacters_);
     }
     if (failedCharacters_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream.computeInt64Size(7, failedCharacters_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(7, failedCharacters_);
     }
     if (totalBillableCharacters_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream.computeInt64Size(8, totalBillableCharacters_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(8, totalBillableCharacters_);
     }
     if (submitTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getSubmitTime());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(9, getSubmitTime());
     }
     if (endTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getEndTime());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(10, getEndTime());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -516,29 +463,38 @@ 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.cloud.translate.v3.BatchTranslateDocumentResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3.BatchTranslateDocumentResponse other =
-        (com.google.cloud.translate.v3.BatchTranslateDocumentResponse) obj;
-
-    if (getTotalPages() != other.getTotalPages()) return false;
-    if (getTranslatedPages() != other.getTranslatedPages()) return false;
-    if (getFailedPages() != other.getFailedPages()) return false;
-    if (getTotalBillablePages() != other.getTotalBillablePages()) return false;
-    if (getTotalCharacters() != other.getTotalCharacters()) return false;
-    if (getTranslatedCharacters() != other.getTranslatedCharacters()) return false;
-    if (getFailedCharacters() != other.getFailedCharacters()) return false;
-    if (getTotalBillableCharacters() != other.getTotalBillableCharacters()) return false;
+    com.google.cloud.translate.v3.BatchTranslateDocumentResponse other = (com.google.cloud.translate.v3.BatchTranslateDocumentResponse) obj;
+
+    if (getTotalPages()
+        != other.getTotalPages()) return false;
+    if (getTranslatedPages()
+        != other.getTranslatedPages()) return false;
+    if (getFailedPages()
+        != other.getFailedPages()) return false;
+    if (getTotalBillablePages()
+        != other.getTotalBillablePages()) return false;
+    if (getTotalCharacters()
+        != other.getTotalCharacters()) return false;
+    if (getTranslatedCharacters()
+        != other.getTranslatedCharacters()) return false;
+    if (getFailedCharacters()
+        != other.getFailedCharacters()) return false;
+    if (getTotalBillableCharacters()
+        != other.getTotalBillableCharacters()) return false;
     if (hasSubmitTime() != other.hasSubmitTime()) return false;
     if (hasSubmitTime()) {
-      if (!getSubmitTime().equals(other.getSubmitTime())) return false;
+      if (!getSubmitTime()
+          .equals(other.getSubmitTime())) return false;
     }
     if (hasEndTime() != other.hasEndTime()) return false;
     if (hasEndTime()) {
-      if (!getEndTime().equals(other.getEndTime())) return false;
+      if (!getEndTime()
+          .equals(other.getEndTime())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -552,21 +508,29 @@ public int hashCode() {
     int hash = 41;
     hash = (19 * hash) + getDescriptor().hashCode();
     hash = (37 * hash) + TOTAL_PAGES_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalPages());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+        getTotalPages());
     hash = (37 * hash) + TRANSLATED_PAGES_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTranslatedPages());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+        getTranslatedPages());
     hash = (37 * hash) + FAILED_PAGES_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getFailedPages());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+        getFailedPages());
     hash = (37 * hash) + TOTAL_BILLABLE_PAGES_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalBillablePages());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+        getTotalBillablePages());
     hash = (37 * hash) + TOTAL_CHARACTERS_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalCharacters());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+        getTotalCharacters());
     hash = (37 * hash) + TRANSLATED_CHARACTERS_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTranslatedCharacters());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+        getTranslatedCharacters());
     hash = (37 * hash) + FAILED_CHARACTERS_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getFailedCharacters());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+        getFailedCharacters());
     hash = (37 * hash) + TOTAL_BILLABLE_CHARACTERS_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalBillableCharacters());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+        getTotalBillableCharacters());
     if (hasSubmitTime()) {
       hash = (37 * hash) + SUBMIT_TIME_FIELD_NUMBER;
       hash = (53 * hash) + getSubmitTime().hashCode();
@@ -581,104 +545,96 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3.BatchTranslateDocumentResponse 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.cloud.translate.v3.BatchTranslateDocumentResponse 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.cloud.translate.v3.BatchTranslateDocumentResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3.BatchTranslateDocumentResponse 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.cloud.translate.v3.BatchTranslateDocumentResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3.BatchTranslateDocumentResponse 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.cloud.translate.v3.BatchTranslateDocumentResponse parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3.BatchTranslateDocumentResponse parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3.BatchTranslateDocumentResponse 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.cloud.translate.v3.BatchTranslateDocumentResponse parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3.BatchTranslateDocumentResponse parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3.BatchTranslateDocumentResponse 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.cloud.translate.v3.BatchTranslateDocumentResponse 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.cloud.translate.v3.BatchTranslateDocumentResponse 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.cloud.translate.v3.BatchTranslateDocumentResponse prototype) {
+  public static Builder newBuilder(com.google.cloud.translate.v3.BatchTranslateDocumentResponse 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;
   }
   /**
-   *
-   *
    * 
    * Stored in the
    * [google.longrunning.Operation.response][google.longrunning.Operation.response]
@@ -688,23 +644,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.translation.v3.BatchTranslateDocumentResponse}
    */
-  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.translation.v3.BatchTranslateDocumentResponse)
       com.google.cloud.translate.v3.BatchTranslateDocumentResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.translate.v3.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3_BatchTranslateDocumentResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateDocumentResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.translate.v3.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3_BatchTranslateDocumentResponse_fieldAccessorTable
+      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateDocumentResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.translate.v3.BatchTranslateDocumentResponse.class,
-              com.google.cloud.translate.v3.BatchTranslateDocumentResponse.Builder.class);
+              com.google.cloud.translate.v3.BatchTranslateDocumentResponse.class, com.google.cloud.translate.v3.BatchTranslateDocumentResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.translate.v3.BatchTranslateDocumentResponse.newBuilder()
@@ -712,15 +666,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -756,14 +711,13 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.translate.v3.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3_BatchTranslateDocumentResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateDocumentResponse_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.translate.v3.BatchTranslateDocumentResponse
-        getDefaultInstanceForType() {
+    public com.google.cloud.translate.v3.BatchTranslateDocumentResponse getDefaultInstanceForType() {
       return com.google.cloud.translate.v3.BatchTranslateDocumentResponse.getDefaultInstance();
     }
 
@@ -778,8 +732,7 @@ public com.google.cloud.translate.v3.BatchTranslateDocumentResponse build() {
 
     @java.lang.Override
     public com.google.cloud.translate.v3.BatchTranslateDocumentResponse buildPartial() {
-      com.google.cloud.translate.v3.BatchTranslateDocumentResponse result =
-          new com.google.cloud.translate.v3.BatchTranslateDocumentResponse(this);
+      com.google.cloud.translate.v3.BatchTranslateDocumentResponse result = new com.google.cloud.translate.v3.BatchTranslateDocumentResponse(this);
       result.totalPages_ = totalPages_;
       result.translatedPages_ = translatedPages_;
       result.failedPages_ = failedPages_;
@@ -806,39 +759,38 @@ public com.google.cloud.translate.v3.BatchTranslateDocumentResponse 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.cloud.translate.v3.BatchTranslateDocumentResponse) {
-        return mergeFrom((com.google.cloud.translate.v3.BatchTranslateDocumentResponse) other);
+        return mergeFrom((com.google.cloud.translate.v3.BatchTranslateDocumentResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -846,9 +798,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.translate.v3.BatchTranslateDocumentResponse other) {
-      if (other
-          == com.google.cloud.translate.v3.BatchTranslateDocumentResponse.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.translate.v3.BatchTranslateDocumentResponse.getDefaultInstance()) return this;
       if (other.getTotalPages() != 0L) {
         setTotalPages(other.getTotalPages());
       }
@@ -898,8 +848,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.translate.v3.BatchTranslateDocumentResponse) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.translate.v3.BatchTranslateDocumentResponse) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -909,17 +858,14 @@ public Builder mergeFrom(
       return this;
     }
 
-    private long totalPages_;
+    private long totalPages_ ;
     /**
-     *
-     *
      * 
      * Total number of pages to translate in all documents. Documents without
      * clear page definition (such as XLSX) are not counted.
      * 
* * int64 total_pages = 1; - * * @return The totalPages. */ @java.lang.Override @@ -927,54 +873,45 @@ public long getTotalPages() { return totalPages_; } /** - * - * *
      * Total number of pages to translate in all documents. Documents without
      * clear page definition (such as XLSX) are not counted.
      * 
* * int64 total_pages = 1; - * * @param value The totalPages to set. * @return This builder for chaining. */ public Builder setTotalPages(long value) { - + totalPages_ = value; onChanged(); return this; } /** - * - * *
      * Total number of pages to translate in all documents. Documents without
      * clear page definition (such as XLSX) are not counted.
      * 
* * int64 total_pages = 1; - * * @return This builder for chaining. */ public Builder clearTotalPages() { - + totalPages_ = 0L; onChanged(); return this; } - private long translatedPages_; + private long translatedPages_ ; /** - * - * *
      * Number of successfully translated pages in all documents. Documents without
      * clear page definition (such as XLSX) are not counted.
      * 
* * int64 translated_pages = 2; - * * @return The translatedPages. */ @java.lang.Override @@ -982,54 +919,45 @@ public long getTranslatedPages() { return translatedPages_; } /** - * - * *
      * Number of successfully translated pages in all documents. Documents without
      * clear page definition (such as XLSX) are not counted.
      * 
* * int64 translated_pages = 2; - * * @param value The translatedPages to set. * @return This builder for chaining. */ public Builder setTranslatedPages(long value) { - + translatedPages_ = value; onChanged(); return this; } /** - * - * *
      * Number of successfully translated pages in all documents. Documents without
      * clear page definition (such as XLSX) are not counted.
      * 
* * int64 translated_pages = 2; - * * @return This builder for chaining. */ public Builder clearTranslatedPages() { - + translatedPages_ = 0L; onChanged(); return this; } - private long failedPages_; + private long failedPages_ ; /** - * - * *
      * Number of pages that failed to process in all documents. Documents without
      * clear page definition (such as XLSX) are not counted.
      * 
* * int64 failed_pages = 3; - * * @return The failedPages. */ @java.lang.Override @@ -1037,54 +965,45 @@ public long getFailedPages() { return failedPages_; } /** - * - * *
      * Number of pages that failed to process in all documents. Documents without
      * clear page definition (such as XLSX) are not counted.
      * 
* * int64 failed_pages = 3; - * * @param value The failedPages to set. * @return This builder for chaining. */ public Builder setFailedPages(long value) { - + failedPages_ = value; onChanged(); return this; } /** - * - * *
      * Number of pages that failed to process in all documents. Documents without
      * clear page definition (such as XLSX) are not counted.
      * 
* * int64 failed_pages = 3; - * * @return This builder for chaining. */ public Builder clearFailedPages() { - + failedPages_ = 0L; onChanged(); return this; } - private long totalBillablePages_; + private long totalBillablePages_ ; /** - * - * *
      * Number of billable pages in documents with clear page definition (such as
      * PDF, DOCX, PPTX)
      * 
* * int64 total_billable_pages = 4; - * * @return The totalBillablePages. */ @java.lang.Override @@ -1092,53 +1011,44 @@ public long getTotalBillablePages() { return totalBillablePages_; } /** - * - * *
      * Number of billable pages in documents with clear page definition (such as
      * PDF, DOCX, PPTX)
      * 
* * int64 total_billable_pages = 4; - * * @param value The totalBillablePages to set. * @return This builder for chaining. */ public Builder setTotalBillablePages(long value) { - + totalBillablePages_ = value; onChanged(); return this; } /** - * - * *
      * Number of billable pages in documents with clear page definition (such as
      * PDF, DOCX, PPTX)
      * 
* * int64 total_billable_pages = 4; - * * @return This builder for chaining. */ public Builder clearTotalBillablePages() { - + totalBillablePages_ = 0L; onChanged(); return this; } - private long totalCharacters_; + private long totalCharacters_ ; /** - * - * *
      * Total number of characters (Unicode codepoints) in all documents.
      * 
* * int64 total_characters = 5; - * * @return The totalCharacters. */ @java.lang.Override @@ -1146,52 +1056,43 @@ public long getTotalCharacters() { return totalCharacters_; } /** - * - * *
      * Total number of characters (Unicode codepoints) in all documents.
      * 
* * int64 total_characters = 5; - * * @param value The totalCharacters to set. * @return This builder for chaining. */ public Builder setTotalCharacters(long value) { - + totalCharacters_ = value; onChanged(); return this; } /** - * - * *
      * Total number of characters (Unicode codepoints) in all documents.
      * 
* * int64 total_characters = 5; - * * @return This builder for chaining. */ public Builder clearTotalCharacters() { - + totalCharacters_ = 0L; onChanged(); return this; } - private long translatedCharacters_; + private long translatedCharacters_ ; /** - * - * *
      * Number of successfully translated characters (Unicode codepoints) in all
      * documents.
      * 
* * int64 translated_characters = 6; - * * @return The translatedCharacters. */ @java.lang.Override @@ -1199,54 +1100,45 @@ public long getTranslatedCharacters() { return translatedCharacters_; } /** - * - * *
      * Number of successfully translated characters (Unicode codepoints) in all
      * documents.
      * 
* * int64 translated_characters = 6; - * * @param value The translatedCharacters to set. * @return This builder for chaining. */ public Builder setTranslatedCharacters(long value) { - + translatedCharacters_ = value; onChanged(); return this; } /** - * - * *
      * Number of successfully translated characters (Unicode codepoints) in all
      * documents.
      * 
* * int64 translated_characters = 6; - * * @return This builder for chaining. */ public Builder clearTranslatedCharacters() { - + translatedCharacters_ = 0L; onChanged(); return this; } - private long failedCharacters_; + private long failedCharacters_ ; /** - * - * *
      * Number of characters that have failed to process (Unicode codepoints) in
      * all documents.
      * 
* * int64 failed_characters = 7; - * * @return The failedCharacters. */ @java.lang.Override @@ -1254,54 +1146,45 @@ public long getFailedCharacters() { return failedCharacters_; } /** - * - * *
      * Number of characters that have failed to process (Unicode codepoints) in
      * all documents.
      * 
* * int64 failed_characters = 7; - * * @param value The failedCharacters to set. * @return This builder for chaining. */ public Builder setFailedCharacters(long value) { - + failedCharacters_ = value; onChanged(); return this; } /** - * - * *
      * Number of characters that have failed to process (Unicode codepoints) in
      * all documents.
      * 
* * int64 failed_characters = 7; - * * @return This builder for chaining. */ public Builder clearFailedCharacters() { - + failedCharacters_ = 0L; onChanged(); return this; } - private long totalBillableCharacters_; + private long totalBillableCharacters_ ; /** - * - * *
      * Number of billable characters (Unicode codepoints) in documents without
      * clear page definition, such as XLSX.
      * 
* * int64 total_billable_characters = 8; - * * @return The totalBillableCharacters. */ @java.lang.Override @@ -1309,38 +1192,32 @@ public long getTotalBillableCharacters() { return totalBillableCharacters_; } /** - * - * *
      * Number of billable characters (Unicode codepoints) in documents without
      * clear page definition, such as XLSX.
      * 
* * int64 total_billable_characters = 8; - * * @param value The totalBillableCharacters to set. * @return This builder for chaining. */ public Builder setTotalBillableCharacters(long value) { - + totalBillableCharacters_ = value; onChanged(); return this; } /** - * - * *
      * Number of billable characters (Unicode codepoints) in documents without
      * clear page definition, such as XLSX.
      * 
* * int64 total_billable_characters = 8; - * * @return This builder for chaining. */ public Builder clearTotalBillableCharacters() { - + totalBillableCharacters_ = 0L; onChanged(); return this; @@ -1348,47 +1225,34 @@ public Builder clearTotalBillableCharacters() { private com.google.protobuf.Timestamp submitTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - submitTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> submitTimeBuilder_; /** - * - * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 9; - * * @return Whether the submitTime field is set. */ public boolean hasSubmitTime() { return submitTimeBuilder_ != null || submitTime_ != null; } /** - * - * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 9; - * * @return The submitTime. */ public com.google.protobuf.Timestamp getSubmitTime() { if (submitTimeBuilder_ == null) { - return submitTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : submitTime_; + return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } else { return submitTimeBuilder_.getMessage(); } } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -1409,15 +1273,14 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 9; */ - public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setSubmitTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (submitTimeBuilder_ == null) { submitTime_ = builderForValue.build(); onChanged(); @@ -1428,8 +1291,6 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -1440,7 +1301,7 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { if (submitTimeBuilder_ == null) { if (submitTime_ != null) { submitTime_ = - com.google.protobuf.Timestamp.newBuilder(submitTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(submitTime_).mergeFrom(value).buildPartial(); } else { submitTime_ = value; } @@ -1452,8 +1313,6 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -1472,8 +1331,6 @@ public Builder clearSubmitTime() { return this; } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -1481,13 +1338,11 @@ public Builder clearSubmitTime() { * .google.protobuf.Timestamp submit_time = 9; */ public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder() { - + onChanged(); return getSubmitTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -1498,14 +1353,11 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { if (submitTimeBuilder_ != null) { return submitTimeBuilder_.getMessageOrBuilder(); } else { - return submitTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : submitTime_; + return submitTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -1513,17 +1365,14 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { * .google.protobuf.Timestamp submit_time = 9; */ 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> getSubmitTimeFieldBuilder() { if (submitTimeBuilder_ == null) { - submitTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getSubmitTime(), getParentForChildren(), isClean()); + submitTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getSubmitTime(), + getParentForChildren(), + isClean()); submitTime_ = null; } return submitTimeBuilder_; @@ -1531,13 +1380,8 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - endTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; /** - * - * *
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1545,15 +1389,12 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() {
      * 
* * .google.protobuf.Timestamp end_time = 10; - * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; } /** - * - * *
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1561,7 +1402,6 @@ public boolean hasEndTime() {
      * 
* * .google.protobuf.Timestamp end_time = 10; - * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1572,8 +1412,6 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** - * - * *
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1596,8 +1434,6 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1606,7 +1442,8 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp end_time = 10;
      */
-    public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setEndTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (endTimeBuilder_ == null) {
         endTime_ = builderForValue.build();
         onChanged();
@@ -1617,8 +1454,6 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue)
       return this;
     }
     /**
-     *
-     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1631,7 +1466,7 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       if (endTimeBuilder_ == null) {
         if (endTime_ != null) {
           endTime_ =
-              com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial();
+            com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial();
         } else {
           endTime_ = value;
         }
@@ -1643,8 +1478,6 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1665,8 +1498,6 @@ public Builder clearEndTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1676,13 +1507,11 @@ public Builder clearEndTime() {
      * .google.protobuf.Timestamp end_time = 10;
      */
     public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() {
-
+      
       onChanged();
       return getEndTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1695,12 +1524,11 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
       if (endTimeBuilder_ != null) {
         return endTimeBuilder_.getMessageOrBuilder();
       } else {
-        return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
+        return endTime_ == null ?
+            com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
       }
     }
     /**
-     *
-     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1710,24 +1538,21 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
      * .google.protobuf.Timestamp end_time = 10;
      */
     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> 
         getEndTimeFieldBuilder() {
       if (endTimeBuilder_ == null) {
-        endTimeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Timestamp,
-                com.google.protobuf.Timestamp.Builder,
-                com.google.protobuf.TimestampOrBuilder>(
-                getEndTime(), getParentForChildren(), isClean());
+        endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                getEndTime(),
+                getParentForChildren(),
+                isClean());
         endTime_ = null;
       }
       return endTimeBuilder_;
     }
-
     @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);
     }
 
@@ -1737,13 +1562,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.BatchTranslateDocumentResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.BatchTranslateDocumentResponse)
-  private static final com.google.cloud.translate.v3.BatchTranslateDocumentResponse
-      DEFAULT_INSTANCE;
-
+  private static final com.google.cloud.translate.v3.BatchTranslateDocumentResponse DEFAULT_INSTANCE;
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3.BatchTranslateDocumentResponse();
   }
@@ -1752,16 +1576,16 @@ public static com.google.cloud.translate.v3.BatchTranslateDocumentResponse getDe
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public BatchTranslateDocumentResponse parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new BatchTranslateDocumentResponse(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public BatchTranslateDocumentResponse parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new BatchTranslateDocumentResponse(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1776,4 +1600,6 @@ public com.google.protobuf.Parser getParserForTy
   public com.google.cloud.translate.v3.BatchTranslateDocumentResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentResponseOrBuilder.java b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentResponseOrBuilder.java
similarity index 82%
rename from proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentResponseOrBuilder.java
rename to owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentResponseOrBuilder.java
index 748a8f9c..ba1d1100 100644
--- a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentResponseOrBuilder.java
+++ b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentResponseOrBuilder.java
@@ -1,166 +1,118 @@
-/*
- * Copyright 2020 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/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
-public interface BatchTranslateDocumentResponseOrBuilder
-    extends
+public interface BatchTranslateDocumentResponseOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.BatchTranslateDocumentResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Total number of pages to translate in all documents. Documents without
    * clear page definition (such as XLSX) are not counted.
    * 
* * int64 total_pages = 1; - * * @return The totalPages. */ long getTotalPages(); /** - * - * *
    * Number of successfully translated pages in all documents. Documents without
    * clear page definition (such as XLSX) are not counted.
    * 
* * int64 translated_pages = 2; - * * @return The translatedPages. */ long getTranslatedPages(); /** - * - * *
    * Number of pages that failed to process in all documents. Documents without
    * clear page definition (such as XLSX) are not counted.
    * 
* * int64 failed_pages = 3; - * * @return The failedPages. */ long getFailedPages(); /** - * - * *
    * Number of billable pages in documents with clear page definition (such as
    * PDF, DOCX, PPTX)
    * 
* * int64 total_billable_pages = 4; - * * @return The totalBillablePages. */ long getTotalBillablePages(); /** - * - * *
    * Total number of characters (Unicode codepoints) in all documents.
    * 
* * int64 total_characters = 5; - * * @return The totalCharacters. */ long getTotalCharacters(); /** - * - * *
    * Number of successfully translated characters (Unicode codepoints) in all
    * documents.
    * 
* * int64 translated_characters = 6; - * * @return The translatedCharacters. */ long getTranslatedCharacters(); /** - * - * *
    * Number of characters that have failed to process (Unicode codepoints) in
    * all documents.
    * 
* * int64 failed_characters = 7; - * * @return The failedCharacters. */ long getFailedCharacters(); /** - * - * *
    * Number of billable characters (Unicode codepoints) in documents without
    * clear page definition, such as XLSX.
    * 
* * int64 total_billable_characters = 8; - * * @return The totalBillableCharacters. */ long getTotalBillableCharacters(); /** - * - * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 9; - * * @return Whether the submitTime field is set. */ boolean hasSubmitTime(); /** - * - * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 9; - * * @return The submitTime. */ com.google.protobuf.Timestamp getSubmitTime(); /** - * - * *
    * Time when the operation was submitted.
    * 
@@ -170,8 +122,6 @@ public interface BatchTranslateDocumentResponseOrBuilder com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder(); /** - * - * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -179,13 +129,10 @@ public interface BatchTranslateDocumentResponseOrBuilder
    * 
* * .google.protobuf.Timestamp end_time = 10; - * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** - * - * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -193,13 +140,10 @@ public interface BatchTranslateDocumentResponseOrBuilder
    * 
* * .google.protobuf.Timestamp end_time = 10; - * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** - * - * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
diff --git a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateMetadata.java b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateMetadata.java
similarity index 73%
rename from proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateMetadata.java
rename to owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateMetadata.java
index 534d33d7..188bac60 100644
--- a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateMetadata.java
+++ b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateMetadata.java
@@ -1,57 +1,40 @@
-/*
- * Copyright 2020 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/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
 /**
- *
- *
  * 
  * State metadata for the batch translation operation.
  * 
* * Protobuf type {@code google.cloud.translation.v3.BatchTranslateMetadata} */ -public final class BatchTranslateMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BatchTranslateMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.BatchTranslateMetadata) BatchTranslateMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BatchTranslateMetadata.newBuilder() to construct. private BatchTranslateMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BatchTranslateMetadata() { state_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BatchTranslateMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private BatchTranslateMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,90 +53,82 @@ private BatchTranslateMetadata( case 0: done = true; break; - case 8: - { - int rawValue = input.readEnum(); + case 8: { + int rawValue = input.readEnum(); - state_ = rawValue; - break; - } - case 16: - { - translatedCharacters_ = input.readInt64(); - break; - } - case 24: - { - failedCharacters_ = input.readInt64(); - break; - } - case 32: - { - totalCharacters_ = input.readInt64(); - break; + state_ = rawValue; + break; + } + case 16: { + + translatedCharacters_ = input.readInt64(); + break; + } + case 24: { + + failedCharacters_ = input.readInt64(); + break; + } + case 32: { + + totalCharacters_ = input.readInt64(); + break; + } + case 42: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (submitTime_ != null) { + subBuilder = submitTime_.toBuilder(); } - case 42: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (submitTime_ != null) { - subBuilder = submitTime_.toBuilder(); - } - submitTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(submitTime_); - submitTime_ = subBuilder.buildPartial(); - } - - break; + submitTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(submitTime_); + submitTime_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_BatchTranslateMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_BatchTranslateMetadata_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.BatchTranslateMetadata.class, - com.google.cloud.translate.v3.BatchTranslateMetadata.Builder.class); + com.google.cloud.translate.v3.BatchTranslateMetadata.class, com.google.cloud.translate.v3.BatchTranslateMetadata.Builder.class); } /** - * - * *
    * State of the job.
    * 
* * Protobuf enum {@code google.cloud.translation.v3.BatchTranslateMetadata.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Invalid.
      * 
@@ -162,8 +137,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * Request is being processed.
      * 
@@ -172,8 +145,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ RUNNING(1), /** - * - * *
      * The batch is processed, and at least one item was successfully
      * processed.
@@ -183,8 +154,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     SUCCEEDED(2),
     /**
-     *
-     *
      * 
      * The batch is done and no item was successfully processed.
      * 
@@ -193,8 +162,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ FAILED(3), /** - * - * *
      * Request is in the process of being canceled after caller invoked
      * longrunning.Operations.CancelOperation on the request id.
@@ -204,8 +171,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     CANCELLING(4),
     /**
-     *
-     *
      * 
      * The batch is done after the user has called the
      * longrunning.Operations.CancelOperation. Any records processed before the
@@ -219,8 +184,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * Invalid.
      * 
@@ -229,8 +192,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Request is being processed.
      * 
@@ -239,8 +200,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RUNNING_VALUE = 1; /** - * - * *
      * The batch is processed, and at least one item was successfully
      * processed.
@@ -250,8 +209,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int SUCCEEDED_VALUE = 2;
     /**
-     *
-     *
      * 
      * The batch is done and no item was successfully processed.
      * 
@@ -260,8 +217,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FAILED_VALUE = 3; /** - * - * *
      * Request is in the process of being canceled after caller invoked
      * longrunning.Operations.CancelOperation on the request id.
@@ -271,8 +226,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int CANCELLING_VALUE = 4;
     /**
-     *
-     *
      * 
      * The batch is done after the user has called the
      * longrunning.Operations.CancelOperation. Any records processed before the
@@ -283,6 +236,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int CANCELLED_VALUE = 5;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -307,57 +261,52 @@ public static State valueOf(int value) {
      */
     public static State forNumber(int value) {
       switch (value) {
-        case 0:
-          return STATE_UNSPECIFIED;
-        case 1:
-          return RUNNING;
-        case 2:
-          return SUCCEEDED;
-        case 3:
-          return FAILED;
-        case 4:
-          return CANCELLING;
-        case 5:
-          return CANCELLED;
-        default:
-          return null;
+        case 0: return STATE_UNSPECIFIED;
+        case 1: return RUNNING;
+        case 2: return SUCCEEDED;
+        case 3: return FAILED;
+        case 4: return CANCELLING;
+        case 5: return CANCELLED;
+        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<
+        State> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public State findValueByNumber(int number) {
+              return State.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public State findValueByNumber(int number) {
-            return State.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.cloud.translate.v3.BatchTranslateMetadata.getDescriptor()
-          .getEnumTypes()
-          .get(0);
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
+      return com.google.cloud.translate.v3.BatchTranslateMetadata.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final State[] VALUES = values();
 
-    public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static State 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;
@@ -377,52 +326,38 @@ private State(int value) {
   public static final int STATE_FIELD_NUMBER = 1;
   private int state_;
   /**
-   *
-   *
    * 
    * The state of the operation.
    * 
* * .google.cloud.translation.v3.BatchTranslateMetadata.State state = 1; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * The state of the operation.
    * 
* * .google.cloud.translation.v3.BatchTranslateMetadata.State state = 1; - * * @return The state. */ - @java.lang.Override - public com.google.cloud.translate.v3.BatchTranslateMetadata.State getState() { + @java.lang.Override public com.google.cloud.translate.v3.BatchTranslateMetadata.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.translate.v3.BatchTranslateMetadata.State result = - com.google.cloud.translate.v3.BatchTranslateMetadata.State.valueOf(state_); - return result == null - ? com.google.cloud.translate.v3.BatchTranslateMetadata.State.UNRECOGNIZED - : result; + com.google.cloud.translate.v3.BatchTranslateMetadata.State result = com.google.cloud.translate.v3.BatchTranslateMetadata.State.valueOf(state_); + return result == null ? com.google.cloud.translate.v3.BatchTranslateMetadata.State.UNRECOGNIZED : result; } public static final int TRANSLATED_CHARACTERS_FIELD_NUMBER = 2; private long translatedCharacters_; /** - * - * *
    * Number of successfully translated characters so far (Unicode codepoints).
    * 
* * int64 translated_characters = 2; - * * @return The translatedCharacters. */ @java.lang.Override @@ -433,15 +368,12 @@ public long getTranslatedCharacters() { public static final int FAILED_CHARACTERS_FIELD_NUMBER = 3; private long failedCharacters_; /** - * - * *
    * Number of characters that have failed to process so far (Unicode
    * codepoints).
    * 
* * int64 failed_characters = 3; - * * @return The failedCharacters. */ @java.lang.Override @@ -452,8 +384,6 @@ public long getFailedCharacters() { public static final int TOTAL_CHARACTERS_FIELD_NUMBER = 4; private long totalCharacters_; /** - * - * *
    * Total number of characters (Unicode codepoints).
    * This is the total number of codepoints from input files times the number of
@@ -461,7 +391,6 @@ public long getFailedCharacters() {
    * 
* * int64 total_characters = 4; - * * @return The totalCharacters. */ @java.lang.Override @@ -472,14 +401,11 @@ public long getTotalCharacters() { public static final int SUBMIT_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp submitTime_; /** - * - * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 5; - * * @return Whether the submitTime field is set. */ @java.lang.Override @@ -487,14 +413,11 @@ public boolean hasSubmitTime() { return submitTime_ != null; } /** - * - * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 5; - * * @return The submitTime. */ @java.lang.Override @@ -502,8 +425,6 @@ public com.google.protobuf.Timestamp getSubmitTime() { return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } /** - * - * *
    * Time when the operation was submitted.
    * 
@@ -516,7 +437,6 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -528,10 +448,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (state_ - != com.google.cloud.translate.v3.BatchTranslateMetadata.State.STATE_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (state_ != com.google.cloud.translate.v3.BatchTranslateMetadata.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(1, state_); } if (translatedCharacters_ != 0L) { @@ -555,22 +474,25 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (state_ - != com.google.cloud.translate.v3.BatchTranslateMetadata.State.STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_); + if (state_ != com.google.cloud.translate.v3.BatchTranslateMetadata.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, state_); } if (translatedCharacters_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, translatedCharacters_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, translatedCharacters_); } if (failedCharacters_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, failedCharacters_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, failedCharacters_); } if (totalCharacters_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, totalCharacters_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(4, totalCharacters_); } if (submitTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getSubmitTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getSubmitTime()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -580,21 +502,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.cloud.translate.v3.BatchTranslateMetadata)) { return super.equals(obj); } - com.google.cloud.translate.v3.BatchTranslateMetadata other = - (com.google.cloud.translate.v3.BatchTranslateMetadata) obj; + com.google.cloud.translate.v3.BatchTranslateMetadata other = (com.google.cloud.translate.v3.BatchTranslateMetadata) obj; if (state_ != other.state_) return false; - if (getTranslatedCharacters() != other.getTranslatedCharacters()) return false; - if (getFailedCharacters() != other.getFailedCharacters()) return false; - if (getTotalCharacters() != other.getTotalCharacters()) return false; + if (getTranslatedCharacters() + != other.getTranslatedCharacters()) return false; + if (getFailedCharacters() + != other.getFailedCharacters()) return false; + if (getTotalCharacters() + != other.getTotalCharacters()) return false; if (hasSubmitTime() != other.hasSubmitTime()) return false; if (hasSubmitTime()) { - if (!getSubmitTime().equals(other.getSubmitTime())) return false; + if (!getSubmitTime() + .equals(other.getSubmitTime())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -610,11 +535,14 @@ public int hashCode() { hash = (37 * hash) + STATE_FIELD_NUMBER; hash = (53 * hash) + state_; hash = (37 * hash) + TRANSLATED_CHARACTERS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTranslatedCharacters()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTranslatedCharacters()); hash = (37 * hash) + FAILED_CHARACTERS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getFailedCharacters()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getFailedCharacters()); hash = (37 * hash) + TOTAL_CHARACTERS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalCharacters()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTotalCharacters()); if (hasSubmitTime()) { hash = (37 * hash) + SUBMIT_TIME_FIELD_NUMBER; hash = (53 * hash) + getSubmitTime().hashCode(); @@ -625,126 +553,117 @@ public int hashCode() { } public static com.google.cloud.translate.v3.BatchTranslateMetadata 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.cloud.translate.v3.BatchTranslateMetadata 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.cloud.translate.v3.BatchTranslateMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.BatchTranslateMetadata 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.cloud.translate.v3.BatchTranslateMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.BatchTranslateMetadata 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.cloud.translate.v3.BatchTranslateMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.BatchTranslateMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.BatchTranslateMetadata 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.cloud.translate.v3.BatchTranslateMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.BatchTranslateMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.BatchTranslateMetadata 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.cloud.translate.v3.BatchTranslateMetadata 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.cloud.translate.v3.BatchTranslateMetadata 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.cloud.translate.v3.BatchTranslateMetadata 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; } /** - * - * *
    * State metadata for the batch translation operation.
    * 
* * Protobuf type {@code google.cloud.translation.v3.BatchTranslateMetadata} */ - 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.translation.v3.BatchTranslateMetadata) com.google.cloud.translate.v3.BatchTranslateMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_BatchTranslateMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_BatchTranslateMetadata_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.BatchTranslateMetadata.class, - com.google.cloud.translate.v3.BatchTranslateMetadata.Builder.class); + com.google.cloud.translate.v3.BatchTranslateMetadata.class, com.google.cloud.translate.v3.BatchTranslateMetadata.Builder.class); } // Construct using com.google.cloud.translate.v3.BatchTranslateMetadata.newBuilder() @@ -752,15 +671,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -782,9 +702,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_BatchTranslateMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateMetadata_descriptor; } @java.lang.Override @@ -803,8 +723,7 @@ public com.google.cloud.translate.v3.BatchTranslateMetadata build() { @java.lang.Override public com.google.cloud.translate.v3.BatchTranslateMetadata buildPartial() { - com.google.cloud.translate.v3.BatchTranslateMetadata result = - new com.google.cloud.translate.v3.BatchTranslateMetadata(this); + com.google.cloud.translate.v3.BatchTranslateMetadata result = new com.google.cloud.translate.v3.BatchTranslateMetadata(this); result.state_ = state_; result.translatedCharacters_ = translatedCharacters_; result.failedCharacters_ = failedCharacters_; @@ -822,39 +741,38 @@ public com.google.cloud.translate.v3.BatchTranslateMetadata 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.cloud.translate.v3.BatchTranslateMetadata) { - return mergeFrom((com.google.cloud.translate.v3.BatchTranslateMetadata) other); + return mergeFrom((com.google.cloud.translate.v3.BatchTranslateMetadata)other); } else { super.mergeFrom(other); return this; @@ -862,8 +780,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.BatchTranslateMetadata other) { - if (other == com.google.cloud.translate.v3.BatchTranslateMetadata.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3.BatchTranslateMetadata.getDefaultInstance()) return this; if (other.state_ != 0) { setStateValue(other.getStateValue()); } @@ -898,8 +815,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.translate.v3.BatchTranslateMetadata) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.translate.v3.BatchTranslateMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -911,67 +827,51 @@ public Builder mergeFrom( private int state_ = 0; /** - * - * *
      * The state of the operation.
      * 
* * .google.cloud.translation.v3.BatchTranslateMetadata.State state = 1; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * The state of the operation.
      * 
* * .google.cloud.translation.v3.BatchTranslateMetadata.State state = 1; - * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** - * - * *
      * The state of the operation.
      * 
* * .google.cloud.translation.v3.BatchTranslateMetadata.State state = 1; - * * @return The state. */ @java.lang.Override public com.google.cloud.translate.v3.BatchTranslateMetadata.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.translate.v3.BatchTranslateMetadata.State result = - com.google.cloud.translate.v3.BatchTranslateMetadata.State.valueOf(state_); - return result == null - ? com.google.cloud.translate.v3.BatchTranslateMetadata.State.UNRECOGNIZED - : result; + com.google.cloud.translate.v3.BatchTranslateMetadata.State result = com.google.cloud.translate.v3.BatchTranslateMetadata.State.valueOf(state_); + return result == null ? com.google.cloud.translate.v3.BatchTranslateMetadata.State.UNRECOGNIZED : result; } /** - * - * *
      * The state of the operation.
      * 
* * .google.cloud.translation.v3.BatchTranslateMetadata.State state = 1; - * * @param value The state to set. * @return This builder for chaining. */ @@ -979,39 +879,33 @@ public Builder setState(com.google.cloud.translate.v3.BatchTranslateMetadata.Sta if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The state of the operation.
      * 
* * .google.cloud.translation.v3.BatchTranslateMetadata.State state = 1; - * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; } - private long translatedCharacters_; + private long translatedCharacters_ ; /** - * - * *
      * Number of successfully translated characters so far (Unicode codepoints).
      * 
* * int64 translated_characters = 2; - * * @return The translatedCharacters. */ @java.lang.Override @@ -1019,52 +913,43 @@ public long getTranslatedCharacters() { return translatedCharacters_; } /** - * - * *
      * Number of successfully translated characters so far (Unicode codepoints).
      * 
* * int64 translated_characters = 2; - * * @param value The translatedCharacters to set. * @return This builder for chaining. */ public Builder setTranslatedCharacters(long value) { - + translatedCharacters_ = value; onChanged(); return this; } /** - * - * *
      * Number of successfully translated characters so far (Unicode codepoints).
      * 
* * int64 translated_characters = 2; - * * @return This builder for chaining. */ public Builder clearTranslatedCharacters() { - + translatedCharacters_ = 0L; onChanged(); return this; } - private long failedCharacters_; + private long failedCharacters_ ; /** - * - * *
      * Number of characters that have failed to process so far (Unicode
      * codepoints).
      * 
* * int64 failed_characters = 3; - * * @return The failedCharacters. */ @java.lang.Override @@ -1072,47 +957,39 @@ public long getFailedCharacters() { return failedCharacters_; } /** - * - * *
      * Number of characters that have failed to process so far (Unicode
      * codepoints).
      * 
* * int64 failed_characters = 3; - * * @param value The failedCharacters to set. * @return This builder for chaining. */ public Builder setFailedCharacters(long value) { - + failedCharacters_ = value; onChanged(); return this; } /** - * - * *
      * Number of characters that have failed to process so far (Unicode
      * codepoints).
      * 
* * int64 failed_characters = 3; - * * @return This builder for chaining. */ public Builder clearFailedCharacters() { - + failedCharacters_ = 0L; onChanged(); return this; } - private long totalCharacters_; + private long totalCharacters_ ; /** - * - * *
      * Total number of characters (Unicode codepoints).
      * This is the total number of codepoints from input files times the number of
@@ -1120,7 +997,6 @@ public Builder clearFailedCharacters() {
      * 
* * int64 total_characters = 4; - * * @return The totalCharacters. */ @java.lang.Override @@ -1128,8 +1004,6 @@ public long getTotalCharacters() { return totalCharacters_; } /** - * - * *
      * Total number of characters (Unicode codepoints).
      * This is the total number of codepoints from input files times the number of
@@ -1137,19 +1011,16 @@ public long getTotalCharacters() {
      * 
* * int64 total_characters = 4; - * * @param value The totalCharacters to set. * @return This builder for chaining. */ public Builder setTotalCharacters(long value) { - + totalCharacters_ = value; onChanged(); return this; } /** - * - * *
      * Total number of characters (Unicode codepoints).
      * This is the total number of codepoints from input files times the number of
@@ -1157,11 +1028,10 @@ public Builder setTotalCharacters(long value) {
      * 
* * int64 total_characters = 4; - * * @return This builder for chaining. */ public Builder clearTotalCharacters() { - + totalCharacters_ = 0L; onChanged(); return this; @@ -1169,47 +1039,34 @@ public Builder clearTotalCharacters() { private com.google.protobuf.Timestamp submitTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - submitTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> submitTimeBuilder_; /** - * - * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 5; - * * @return Whether the submitTime field is set. */ public boolean hasSubmitTime() { return submitTimeBuilder_ != null || submitTime_ != null; } /** - * - * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 5; - * * @return The submitTime. */ public com.google.protobuf.Timestamp getSubmitTime() { if (submitTimeBuilder_ == null) { - return submitTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : submitTime_; + return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } else { return submitTimeBuilder_.getMessage(); } } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -1230,15 +1087,14 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 5; */ - public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setSubmitTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (submitTimeBuilder_ == null) { submitTime_ = builderForValue.build(); onChanged(); @@ -1249,8 +1105,6 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -1261,7 +1115,7 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { if (submitTimeBuilder_ == null) { if (submitTime_ != null) { submitTime_ = - com.google.protobuf.Timestamp.newBuilder(submitTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(submitTime_).mergeFrom(value).buildPartial(); } else { submitTime_ = value; } @@ -1273,8 +1127,6 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -1293,8 +1145,6 @@ public Builder clearSubmitTime() { return this; } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -1302,13 +1152,11 @@ public Builder clearSubmitTime() { * .google.protobuf.Timestamp submit_time = 5; */ public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder() { - + onChanged(); return getSubmitTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -1319,14 +1167,11 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { if (submitTimeBuilder_ != null) { return submitTimeBuilder_.getMessageOrBuilder(); } else { - return submitTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : submitTime_; + return submitTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -1334,24 +1179,21 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { * .google.protobuf.Timestamp submit_time = 5; */ 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> getSubmitTimeFieldBuilder() { if (submitTimeBuilder_ == null) { - submitTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getSubmitTime(), getParentForChildren(), isClean()); + submitTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getSubmitTime(), + getParentForChildren(), + isClean()); submitTime_ = null; } return submitTimeBuilder_; } - @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); } @@ -1361,12 +1203,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.BatchTranslateMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.BatchTranslateMetadata) private static final com.google.cloud.translate.v3.BatchTranslateMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.BatchTranslateMetadata(); } @@ -1375,16 +1217,16 @@ public static com.google.cloud.translate.v3.BatchTranslateMetadata getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchTranslateMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BatchTranslateMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchTranslateMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BatchTranslateMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1399,4 +1241,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.BatchTranslateMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateMetadataOrBuilder.java b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateMetadataOrBuilder.java similarity index 75% rename from proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateMetadataOrBuilder.java rename to owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateMetadataOrBuilder.java index 9833c920..337d2d9e 100644 --- a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateMetadataOrBuilder.java +++ b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateMetadataOrBuilder.java @@ -1,83 +1,53 @@ -/* - * Copyright 2020 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/translate/v3/translation_service.proto package com.google.cloud.translate.v3; -public interface BatchTranslateMetadataOrBuilder - extends +public interface BatchTranslateMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.BatchTranslateMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The state of the operation.
    * 
* * .google.cloud.translation.v3.BatchTranslateMetadata.State state = 1; - * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * The state of the operation.
    * 
* * .google.cloud.translation.v3.BatchTranslateMetadata.State state = 1; - * * @return The state. */ com.google.cloud.translate.v3.BatchTranslateMetadata.State getState(); /** - * - * *
    * Number of successfully translated characters so far (Unicode codepoints).
    * 
* * int64 translated_characters = 2; - * * @return The translatedCharacters. */ long getTranslatedCharacters(); /** - * - * *
    * Number of characters that have failed to process so far (Unicode
    * codepoints).
    * 
* * int64 failed_characters = 3; - * * @return The failedCharacters. */ long getFailedCharacters(); /** - * - * *
    * Total number of characters (Unicode codepoints).
    * This is the total number of codepoints from input files times the number of
@@ -85,38 +55,29 @@ public interface BatchTranslateMetadataOrBuilder
    * 
* * int64 total_characters = 4; - * * @return The totalCharacters. */ long getTotalCharacters(); /** - * - * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 5; - * * @return Whether the submitTime field is set. */ boolean hasSubmitTime(); /** - * - * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 5; - * * @return The submitTime. */ com.google.protobuf.Timestamp getSubmitTime(); /** - * - * *
    * Time when the operation was submitted.
    * 
diff --git a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateResponse.java b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateResponse.java similarity index 73% rename from proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateResponse.java rename to owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateResponse.java index 1d9f9f1d..7709d2e7 100644 --- a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateResponse.java +++ b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateResponse.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 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/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** - * - * *
  * Stored in the
  * [google.longrunning.Operation.response][google.longrunning.Operation.response]
@@ -30,29 +13,30 @@
  *
  * Protobuf type {@code google.cloud.translation.v3.BatchTranslateResponse}
  */
-public final class BatchTranslateResponse extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class BatchTranslateResponse extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.BatchTranslateResponse)
     BatchTranslateResponseOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use BatchTranslateResponse.newBuilder() to construct.
   private BatchTranslateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private BatchTranslateResponse() {}
+  private BatchTranslateResponse() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new BatchTranslateResponse();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private BatchTranslateResponse(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -71,96 +55,87 @@ private BatchTranslateResponse(
           case 0:
             done = true;
             break;
-          case 8:
-            {
-              totalCharacters_ = input.readInt64();
-              break;
-            }
-          case 16:
-            {
-              translatedCharacters_ = input.readInt64();
-              break;
+          case 8: {
+
+            totalCharacters_ = input.readInt64();
+            break;
+          }
+          case 16: {
+
+            translatedCharacters_ = input.readInt64();
+            break;
+          }
+          case 24: {
+
+            failedCharacters_ = input.readInt64();
+            break;
+          }
+          case 34: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (submitTime_ != null) {
+              subBuilder = submitTime_.toBuilder();
             }
-          case 24:
-            {
-              failedCharacters_ = input.readInt64();
-              break;
+            submitTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(submitTime_);
+              submitTime_ = subBuilder.buildPartial();
             }
-          case 34:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (submitTime_ != null) {
-                subBuilder = submitTime_.toBuilder();
-              }
-              submitTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(submitTime_);
-                submitTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+
+            break;
+          }
+          case 42: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (endTime_ != null) {
+              subBuilder = endTime_.toBuilder();
             }
-          case 42:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (endTime_ != null) {
-                subBuilder = endTime_.toBuilder();
-              }
-              endTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(endTime_);
-                endTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+            endTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(endTime_);
+              endTime_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.translate.v3.TranslationServiceProto
-        .internal_static_google_cloud_translation_v3_BatchTranslateResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.translate.v3.TranslationServiceProto
-        .internal_static_google_cloud_translation_v3_BatchTranslateResponse_fieldAccessorTable
+    return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.translate.v3.BatchTranslateResponse.class,
-            com.google.cloud.translate.v3.BatchTranslateResponse.Builder.class);
+            com.google.cloud.translate.v3.BatchTranslateResponse.class, com.google.cloud.translate.v3.BatchTranslateResponse.Builder.class);
   }
 
   public static final int TOTAL_CHARACTERS_FIELD_NUMBER = 1;
   private long totalCharacters_;
   /**
-   *
-   *
    * 
    * Total number of characters (Unicode codepoints).
    * 
* * int64 total_characters = 1; - * * @return The totalCharacters. */ @java.lang.Override @@ -171,14 +146,11 @@ public long getTotalCharacters() { public static final int TRANSLATED_CHARACTERS_FIELD_NUMBER = 2; private long translatedCharacters_; /** - * - * *
    * Number of successfully translated characters (Unicode codepoints).
    * 
* * int64 translated_characters = 2; - * * @return The translatedCharacters. */ @java.lang.Override @@ -189,14 +161,11 @@ public long getTranslatedCharacters() { public static final int FAILED_CHARACTERS_FIELD_NUMBER = 3; private long failedCharacters_; /** - * - * *
    * Number of characters that have failed to process (Unicode codepoints).
    * 
* * int64 failed_characters = 3; - * * @return The failedCharacters. */ @java.lang.Override @@ -207,14 +176,11 @@ public long getFailedCharacters() { public static final int SUBMIT_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp submitTime_; /** - * - * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 4; - * * @return Whether the submitTime field is set. */ @java.lang.Override @@ -222,14 +188,11 @@ public boolean hasSubmitTime() { return submitTime_ != null; } /** - * - * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 4; - * * @return The submitTime. */ @java.lang.Override @@ -237,8 +200,6 @@ public com.google.protobuf.Timestamp getSubmitTime() { return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } /** - * - * *
    * Time when the operation was submitted.
    * 
@@ -253,8 +214,6 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp endTime_; /** - * - * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -262,7 +221,6 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() {
    * 
* * .google.protobuf.Timestamp end_time = 5; - * * @return Whether the endTime field is set. */ @java.lang.Override @@ -270,8 +228,6 @@ public boolean hasEndTime() { return endTime_ != null; } /** - * - * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -279,7 +235,6 @@ public boolean hasEndTime() {
    * 
* * .google.protobuf.Timestamp end_time = 5; - * * @return The endTime. */ @java.lang.Override @@ -287,8 +242,6 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** - * - * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -303,7 +256,6 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -315,7 +267,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 (totalCharacters_ != 0L) {
       output.writeInt64(1, totalCharacters_);
     }
@@ -341,19 +294,24 @@ public int getSerializedSize() {
 
     size = 0;
     if (totalCharacters_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, totalCharacters_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(1, totalCharacters_);
     }
     if (translatedCharacters_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, translatedCharacters_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(2, translatedCharacters_);
     }
     if (failedCharacters_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, failedCharacters_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(3, failedCharacters_);
     }
     if (submitTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getSubmitTime());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(4, getSubmitTime());
     }
     if (endTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getEndTime());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(5, getEndTime());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -363,24 +321,28 @@ 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.cloud.translate.v3.BatchTranslateResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3.BatchTranslateResponse other =
-        (com.google.cloud.translate.v3.BatchTranslateResponse) obj;
+    com.google.cloud.translate.v3.BatchTranslateResponse other = (com.google.cloud.translate.v3.BatchTranslateResponse) obj;
 
-    if (getTotalCharacters() != other.getTotalCharacters()) return false;
-    if (getTranslatedCharacters() != other.getTranslatedCharacters()) return false;
-    if (getFailedCharacters() != other.getFailedCharacters()) return false;
+    if (getTotalCharacters()
+        != other.getTotalCharacters()) return false;
+    if (getTranslatedCharacters()
+        != other.getTranslatedCharacters()) return false;
+    if (getFailedCharacters()
+        != other.getFailedCharacters()) return false;
     if (hasSubmitTime() != other.hasSubmitTime()) return false;
     if (hasSubmitTime()) {
-      if (!getSubmitTime().equals(other.getSubmitTime())) return false;
+      if (!getSubmitTime()
+          .equals(other.getSubmitTime())) return false;
     }
     if (hasEndTime() != other.hasEndTime()) return false;
     if (hasEndTime()) {
-      if (!getEndTime().equals(other.getEndTime())) return false;
+      if (!getEndTime()
+          .equals(other.getEndTime())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -394,11 +356,14 @@ public int hashCode() {
     int hash = 41;
     hash = (19 * hash) + getDescriptor().hashCode();
     hash = (37 * hash) + TOTAL_CHARACTERS_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalCharacters());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+        getTotalCharacters());
     hash = (37 * hash) + TRANSLATED_CHARACTERS_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTranslatedCharacters());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+        getTranslatedCharacters());
     hash = (37 * hash) + FAILED_CHARACTERS_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getFailedCharacters());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+        getFailedCharacters());
     if (hasSubmitTime()) {
       hash = (37 * hash) + SUBMIT_TIME_FIELD_NUMBER;
       hash = (53 * hash) + getSubmitTime().hashCode();
@@ -413,103 +378,96 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3.BatchTranslateResponse 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.cloud.translate.v3.BatchTranslateResponse 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.cloud.translate.v3.BatchTranslateResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3.BatchTranslateResponse 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.cloud.translate.v3.BatchTranslateResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3.BatchTranslateResponse 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.cloud.translate.v3.BatchTranslateResponse parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3.BatchTranslateResponse parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3.BatchTranslateResponse 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.cloud.translate.v3.BatchTranslateResponse parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3.BatchTranslateResponse parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3.BatchTranslateResponse 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.cloud.translate.v3.BatchTranslateResponse 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.cloud.translate.v3.BatchTranslateResponse 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.cloud.translate.v3.BatchTranslateResponse 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;
   }
   /**
-   *
-   *
    * 
    * Stored in the
    * [google.longrunning.Operation.response][google.longrunning.Operation.response]
@@ -519,23 +477,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.translation.v3.BatchTranslateResponse}
    */
-  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.translation.v3.BatchTranslateResponse)
       com.google.cloud.translate.v3.BatchTranslateResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.translate.v3.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3_BatchTranslateResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.translate.v3.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3_BatchTranslateResponse_fieldAccessorTable
+      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.translate.v3.BatchTranslateResponse.class,
-              com.google.cloud.translate.v3.BatchTranslateResponse.Builder.class);
+              com.google.cloud.translate.v3.BatchTranslateResponse.class, com.google.cloud.translate.v3.BatchTranslateResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.translate.v3.BatchTranslateResponse.newBuilder()
@@ -543,15 +499,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -577,9 +534,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.translate.v3.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3_BatchTranslateResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateResponse_descriptor;
     }
 
     @java.lang.Override
@@ -598,8 +555,7 @@ public com.google.cloud.translate.v3.BatchTranslateResponse build() {
 
     @java.lang.Override
     public com.google.cloud.translate.v3.BatchTranslateResponse buildPartial() {
-      com.google.cloud.translate.v3.BatchTranslateResponse result =
-          new com.google.cloud.translate.v3.BatchTranslateResponse(this);
+      com.google.cloud.translate.v3.BatchTranslateResponse result = new com.google.cloud.translate.v3.BatchTranslateResponse(this);
       result.totalCharacters_ = totalCharacters_;
       result.translatedCharacters_ = translatedCharacters_;
       result.failedCharacters_ = failedCharacters_;
@@ -621,39 +577,38 @@ public com.google.cloud.translate.v3.BatchTranslateResponse 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.cloud.translate.v3.BatchTranslateResponse) {
-        return mergeFrom((com.google.cloud.translate.v3.BatchTranslateResponse) other);
+        return mergeFrom((com.google.cloud.translate.v3.BatchTranslateResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -661,8 +616,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.translate.v3.BatchTranslateResponse other) {
-      if (other == com.google.cloud.translate.v3.BatchTranslateResponse.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.translate.v3.BatchTranslateResponse.getDefaultInstance()) return this;
       if (other.getTotalCharacters() != 0L) {
         setTotalCharacters(other.getTotalCharacters());
       }
@@ -697,8 +651,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.translate.v3.BatchTranslateResponse) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.translate.v3.BatchTranslateResponse) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -708,16 +661,13 @@ public Builder mergeFrom(
       return this;
     }
 
-    private long totalCharacters_;
+    private long totalCharacters_ ;
     /**
-     *
-     *
      * 
      * Total number of characters (Unicode codepoints).
      * 
* * int64 total_characters = 1; - * * @return The totalCharacters. */ @java.lang.Override @@ -725,51 +675,42 @@ public long getTotalCharacters() { return totalCharacters_; } /** - * - * *
      * Total number of characters (Unicode codepoints).
      * 
* * int64 total_characters = 1; - * * @param value The totalCharacters to set. * @return This builder for chaining. */ public Builder setTotalCharacters(long value) { - + totalCharacters_ = value; onChanged(); return this; } /** - * - * *
      * Total number of characters (Unicode codepoints).
      * 
* * int64 total_characters = 1; - * * @return This builder for chaining. */ public Builder clearTotalCharacters() { - + totalCharacters_ = 0L; onChanged(); return this; } - private long translatedCharacters_; + private long translatedCharacters_ ; /** - * - * *
      * Number of successfully translated characters (Unicode codepoints).
      * 
* * int64 translated_characters = 2; - * * @return The translatedCharacters. */ @java.lang.Override @@ -777,51 +718,42 @@ public long getTranslatedCharacters() { return translatedCharacters_; } /** - * - * *
      * Number of successfully translated characters (Unicode codepoints).
      * 
* * int64 translated_characters = 2; - * * @param value The translatedCharacters to set. * @return This builder for chaining. */ public Builder setTranslatedCharacters(long value) { - + translatedCharacters_ = value; onChanged(); return this; } /** - * - * *
      * Number of successfully translated characters (Unicode codepoints).
      * 
* * int64 translated_characters = 2; - * * @return This builder for chaining. */ public Builder clearTranslatedCharacters() { - + translatedCharacters_ = 0L; onChanged(); return this; } - private long failedCharacters_; + private long failedCharacters_ ; /** - * - * *
      * Number of characters that have failed to process (Unicode codepoints).
      * 
* * int64 failed_characters = 3; - * * @return The failedCharacters. */ @java.lang.Override @@ -829,36 +761,30 @@ public long getFailedCharacters() { return failedCharacters_; } /** - * - * *
      * Number of characters that have failed to process (Unicode codepoints).
      * 
* * int64 failed_characters = 3; - * * @param value The failedCharacters to set. * @return This builder for chaining. */ public Builder setFailedCharacters(long value) { - + failedCharacters_ = value; onChanged(); return this; } /** - * - * *
      * Number of characters that have failed to process (Unicode codepoints).
      * 
* * int64 failed_characters = 3; - * * @return This builder for chaining. */ public Builder clearFailedCharacters() { - + failedCharacters_ = 0L; onChanged(); return this; @@ -866,47 +792,34 @@ public Builder clearFailedCharacters() { private com.google.protobuf.Timestamp submitTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - submitTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> submitTimeBuilder_; /** - * - * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 4; - * * @return Whether the submitTime field is set. */ public boolean hasSubmitTime() { return submitTimeBuilder_ != null || submitTime_ != null; } /** - * - * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 4; - * * @return The submitTime. */ public com.google.protobuf.Timestamp getSubmitTime() { if (submitTimeBuilder_ == null) { - return submitTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : submitTime_; + return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } else { return submitTimeBuilder_.getMessage(); } } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -927,15 +840,14 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 4; */ - public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setSubmitTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (submitTimeBuilder_ == null) { submitTime_ = builderForValue.build(); onChanged(); @@ -946,8 +858,6 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -958,7 +868,7 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { if (submitTimeBuilder_ == null) { if (submitTime_ != null) { submitTime_ = - com.google.protobuf.Timestamp.newBuilder(submitTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(submitTime_).mergeFrom(value).buildPartial(); } else { submitTime_ = value; } @@ -970,8 +880,6 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -990,8 +898,6 @@ public Builder clearSubmitTime() { return this; } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -999,13 +905,11 @@ public Builder clearSubmitTime() { * .google.protobuf.Timestamp submit_time = 4; */ public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder() { - + onChanged(); return getSubmitTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -1016,14 +920,11 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { if (submitTimeBuilder_ != null) { return submitTimeBuilder_.getMessageOrBuilder(); } else { - return submitTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : submitTime_; + return submitTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -1031,17 +932,14 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { * .google.protobuf.Timestamp submit_time = 4; */ 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> getSubmitTimeFieldBuilder() { if (submitTimeBuilder_ == null) { - submitTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getSubmitTime(), getParentForChildren(), isClean()); + submitTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getSubmitTime(), + getParentForChildren(), + isClean()); submitTime_ = null; } return submitTimeBuilder_; @@ -1049,13 +947,8 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - endTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; /** - * - * *
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1063,15 +956,12 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() {
      * 
* * .google.protobuf.Timestamp end_time = 5; - * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; } /** - * - * *
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1079,7 +969,6 @@ public boolean hasEndTime() {
      * 
* * .google.protobuf.Timestamp end_time = 5; - * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1090,8 +979,6 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** - * - * *
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1114,8 +1001,6 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1124,7 +1009,8 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp end_time = 5;
      */
-    public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setEndTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (endTimeBuilder_ == null) {
         endTime_ = builderForValue.build();
         onChanged();
@@ -1135,8 +1021,6 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue)
       return this;
     }
     /**
-     *
-     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1149,7 +1033,7 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       if (endTimeBuilder_ == null) {
         if (endTime_ != null) {
           endTime_ =
-              com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial();
+            com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial();
         } else {
           endTime_ = value;
         }
@@ -1161,8 +1045,6 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1183,8 +1065,6 @@ public Builder clearEndTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1194,13 +1074,11 @@ public Builder clearEndTime() {
      * .google.protobuf.Timestamp end_time = 5;
      */
     public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() {
-
+      
       onChanged();
       return getEndTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1213,12 +1091,11 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
       if (endTimeBuilder_ != null) {
         return endTimeBuilder_.getMessageOrBuilder();
       } else {
-        return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
+        return endTime_ == null ?
+            com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
       }
     }
     /**
-     *
-     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1228,24 +1105,21 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
      * .google.protobuf.Timestamp end_time = 5;
      */
     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> 
         getEndTimeFieldBuilder() {
       if (endTimeBuilder_ == null) {
-        endTimeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Timestamp,
-                com.google.protobuf.Timestamp.Builder,
-                com.google.protobuf.TimestampOrBuilder>(
-                getEndTime(), getParentForChildren(), isClean());
+        endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                getEndTime(),
+                getParentForChildren(),
+                isClean());
         endTime_ = null;
       }
       return endTimeBuilder_;
     }
-
     @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);
     }
 
@@ -1255,12 +1129,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.BatchTranslateResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.BatchTranslateResponse)
   private static final com.google.cloud.translate.v3.BatchTranslateResponse DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3.BatchTranslateResponse();
   }
@@ -1269,16 +1143,16 @@ public static com.google.cloud.translate.v3.BatchTranslateResponse getDefaultIns
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public BatchTranslateResponse parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new BatchTranslateResponse(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public BatchTranslateResponse parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new BatchTranslateResponse(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1293,4 +1167,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3.BatchTranslateResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateResponseOrBuilder.java b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateResponseOrBuilder.java
similarity index 76%
rename from proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateResponseOrBuilder.java
rename to owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateResponseOrBuilder.java
index 59d3e365..e7a723c7 100644
--- a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateResponseOrBuilder.java
+++ b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateResponseOrBuilder.java
@@ -1,94 +1,61 @@
-/*
- * Copyright 2020 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/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
-public interface BatchTranslateResponseOrBuilder
-    extends
+public interface BatchTranslateResponseOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.BatchTranslateResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Total number of characters (Unicode codepoints).
    * 
* * int64 total_characters = 1; - * * @return The totalCharacters. */ long getTotalCharacters(); /** - * - * *
    * Number of successfully translated characters (Unicode codepoints).
    * 
* * int64 translated_characters = 2; - * * @return The translatedCharacters. */ long getTranslatedCharacters(); /** - * - * *
    * Number of characters that have failed to process (Unicode codepoints).
    * 
* * int64 failed_characters = 3; - * * @return The failedCharacters. */ long getFailedCharacters(); /** - * - * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 4; - * * @return Whether the submitTime field is set. */ boolean hasSubmitTime(); /** - * - * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 4; - * * @return The submitTime. */ com.google.protobuf.Timestamp getSubmitTime(); /** - * - * *
    * Time when the operation was submitted.
    * 
@@ -98,8 +65,6 @@ public interface BatchTranslateResponseOrBuilder com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder(); /** - * - * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -107,13 +72,10 @@ public interface BatchTranslateResponseOrBuilder
    * 
* * .google.protobuf.Timestamp end_time = 5; - * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** - * - * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -121,13 +83,10 @@ public interface BatchTranslateResponseOrBuilder
    * 
* * .google.protobuf.Timestamp end_time = 5; - * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** - * - * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
diff --git a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateTextRequest.java b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateTextRequest.java
similarity index 65%
rename from proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateTextRequest.java
rename to owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateTextRequest.java
index 986c4629..1ef9f9d6 100644
--- a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateTextRequest.java
+++ b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateTextRequest.java
@@ -1,42 +1,24 @@
-/*
- * Copyright 2020 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/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
 /**
- *
- *
  * 
  * The batch translation request.
  * 
* * Protobuf type {@code google.cloud.translation.v3.BatchTranslateTextRequest} */ -public final class BatchTranslateTextRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BatchTranslateTextRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.BatchTranslateTextRequest) BatchTranslateTextRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BatchTranslateTextRequest.newBuilder() to construct. private BatchTranslateTextRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BatchTranslateTextRequest() { parent_ = ""; sourceLanguageCode_ = ""; @@ -46,15 +28,16 @@ private BatchTranslateTextRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BatchTranslateTextRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private BatchTranslateTextRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -74,114 +57,102 @@ private BatchTranslateTextRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - sourceLanguageCode_ = s; - break; + sourceLanguageCode_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + targetLanguageCodes_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - targetLanguageCodes_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - targetLanguageCodes_.add(s); - break; + targetLanguageCodes_.add(s); + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + models_ = com.google.protobuf.MapField.newMapField( + ModelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000002; } - case 34: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - models_ = - com.google.protobuf.MapField.newMapField(ModelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000002; - } - com.google.protobuf.MapEntry models__ = - input.readMessage( - ModelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - models_.getMutableMap().put(models__.getKey(), models__.getValue()); - break; + com.google.protobuf.MapEntry + models__ = input.readMessage( + ModelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + models_.getMutableMap().put( + models__.getKey(), models__.getValue()); + break; + } + case 42: { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + inputConfigs_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; } - case 42: - { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - inputConfigs_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - inputConfigs_.add( - input.readMessage( - com.google.cloud.translate.v3.InputConfig.parser(), extensionRegistry)); - break; + inputConfigs_.add( + input.readMessage(com.google.cloud.translate.v3.InputConfig.parser(), extensionRegistry)); + break; + } + case 50: { + com.google.cloud.translate.v3.OutputConfig.Builder subBuilder = null; + if (outputConfig_ != null) { + subBuilder = outputConfig_.toBuilder(); } - case 50: - { - com.google.cloud.translate.v3.OutputConfig.Builder subBuilder = null; - if (outputConfig_ != null) { - subBuilder = outputConfig_.toBuilder(); - } - outputConfig_ = - input.readMessage( - com.google.cloud.translate.v3.OutputConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(outputConfig_); - outputConfig_ = subBuilder.buildPartial(); - } - - break; + outputConfig_ = input.readMessage(com.google.cloud.translate.v3.OutputConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(outputConfig_); + outputConfig_ = subBuilder.buildPartial(); } - case 58: - { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - glossaries_ = - com.google.protobuf.MapField.newMapField( - GlossariesDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000008; - } - com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig> - glossaries__ = - input.readMessage( - GlossariesDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - glossaries_.getMutableMap().put(glossaries__.getKey(), glossaries__.getValue()); - break; + + break; + } + case 58: { + if (!((mutable_bitField0_ & 0x00000008) != 0)) { + glossaries_ = com.google.protobuf.MapField.newMapField( + GlossariesDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000008; } - case 74: - { - if (!((mutable_bitField0_ & 0x00000010) != 0)) { - labels_ = - com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000010; - } - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); - break; + com.google.protobuf.MapEntry + glossaries__ = input.readMessage( + GlossariesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + glossaries_.getMutableMap().put( + glossaries__.getKey(), glossaries__.getValue()); + break; + } + case 74: { + if (!((mutable_bitField0_ & 0x00000010) != 0)) { + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000010; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put( + labels__.getKey(), labels__.getValue()); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { targetLanguageCodes_ = targetLanguageCodes_.getUnmodifiableView(); @@ -193,15 +164,15 @@ private BatchTranslateTextRequest( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_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 4: return internalGetModels(); @@ -210,25 +181,21 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { case 9: 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.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.BatchTranslateTextRequest.class, - com.google.cloud.translate.v3.BatchTranslateTextRequest.Builder.class); + com.google.cloud.translate.v3.BatchTranslateTextRequest.class, com.google.cloud.translate.v3.BatchTranslateTextRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. Location to make a call. Must refer to a caller's project.
    * Format: `projects/{project-number-or-id}/locations/{location-id}`.
@@ -238,10 +205,7 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
    * error is returned.
    * 
* - * - * 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 @@ -250,15 +214,14 @@ 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. Location to make a call. Must refer to a caller's project.
    * Format: `projects/{project-number-or-id}/locations/{location-id}`.
@@ -268,18 +231,17 @@ public java.lang.String getParent() {
    * error is returned.
    * 
* - * - * 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 { @@ -290,14 +252,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int SOURCE_LANGUAGE_CODE_FIELD_NUMBER = 2; private volatile java.lang.Object sourceLanguageCode_; /** - * - * *
    * Required. Source language code.
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The sourceLanguageCode. */ @java.lang.Override @@ -306,29 +265,29 @@ public java.lang.String getSourceLanguageCode() { 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(); sourceLanguageCode_ = s; return s; } } /** - * - * *
    * Required. Source language code.
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for sourceLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { + public com.google.protobuf.ByteString + getSourceLanguageCodeBytes() { java.lang.Object ref = sourceLanguageCode_; 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); sourceLanguageCode_ = b; return b; } else { @@ -339,45 +298,34 @@ public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { public static final int TARGET_LANGUAGE_CODES_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList targetLanguageCodes_; /** - * - * *
    * Required. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @return A list containing the targetLanguageCodes. */ - public com.google.protobuf.ProtocolStringList getTargetLanguageCodesList() { + public com.google.protobuf.ProtocolStringList + getTargetLanguageCodesList() { return targetLanguageCodes_; } /** - * - * *
    * Required. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The count of targetLanguageCodes. */ public int getTargetLanguageCodesCount() { return targetLanguageCodes_.size(); } /** - * - * *
    * Required. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param index The index of the element to return. * @return The targetLanguageCodes at the given index. */ @@ -385,40 +333,38 @@ public java.lang.String getTargetLanguageCodes(int index) { return targetLanguageCodes_.get(index); } /** - * - * *
    * Required. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param index The index of the value to return. * @return The bytes of the targetLanguageCodes at the given index. */ - public com.google.protobuf.ByteString getTargetLanguageCodesBytes(int index) { + public com.google.protobuf.ByteString + getTargetLanguageCodesBytes(int index) { return targetLanguageCodes_.getByteString(index); } public static final int MODELS_FIELD_NUMBER = 4; - private static final class ModelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_ModelsEntry_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.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_ModelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - - private com.google.protobuf.MapField models_; - - private com.google.protobuf.MapField internalGetModels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> models_; + private com.google.protobuf.MapField + internalGetModels() { if (models_ == null) { - return com.google.protobuf.MapField.emptyMapField(ModelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + ModelsDefaultEntryHolder.defaultEntry); } return models_; } @@ -427,8 +373,6 @@ public int getModelsCount() { return internalGetModels().getMap().size(); } /** - * - * *
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is model name. Value can be a built-in general model,
@@ -444,22 +388,22 @@ public int getModelsCount() {
    *
    * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
+
   @java.lang.Override
-  public boolean containsModels(java.lang.String key) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
+  public boolean containsModels(
+      java.lang.String key) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
     return internalGetModels().getMap().containsKey(key);
   }
-  /** Use {@link #getModelsMap()} instead. */
+  /**
+   * Use {@link #getModelsMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getModels() {
     return getModelsMap();
   }
   /**
-   *
-   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is model name. Value can be a built-in general model,
@@ -476,12 +420,11 @@ public java.util.Map getModels() {
    * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
+
   public java.util.Map getModelsMap() {
     return internalGetModels().getMap();
   }
   /**
-   *
-   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is model name. Value can be a built-in general model,
@@ -498,16 +441,16 @@ public java.util.Map getModelsMap() {
    * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public java.lang.String getModelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
-    java.util.Map map = internalGetModels().getMap();
+
+  public java.lang.String getModelsOrDefault(
+      java.lang.String key,
+      java.lang.String defaultValue) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
+    java.util.Map map =
+        internalGetModels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is model name. Value can be a built-in general model,
@@ -524,11 +467,12 @@ public java.lang.String getModelsOrDefault(java.lang.String key, java.lang.Strin
    * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public java.lang.String getModelsOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
-    java.util.Map map = internalGetModels().getMap();
+
+  public java.lang.String getModelsOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
+    java.util.Map map =
+        internalGetModels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -538,8 +482,6 @@ public java.lang.String getModelsOrThrow(java.lang.String key) {
   public static final int INPUT_CONFIGS_FIELD_NUMBER = 5;
   private java.util.List inputConfigs_;
   /**
-   *
-   *
    * 
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -547,17 +489,13 @@ public java.lang.String getModelsOrThrow(java.lang.String key) {
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public java.util.List getInputConfigsList() { return inputConfigs_; } /** - * - * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -565,18 +503,14 @@ public java.util.List getInputConfigs
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public java.util.List + public java.util.List getInputConfigsOrBuilderList() { return inputConfigs_; } /** - * - * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -584,17 +518,13 @@ public java.util.List getInputConfigs
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public int getInputConfigsCount() { return inputConfigs_.size(); } /** - * - * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -602,17 +532,13 @@ public int getInputConfigsCount() {
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.translate.v3.InputConfig getInputConfigs(int index) { return inputConfigs_.get(index); } /** - * - * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -620,30 +546,24 @@ public com.google.cloud.translate.v3.InputConfig getInputConfigs(int index) {
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.translate.v3.InputConfigOrBuilder getInputConfigsOrBuilder(int index) { + public com.google.cloud.translate.v3.InputConfigOrBuilder getInputConfigsOrBuilder( + int index) { return inputConfigs_.get(index); } public static final int OUTPUT_CONFIG_FIELD_NUMBER = 6; private com.google.cloud.translate.v3.OutputConfig outputConfig_; /** - * - * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * - * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the outputConfig field is set. */ @java.lang.Override @@ -651,38 +571,27 @@ public boolean hasOutputConfig() { return outputConfig_ != null; } /** - * - * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * - * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; * @return The outputConfig. */ @java.lang.Override public com.google.cloud.translate.v3.OutputConfig getOutputConfig() { - return outputConfig_ == null - ? com.google.cloud.translate.v3.OutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? com.google.cloud.translate.v3.OutputConfig.getDefaultInstance() : outputConfig_; } /** - * - * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * - * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.translate.v3.OutputConfigOrBuilder getOutputConfigOrBuilder() { @@ -690,32 +599,24 @@ public com.google.cloud.translate.v3.OutputConfigOrBuilder getOutputConfigOrBuil } public static final int GLOSSARIES_FIELD_NUMBER = 7; - private static final class GlossariesDefaultEntryHolder { static final com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig> - defaultEntry = + java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig> defaultEntry = com.google.protobuf.MapEntry - . - newDefaultInstance( - com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_GlossariesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.cloud.translate.v3.TranslateTextGlossaryConfig - .getDefaultInstance()); + .newDefaultInstance( + com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_GlossariesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance()); } - - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig> - glossaries_; - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig> - internalGetGlossaries() { + java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig> glossaries_; + private com.google.protobuf.MapField + internalGetGlossaries() { if (glossaries_ == null) { - return com.google.protobuf.MapField.emptyMapField(GlossariesDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + GlossariesDefaultEntryHolder.defaultEntry); } return glossaries_; } @@ -724,89 +625,72 @@ public int getGlossariesCount() { return internalGetGlossaries().getMap().size(); } /** - * - * *
    * Optional. Glossaries to be applied for translation.
    * It's keyed by target language code.
    * 
* - * - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ + @java.lang.Override - public boolean containsGlossaries(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } + public boolean containsGlossaries( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } return internalGetGlossaries().getMap().containsKey(key); } - /** Use {@link #getGlossariesMap()} instead. */ + /** + * Use {@link #getGlossariesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated - public java.util.Map - getGlossaries() { + public java.util.Map getGlossaries() { return getGlossariesMap(); } /** - * - * *
    * Optional. Glossaries to be applied for translation.
    * It's keyed by target language code.
    * 
* - * - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.Map - getGlossariesMap() { + + public java.util.Map getGlossariesMap() { return internalGetGlossaries().getMap(); } /** - * - * *
    * Optional. Glossaries to be applied for translation.
    * It's keyed by target language code.
    * 
* - * - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOrDefault( java.lang.String key, com.google.cloud.translate.v3.TranslateTextGlossaryConfig defaultValue) { - if (key == null) { - throw new java.lang.NullPointerException(); - } + if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetGlossaries().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Optional. Glossaries to be applied for translation.
    * It's keyed by target language code.
    * 
* - * - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOrThrow( java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } + if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetGlossaries().getMap(); if (!map.containsKey(key)) { @@ -816,23 +700,24 @@ public com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOr } public static final int LABELS_FIELD_NUMBER = 9; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_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.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - - 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_; } @@ -841,8 +726,6 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Optional. The labels with user-defined metadata for the request.
    * Label keys and values can be no longer than 63 characters
@@ -855,22 +738,22 @@ public int getLabelsCount() {
    *
    * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
    */
+
   @java.lang.Override
-  public boolean containsLabels(java.lang.String key) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
+  public boolean containsLabels(
+      java.lang.String key) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
     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. The labels with user-defined metadata for the request.
    * Label keys and values can be no longer than 63 characters
@@ -884,12 +767,11 @@ public java.util.Map getLabels() {
    * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
+
   public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    * Label keys and values can be no longer than 63 characters
@@ -903,16 +785,16 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
-    java.util.Map map = internalGetLabels().getMap();
+
+  public java.lang.String getLabelsOrDefault(
+      java.lang.String key,
+      java.lang.String defaultValue) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    * Label keys and values can be no longer than 63 characters
@@ -926,11 +808,12 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin
    * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
-    java.util.Map map = internalGetLabels().getMap();
+
+  public java.lang.String getLabelsOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -938,7 +821,6 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -950,28 +832,41 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
-    if (!getParentBytes().isEmpty()) {
+  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_);
     }
-    if (!getSourceLanguageCodeBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceLanguageCode_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 2, sourceLanguageCode_);
     }
     for (int i = 0; i < targetLanguageCodes_.size(); i++) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 3, targetLanguageCodes_.getRaw(i));
     }
-    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
-        output, internalGetModels(), ModelsDefaultEntryHolder.defaultEntry, 4);
+    com.google.protobuf.GeneratedMessageV3
+      .serializeStringMapTo(
+        output,
+        internalGetModels(),
+        ModelsDefaultEntryHolder.defaultEntry,
+        4);
     for (int i = 0; i < inputConfigs_.size(); i++) {
       output.writeMessage(5, inputConfigs_.get(i));
     }
     if (outputConfig_ != null) {
       output.writeMessage(6, getOutputConfig());
     }
-    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
-        output, internalGetGlossaries(), GlossariesDefaultEntryHolder.defaultEntry, 7);
-    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
-        output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 9);
+    com.google.protobuf.GeneratedMessageV3
+      .serializeStringMapTo(
+        output,
+        internalGetGlossaries(),
+        GlossariesDefaultEntryHolder.defaultEntry,
+        7);
+    com.google.protobuf.GeneratedMessageV3
+      .serializeStringMapTo(
+        output,
+        internalGetLabels(),
+        LabelsDefaultEntryHolder.defaultEntry,
+        9);
     unknownFields.writeTo(output);
   }
 
@@ -981,10 +876,10 @@ public int getSerializedSize() {
     if (size != -1) return size;
 
     size = 0;
-    if (!getParentBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_);
     }
-    if (!getSourceLanguageCodeBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceLanguageCode_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, sourceLanguageCode_);
     }
     {
@@ -995,44 +890,43 @@ public int getSerializedSize() {
       size += dataSize;
       size += 1 * getTargetLanguageCodesList().size();
     }
-    for (java.util.Map.Entry entry :
-        internalGetModels().getMap().entrySet()) {
-      com.google.protobuf.MapEntry models__ =
-          ModelsDefaultEntryHolder.defaultEntry
-              .newBuilderForType()
-              .setKey(entry.getKey())
-              .setValue(entry.getValue())
-              .build();
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, models__);
+    for (java.util.Map.Entry entry
+         : internalGetModels().getMap().entrySet()) {
+      com.google.protobuf.MapEntry
+      models__ = ModelsDefaultEntryHolder.defaultEntry.newBuilderForType()
+          .setKey(entry.getKey())
+          .setValue(entry.getValue())
+          .build();
+      size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(4, models__);
     }
     for (int i = 0; i < inputConfigs_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, inputConfigs_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(5, inputConfigs_.get(i));
     }
     if (outputConfig_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getOutputConfig());
-    }
-    for (java.util.Map.Entry<
-            java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig>
-        entry : internalGetGlossaries().getMap().entrySet()) {
-      com.google.protobuf.MapEntry<
-              java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig>
-          glossaries__ =
-              GlossariesDefaultEntryHolder.defaultEntry
-                  .newBuilderForType()
-                  .setKey(entry.getKey())
-                  .setValue(entry.getValue())
-                  .build();
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, glossaries__);
-    }
-    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(9, labels__);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(6, getOutputConfig());
+    }
+    for (java.util.Map.Entry entry
+         : internalGetGlossaries().getMap().entrySet()) {
+      com.google.protobuf.MapEntry
+      glossaries__ = GlossariesDefaultEntryHolder.defaultEntry.newBuilderForType()
+          .setKey(entry.getKey())
+          .setValue(entry.getValue())
+          .build();
+      size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(7, glossaries__);
+    }
+    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(9, labels__);
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -1042,25 +936,32 @@ 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.cloud.translate.v3.BatchTranslateTextRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3.BatchTranslateTextRequest other =
-        (com.google.cloud.translate.v3.BatchTranslateTextRequest) obj;
-
-    if (!getParent().equals(other.getParent())) return false;
-    if (!getSourceLanguageCode().equals(other.getSourceLanguageCode())) return false;
-    if (!getTargetLanguageCodesList().equals(other.getTargetLanguageCodesList())) return false;
-    if (!internalGetModels().equals(other.internalGetModels())) return false;
-    if (!getInputConfigsList().equals(other.getInputConfigsList())) return false;
+    com.google.cloud.translate.v3.BatchTranslateTextRequest other = (com.google.cloud.translate.v3.BatchTranslateTextRequest) obj;
+
+    if (!getParent()
+        .equals(other.getParent())) return false;
+    if (!getSourceLanguageCode()
+        .equals(other.getSourceLanguageCode())) return false;
+    if (!getTargetLanguageCodesList()
+        .equals(other.getTargetLanguageCodesList())) return false;
+    if (!internalGetModels().equals(
+        other.internalGetModels())) return false;
+    if (!getInputConfigsList()
+        .equals(other.getInputConfigsList())) return false;
     if (hasOutputConfig() != other.hasOutputConfig()) return false;
     if (hasOutputConfig()) {
-      if (!getOutputConfig().equals(other.getOutputConfig())) return false;
+      if (!getOutputConfig()
+          .equals(other.getOutputConfig())) return false;
     }
-    if (!internalGetGlossaries().equals(other.internalGetGlossaries())) return false;
-    if (!internalGetLabels().equals(other.internalGetLabels())) return false;
+    if (!internalGetGlossaries().equals(
+        other.internalGetGlossaries())) return false;
+    if (!internalGetLabels().equals(
+        other.internalGetLabels())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -1106,121 +1007,114 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3.BatchTranslateTextRequest 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.cloud.translate.v3.BatchTranslateTextRequest 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.cloud.translate.v3.BatchTranslateTextRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3.BatchTranslateTextRequest 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.cloud.translate.v3.BatchTranslateTextRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3.BatchTranslateTextRequest 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.cloud.translate.v3.BatchTranslateTextRequest parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3.BatchTranslateTextRequest parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3.BatchTranslateTextRequest 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.cloud.translate.v3.BatchTranslateTextRequest parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3.BatchTranslateTextRequest parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3.BatchTranslateTextRequest 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.cloud.translate.v3.BatchTranslateTextRequest 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.cloud.translate.v3.BatchTranslateTextRequest 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.cloud.translate.v3.BatchTranslateTextRequest prototype) {
+  public static Builder newBuilder(com.google.cloud.translate.v3.BatchTranslateTextRequest 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 batch translation request.
    * 
* * Protobuf type {@code google.cloud.translation.v3.BatchTranslateTextRequest} */ - 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.translation.v3.BatchTranslateTextRequest) com.google.cloud.translate.v3.BatchTranslateTextRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 4: return internalGetModels(); @@ -1229,12 +1123,13 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { case 9: 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 4: return internalGetMutableModels(); @@ -1243,18 +1138,16 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) { case 9: 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.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.BatchTranslateTextRequest.class, - com.google.cloud.translate.v3.BatchTranslateTextRequest.Builder.class); + com.google.cloud.translate.v3.BatchTranslateTextRequest.class, com.google.cloud.translate.v3.BatchTranslateTextRequest.Builder.class); } // Construct using com.google.cloud.translate.v3.BatchTranslateTextRequest.newBuilder() @@ -1262,17 +1155,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getInputConfigsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1301,9 +1194,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_descriptor; } @java.lang.Override @@ -1322,8 +1215,7 @@ public com.google.cloud.translate.v3.BatchTranslateTextRequest build() { @java.lang.Override public com.google.cloud.translate.v3.BatchTranslateTextRequest buildPartial() { - com.google.cloud.translate.v3.BatchTranslateTextRequest result = - new com.google.cloud.translate.v3.BatchTranslateTextRequest(this); + com.google.cloud.translate.v3.BatchTranslateTextRequest result = new com.google.cloud.translate.v3.BatchTranslateTextRequest(this); int from_bitField0_ = bitField0_; result.parent_ = parent_; result.sourceLanguageCode_ = sourceLanguageCode_; @@ -1360,39 +1252,38 @@ public com.google.cloud.translate.v3.BatchTranslateTextRequest 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.cloud.translate.v3.BatchTranslateTextRequest) { - return mergeFrom((com.google.cloud.translate.v3.BatchTranslateTextRequest) other); + return mergeFrom((com.google.cloud.translate.v3.BatchTranslateTextRequest)other); } else { super.mergeFrom(other); return this; @@ -1400,8 +1291,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.BatchTranslateTextRequest other) { - if (other == com.google.cloud.translate.v3.BatchTranslateTextRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3.BatchTranslateTextRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -1420,7 +1310,8 @@ public Builder mergeFrom(com.google.cloud.translate.v3.BatchTranslateTextRequest } onChanged(); } - internalGetMutableModels().mergeFrom(other.internalGetModels()); + internalGetMutableModels().mergeFrom( + other.internalGetModels()); if (inputConfigsBuilder_ == null) { if (!other.inputConfigs_.isEmpty()) { if (inputConfigs_.isEmpty()) { @@ -1439,10 +1330,9 @@ public Builder mergeFrom(com.google.cloud.translate.v3.BatchTranslateTextRequest inputConfigsBuilder_ = null; inputConfigs_ = other.inputConfigs_; bitField0_ = (bitField0_ & ~0x00000004); - inputConfigsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getInputConfigsFieldBuilder() - : null; + inputConfigsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getInputConfigsFieldBuilder() : null; } else { inputConfigsBuilder_.addAllMessages(other.inputConfigs_); } @@ -1451,8 +1341,10 @@ public Builder mergeFrom(com.google.cloud.translate.v3.BatchTranslateTextRequest if (other.hasOutputConfig()) { mergeOutputConfig(other.getOutputConfig()); } - internalGetMutableGlossaries().mergeFrom(other.internalGetGlossaries()); - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + internalGetMutableGlossaries().mergeFrom( + other.internalGetGlossaries()); + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -1472,8 +1364,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.translate.v3.BatchTranslateTextRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.translate.v3.BatchTranslateTextRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1482,13 +1373,10 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Location to make a call. Must refer to a caller's project.
      * Format: `projects/{project-number-or-id}/locations/{location-id}`.
@@ -1498,16 +1386,14 @@ public Builder mergeFrom(
      * error is returned.
      * 
* - * - * 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; @@ -1516,8 +1402,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Location to make a call. Must refer to a caller's project.
      * Format: `projects/{project-number-or-id}/locations/{location-id}`.
@@ -1527,17 +1411,16 @@ public java.lang.String getParent() {
      * error is returned.
      * 
* - * - * 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 { @@ -1545,8 +1428,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Location to make a call. Must refer to a caller's project.
      * Format: `projects/{project-number-or-id}/locations/{location-id}`.
@@ -1556,25 +1437,21 @@ public com.google.protobuf.ByteString getParentBytes() {
      * error is returned.
      * 
* - * - * 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) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. Location to make a call. Must refer to a caller's project.
      * Format: `projects/{project-number-or-id}/locations/{location-id}`.
@@ -1584,21 +1461,16 @@ public Builder setParent(java.lang.String value) {
      * error is returned.
      * 
* - * - * 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() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. Location to make a call. Must refer to a caller's project.
      * Format: `projects/{project-number-or-id}/locations/{location-id}`.
@@ -1608,19 +1480,17 @@ public Builder clearParent() {
      * error is returned.
      * 
* - * - * 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) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -1628,20 +1498,18 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object sourceLanguageCode_ = ""; /** - * - * *
      * Required. Source language code.
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The sourceLanguageCode. */ public java.lang.String getSourceLanguageCode() { java.lang.Object ref = sourceLanguageCode_; 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(); sourceLanguageCode_ = s; return s; @@ -1650,21 +1518,20 @@ public java.lang.String getSourceLanguageCode() { } } /** - * - * *
      * Required. Source language code.
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for sourceLanguageCode. */ - public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { + public com.google.protobuf.ByteString + getSourceLanguageCodeBytes() { java.lang.Object ref = sourceLanguageCode_; 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); sourceLanguageCode_ = b; return b; } else { @@ -1672,115 +1539,95 @@ public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { } } /** - * - * *
      * Required. Source language code.
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCode(java.lang.String value) { + public Builder setSourceLanguageCode( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + sourceLanguageCode_ = value; onChanged(); return this; } /** - * - * *
      * Required. Source language code.
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearSourceLanguageCode() { - + sourceLanguageCode_ = getDefaultInstance().getSourceLanguageCode(); onChanged(); return this; } /** - * - * *
      * Required. Source language code.
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCodeBytes(com.google.protobuf.ByteString value) { + public Builder setSourceLanguageCodeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceLanguageCode_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList targetLanguageCodes_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList targetLanguageCodes_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureTargetLanguageCodesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { targetLanguageCodes_ = new com.google.protobuf.LazyStringArrayList(targetLanguageCodes_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * Required. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @return A list containing the targetLanguageCodes. */ - public com.google.protobuf.ProtocolStringList getTargetLanguageCodesList() { + public com.google.protobuf.ProtocolStringList + getTargetLanguageCodesList() { return targetLanguageCodes_.getUnmodifiableView(); } /** - * - * *
      * Required. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The count of targetLanguageCodes. */ public int getTargetLanguageCodesCount() { return targetLanguageCodes_.size(); } /** - * - * *
      * Required. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param index The index of the element to return. * @return The targetLanguageCodes at the given index. */ @@ -1788,95 +1635,80 @@ public java.lang.String getTargetLanguageCodes(int index) { return targetLanguageCodes_.get(index); } /** - * - * *
      * Required. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param index The index of the value to return. * @return The bytes of the targetLanguageCodes at the given index. */ - public com.google.protobuf.ByteString getTargetLanguageCodesBytes(int index) { + public com.google.protobuf.ByteString + getTargetLanguageCodesBytes(int index) { return targetLanguageCodes_.getByteString(index); } /** - * - * *
      * Required. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param index The index to set the value at. * @param value The targetLanguageCodes to set. * @return This builder for chaining. */ - public Builder setTargetLanguageCodes(int index, java.lang.String value) { + public Builder setTargetLanguageCodes( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureTargetLanguageCodesIsMutable(); + throw new NullPointerException(); + } + ensureTargetLanguageCodesIsMutable(); targetLanguageCodes_.set(index, value); onChanged(); return this; } /** - * - * *
      * Required. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param value The targetLanguageCodes to add. * @return This builder for chaining. */ - public Builder addTargetLanguageCodes(java.lang.String value) { + public Builder addTargetLanguageCodes( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureTargetLanguageCodesIsMutable(); + throw new NullPointerException(); + } + ensureTargetLanguageCodesIsMutable(); targetLanguageCodes_.add(value); onChanged(); return this; } /** - * - * *
      * Required. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param values The targetLanguageCodes to add. * @return This builder for chaining. */ - public Builder addAllTargetLanguageCodes(java.lang.Iterable values) { + public Builder addAllTargetLanguageCodes( + java.lang.Iterable values) { ensureTargetLanguageCodesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, targetLanguageCodes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, targetLanguageCodes_); onChanged(); return this; } /** - * - * *
      * Required. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @return This builder for chaining. */ public Builder clearTargetLanguageCodes() { @@ -1886,44 +1718,42 @@ public Builder clearTargetLanguageCodes() { return this; } /** - * - * *
      * Required. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param value The bytes of the targetLanguageCodes to add. * @return This builder for chaining. */ - public Builder addTargetLanguageCodesBytes(com.google.protobuf.ByteString value) { + public Builder addTargetLanguageCodesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureTargetLanguageCodesIsMutable(); targetLanguageCodes_.add(value); onChanged(); return this; } - private com.google.protobuf.MapField models_; - - private com.google.protobuf.MapField internalGetModels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> models_; + private com.google.protobuf.MapField + internalGetModels() { if (models_ == null) { - return com.google.protobuf.MapField.emptyMapField(ModelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + ModelsDefaultEntryHolder.defaultEntry); } return models_; } - private com.google.protobuf.MapField - internalGetMutableModels() { - onChanged(); - ; + internalGetMutableModels() { + onChanged();; if (models_ == null) { - models_ = com.google.protobuf.MapField.newMapField(ModelsDefaultEntryHolder.defaultEntry); + models_ = com.google.protobuf.MapField.newMapField( + ModelsDefaultEntryHolder.defaultEntry); } if (!models_.isMutable()) { models_ = models_.copy(); @@ -1935,8 +1765,6 @@ public int getModelsCount() { return internalGetModels().getMap().size(); } /** - * - * *
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is model name. Value can be a built-in general model,
@@ -1952,22 +1780,22 @@ public int getModelsCount() {
      *
      * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
+
     @java.lang.Override
-    public boolean containsModels(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
+    public boolean containsModels(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
       return internalGetModels().getMap().containsKey(key);
     }
-    /** Use {@link #getModelsMap()} instead. */
+    /**
+     * Use {@link #getModelsMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getModels() {
       return getModelsMap();
     }
     /**
-     *
-     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is model name. Value can be a built-in general model,
@@ -1984,12 +1812,11 @@ public java.util.Map getModels() {
      * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
+
     public java.util.Map getModelsMap() {
       return internalGetModels().getMap();
     }
     /**
-     *
-     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is model name. Value can be a built-in general model,
@@ -2006,17 +1833,16 @@ public java.util.Map getModelsMap() {
      * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
+
     public java.lang.String getModelsOrDefault(
-        java.lang.String key, java.lang.String defaultValue) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      java.util.Map map = internalGetModels().getMap();
+        java.lang.String key,
+        java.lang.String defaultValue) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      java.util.Map map =
+          internalGetModels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is model name. Value can be a built-in general model,
@@ -2033,11 +1859,12 @@ public java.lang.String getModelsOrDefault(
      * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public java.lang.String getModelsOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      java.util.Map map = internalGetModels().getMap();
+
+    public java.lang.String getModelsOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      java.util.Map map =
+          internalGetModels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -2045,12 +1872,11 @@ public java.lang.String getModelsOrThrow(java.lang.String key) {
     }
 
     public Builder clearModels() {
-      internalGetMutableModels().getMutableMap().clear();
+      internalGetMutableModels().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is model name. Value can be a built-in general model,
@@ -2066,21 +1892,23 @@ public Builder clearModels() {
      *
      * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder removeModels(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      internalGetMutableModels().getMutableMap().remove(key);
+
+    public Builder removeModels(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      internalGetMutableModels().getMutableMap()
+          .remove(key);
       return this;
     }
-    /** Use alternate mutation accessors instead. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableModels() {
+    public java.util.Map
+    getMutableModels() {
       return internalGetMutableModels().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is model name. Value can be a built-in general model,
@@ -2096,19 +1924,16 @@ public java.util.Map getMutableModels() {
      *
      * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putModels(java.lang.String key, java.lang.String value) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      if (value == null) {
-        throw new java.lang.NullPointerException();
-      }
-      internalGetMutableModels().getMutableMap().put(key, value);
+    public Builder putModels(
+        java.lang.String key,
+        java.lang.String value) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      if (value == null) { throw new java.lang.NullPointerException(); }
+      internalGetMutableModels().getMutableMap()
+          .put(key, value);
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is model name. Value can be a built-in general model,
@@ -2124,31 +1949,27 @@ public Builder putModels(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putAllModels(java.util.Map values) {
-      internalGetMutableModels().getMutableMap().putAll(values);
+
+    public Builder putAllModels(
+        java.util.Map values) {
+      internalGetMutableModels().getMutableMap()
+          .putAll(values);
       return this;
     }
 
     private java.util.List inputConfigs_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureInputConfigsIsMutable() {
       if (!((bitField0_ & 0x00000004) != 0)) {
-        inputConfigs_ =
-            new java.util.ArrayList(inputConfigs_);
+        inputConfigs_ = new java.util.ArrayList(inputConfigs_);
         bitField0_ |= 0x00000004;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.translate.v3.InputConfig,
-            com.google.cloud.translate.v3.InputConfig.Builder,
-            com.google.cloud.translate.v3.InputConfigOrBuilder>
-        inputConfigsBuilder_;
+        com.google.cloud.translate.v3.InputConfig, com.google.cloud.translate.v3.InputConfig.Builder, com.google.cloud.translate.v3.InputConfigOrBuilder> inputConfigsBuilder_;
 
     /**
-     *
-     *
      * 
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2156,9 +1977,7 @@ private void ensureInputConfigsIsMutable() {
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ public java.util.List getInputConfigsList() { if (inputConfigsBuilder_ == null) { @@ -2168,8 +1987,6 @@ public java.util.List getInputConfigs } } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2177,9 +1994,7 @@ public java.util.List getInputConfigs
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ public int getInputConfigsCount() { if (inputConfigsBuilder_ == null) { @@ -2189,8 +2004,6 @@ public int getInputConfigsCount() { } } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2198,9 +2011,7 @@ public int getInputConfigsCount() {
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.translate.v3.InputConfig getInputConfigs(int index) { if (inputConfigsBuilder_ == null) { @@ -2210,8 +2021,6 @@ public com.google.cloud.translate.v3.InputConfig getInputConfigs(int index) { } } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2219,11 +2028,10 @@ public com.google.cloud.translate.v3.InputConfig getInputConfigs(int index) {
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setInputConfigs(int index, com.google.cloud.translate.v3.InputConfig value) { + public Builder setInputConfigs( + int index, com.google.cloud.translate.v3.InputConfig value) { if (inputConfigsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2237,8 +2045,6 @@ public Builder setInputConfigs(int index, com.google.cloud.translate.v3.InputCon return this; } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2246,9 +2052,7 @@ public Builder setInputConfigs(int index, com.google.cloud.translate.v3.InputCon
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setInputConfigs( int index, com.google.cloud.translate.v3.InputConfig.Builder builderForValue) { @@ -2262,8 +2066,6 @@ public Builder setInputConfigs( return this; } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2271,9 +2073,7 @@ public Builder setInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addInputConfigs(com.google.cloud.translate.v3.InputConfig value) { if (inputConfigsBuilder_ == null) { @@ -2289,8 +2089,6 @@ public Builder addInputConfigs(com.google.cloud.translate.v3.InputConfig value) return this; } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2298,11 +2096,10 @@ public Builder addInputConfigs(com.google.cloud.translate.v3.InputConfig value)
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder addInputConfigs(int index, com.google.cloud.translate.v3.InputConfig value) { + public Builder addInputConfigs( + int index, com.google.cloud.translate.v3.InputConfig value) { if (inputConfigsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2316,8 +2113,6 @@ public Builder addInputConfigs(int index, com.google.cloud.translate.v3.InputCon return this; } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2325,9 +2120,7 @@ public Builder addInputConfigs(int index, com.google.cloud.translate.v3.InputCon
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addInputConfigs( com.google.cloud.translate.v3.InputConfig.Builder builderForValue) { @@ -2341,8 +2134,6 @@ public Builder addInputConfigs( return this; } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2350,9 +2141,7 @@ public Builder addInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addInputConfigs( int index, com.google.cloud.translate.v3.InputConfig.Builder builderForValue) { @@ -2366,8 +2155,6 @@ public Builder addInputConfigs( return this; } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2375,15 +2162,14 @@ public Builder addInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addAllInputConfigs( java.lang.Iterable values) { if (inputConfigsBuilder_ == null) { ensureInputConfigsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, inputConfigs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, inputConfigs_); onChanged(); } else { inputConfigsBuilder_.addAllMessages(values); @@ -2391,8 +2177,6 @@ public Builder addAllInputConfigs( return this; } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2400,9 +2184,7 @@ public Builder addAllInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearInputConfigs() { if (inputConfigsBuilder_ == null) { @@ -2415,8 +2197,6 @@ public Builder clearInputConfigs() { return this; } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2424,9 +2204,7 @@ public Builder clearInputConfigs() {
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ public Builder removeInputConfigs(int index) { if (inputConfigsBuilder_ == null) { @@ -2439,8 +2217,6 @@ public Builder removeInputConfigs(int index) { return this; } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2448,16 +2224,13 @@ public Builder removeInputConfigs(int index) {
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.translate.v3.InputConfig.Builder getInputConfigsBuilder(int index) { + public com.google.cloud.translate.v3.InputConfig.Builder getInputConfigsBuilder( + int index) { return getInputConfigsFieldBuilder().getBuilder(index); } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2465,20 +2238,16 @@ public com.google.cloud.translate.v3.InputConfig.Builder getInputConfigsBuilder(
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.translate.v3.InputConfigOrBuilder getInputConfigsOrBuilder(int index) { + public com.google.cloud.translate.v3.InputConfigOrBuilder getInputConfigsOrBuilder( + int index) { if (inputConfigsBuilder_ == null) { - return inputConfigs_.get(index); - } else { + return inputConfigs_.get(index); } else { return inputConfigsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2486,12 +2255,10 @@ public com.google.cloud.translate.v3.InputConfigOrBuilder getInputConfigsOrBuild
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List - getInputConfigsOrBuilderList() { + public java.util.List + getInputConfigsOrBuilderList() { if (inputConfigsBuilder_ != null) { return inputConfigsBuilder_.getMessageOrBuilderList(); } else { @@ -2499,8 +2266,6 @@ public com.google.cloud.translate.v3.InputConfigOrBuilder getInputConfigsOrBuild } } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2508,17 +2273,13 @@ public com.google.cloud.translate.v3.InputConfigOrBuilder getInputConfigsOrBuild
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.translate.v3.InputConfig.Builder addInputConfigsBuilder() { - return getInputConfigsFieldBuilder() - .addBuilder(com.google.cloud.translate.v3.InputConfig.getDefaultInstance()); + return getInputConfigsFieldBuilder().addBuilder( + com.google.cloud.translate.v3.InputConfig.getDefaultInstance()); } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2526,17 +2287,14 @@ public com.google.cloud.translate.v3.InputConfig.Builder addInputConfigsBuilder(
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.translate.v3.InputConfig.Builder addInputConfigsBuilder(int index) { - return getInputConfigsFieldBuilder() - .addBuilder(index, com.google.cloud.translate.v3.InputConfig.getDefaultInstance()); + public com.google.cloud.translate.v3.InputConfig.Builder addInputConfigsBuilder( + int index) { + return getInputConfigsFieldBuilder().addBuilder( + index, com.google.cloud.translate.v3.InputConfig.getDefaultInstance()); } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2544,27 +2302,22 @@ public com.google.cloud.translate.v3.InputConfig.Builder addInputConfigsBuilder(
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List - getInputConfigsBuilderList() { + public java.util.List + getInputConfigsBuilderList() { return getInputConfigsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.translate.v3.InputConfig, - com.google.cloud.translate.v3.InputConfig.Builder, - com.google.cloud.translate.v3.InputConfigOrBuilder> + com.google.cloud.translate.v3.InputConfig, com.google.cloud.translate.v3.InputConfig.Builder, com.google.cloud.translate.v3.InputConfigOrBuilder> getInputConfigsFieldBuilder() { if (inputConfigsBuilder_ == null) { - inputConfigsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.translate.v3.InputConfig, - com.google.cloud.translate.v3.InputConfig.Builder, - com.google.cloud.translate.v3.InputConfigOrBuilder>( - inputConfigs_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + inputConfigsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.translate.v3.InputConfig, com.google.cloud.translate.v3.InputConfig.Builder, com.google.cloud.translate.v3.InputConfigOrBuilder>( + inputConfigs_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); inputConfigs_ = null; } return inputConfigsBuilder_; @@ -2572,64 +2325,45 @@ public com.google.cloud.translate.v3.InputConfig.Builder addInputConfigsBuilder( private com.google.cloud.translate.v3.OutputConfig outputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.OutputConfig, - com.google.cloud.translate.v3.OutputConfig.Builder, - com.google.cloud.translate.v3.OutputConfigOrBuilder> - outputConfigBuilder_; + com.google.cloud.translate.v3.OutputConfig, com.google.cloud.translate.v3.OutputConfig.Builder, com.google.cloud.translate.v3.OutputConfigOrBuilder> outputConfigBuilder_; /** - * - * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * - * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return outputConfigBuilder_ != null || outputConfig_ != null; } /** - * - * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * - * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; * @return The outputConfig. */ public com.google.cloud.translate.v3.OutputConfig getOutputConfig() { if (outputConfigBuilder_ == null) { - return outputConfig_ == null - ? com.google.cloud.translate.v3.OutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? com.google.cloud.translate.v3.OutputConfig.getDefaultInstance() : outputConfig_; } else { return outputConfigBuilder_.getMessage(); } } /** - * - * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * - * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setOutputConfig(com.google.cloud.translate.v3.OutputConfig value) { if (outputConfigBuilder_ == null) { @@ -2645,17 +2379,13 @@ public Builder setOutputConfig(com.google.cloud.translate.v3.OutputConfig value) return this; } /** - * - * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * - * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setOutputConfig( com.google.cloud.translate.v3.OutputConfig.Builder builderForValue) { @@ -2669,25 +2399,19 @@ public Builder setOutputConfig( return this; } /** - * - * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * - * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeOutputConfig(com.google.cloud.translate.v3.OutputConfig value) { if (outputConfigBuilder_ == null) { if (outputConfig_ != null) { outputConfig_ = - com.google.cloud.translate.v3.OutputConfig.newBuilder(outputConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.translate.v3.OutputConfig.newBuilder(outputConfig_).mergeFrom(value).buildPartial(); } else { outputConfig_ = value; } @@ -2699,17 +2423,13 @@ public Builder mergeOutputConfig(com.google.cloud.translate.v3.OutputConfig valu return this; } /** - * - * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * - * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearOutputConfig() { if (outputConfigBuilder_ == null) { @@ -2723,97 +2443,75 @@ public Builder clearOutputConfig() { return this; } /** - * - * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * - * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.translate.v3.OutputConfig.Builder getOutputConfigBuilder() { - + onChanged(); return getOutputConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * - * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.translate.v3.OutputConfigOrBuilder getOutputConfigOrBuilder() { if (outputConfigBuilder_ != null) { return outputConfigBuilder_.getMessageOrBuilder(); } else { - return outputConfig_ == null - ? com.google.cloud.translate.v3.OutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? + com.google.cloud.translate.v3.OutputConfig.getDefaultInstance() : outputConfig_; } } /** - * - * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * - * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.OutputConfig, - com.google.cloud.translate.v3.OutputConfig.Builder, - com.google.cloud.translate.v3.OutputConfigOrBuilder> + com.google.cloud.translate.v3.OutputConfig, com.google.cloud.translate.v3.OutputConfig.Builder, com.google.cloud.translate.v3.OutputConfigOrBuilder> getOutputConfigFieldBuilder() { if (outputConfigBuilder_ == null) { - outputConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.OutputConfig, - com.google.cloud.translate.v3.OutputConfig.Builder, - com.google.cloud.translate.v3.OutputConfigOrBuilder>( - getOutputConfig(), getParentForChildren(), isClean()); + outputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3.OutputConfig, com.google.cloud.translate.v3.OutputConfig.Builder, com.google.cloud.translate.v3.OutputConfigOrBuilder>( + getOutputConfig(), + getParentForChildren(), + isClean()); outputConfig_ = null; } return outputConfigBuilder_; } private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig> - glossaries_; - - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig> - internalGetGlossaries() { + java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig> glossaries_; + private com.google.protobuf.MapField + internalGetGlossaries() { if (glossaries_ == null) { return com.google.protobuf.MapField.emptyMapField( GlossariesDefaultEntryHolder.defaultEntry); } return glossaries_; } - - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig> - internalGetMutableGlossaries() { - onChanged(); - ; + private com.google.protobuf.MapField + internalGetMutableGlossaries() { + onChanged();; if (glossaries_ == null) { - glossaries_ = - com.google.protobuf.MapField.newMapField(GlossariesDefaultEntryHolder.defaultEntry); + glossaries_ = com.google.protobuf.MapField.newMapField( + GlossariesDefaultEntryHolder.defaultEntry); } if (!glossaries_.isMutable()) { glossaries_ = glossaries_.copy(); @@ -2825,93 +2523,74 @@ public int getGlossariesCount() { return internalGetGlossaries().getMap().size(); } /** - * - * *
      * Optional. Glossaries to be applied for translation.
      * It's keyed by target language code.
      * 
* - * - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ + @java.lang.Override - public boolean containsGlossaries(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } + public boolean containsGlossaries( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } return internalGetGlossaries().getMap().containsKey(key); } - /** Use {@link #getGlossariesMap()} instead. */ + /** + * Use {@link #getGlossariesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated - public java.util.Map< - java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig> - getGlossaries() { + public java.util.Map getGlossaries() { return getGlossariesMap(); } /** - * - * *
      * Optional. Glossaries to be applied for translation.
      * It's keyed by target language code.
      * 
* - * - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.Map< - java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig> - getGlossariesMap() { + + public java.util.Map getGlossariesMap() { return internalGetGlossaries().getMap(); } /** - * - * *
      * Optional. Glossaries to be applied for translation.
      * It's keyed by target language code.
      * 
* - * - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOrDefault( java.lang.String key, com.google.cloud.translate.v3.TranslateTextGlossaryConfig defaultValue) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map - map = internalGetGlossaries().getMap(); + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetGlossaries().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Optional. Glossaries to be applied for translation.
      * It's keyed by target language code.
      * 
* - * - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOrThrow( java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map - map = internalGetGlossaries().getMap(); + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetGlossaries().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -2919,92 +2598,83 @@ public com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOr } public Builder clearGlossaries() { - internalGetMutableGlossaries().getMutableMap().clear(); + internalGetMutableGlossaries().getMutableMap() + .clear(); return this; } /** - * - * *
      * Optional. Glossaries to be applied for translation.
      * It's keyed by target language code.
      * 
* - * - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder removeGlossaries(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableGlossaries().getMutableMap().remove(key); + + public Builder removeGlossaries( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableGlossaries().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map< - java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig> - getMutableGlossaries() { + public java.util.Map + getMutableGlossaries() { return internalGetMutableGlossaries().getMutableMap(); } /** - * - * *
      * Optional. Glossaries to be applied for translation.
      * It's keyed by target language code.
      * 
* - * - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder putGlossaries( - java.lang.String key, com.google.cloud.translate.v3.TranslateTextGlossaryConfig value) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - if (value == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableGlossaries().getMutableMap().put(key, value); + java.lang.String key, + com.google.cloud.translate.v3.TranslateTextGlossaryConfig value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableGlossaries().getMutableMap() + .put(key, value); return this; } /** - * - * *
      * Optional. Glossaries to be applied for translation.
      * It's keyed by target language code.
      * 
* - * - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ + public Builder putAllGlossaries( - java.util.Map - values) { - internalGetMutableGlossaries().getMutableMap().putAll(values); + java.util.Map values) { + internalGetMutableGlossaries().getMutableMap() + .putAll(values); return this; } - 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() { - onChanged(); - ; + internalGetMutableLabels() { + onChanged();; 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(); @@ -3016,8 +2686,6 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Optional. The labels with user-defined metadata for the request.
      * Label keys and values can be no longer than 63 characters
@@ -3030,22 +2698,22 @@ public int getLabelsCount() {
      *
      * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
      */
+
     @java.lang.Override
-    public boolean containsLabels(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
+    public boolean containsLabels(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
       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. The labels with user-defined metadata for the request.
      * Label keys and values can be no longer than 63 characters
@@ -3059,12 +2727,11 @@ public java.util.Map getLabels() {
      * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
+
     public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      * Label keys and values can be no longer than 63 characters
@@ -3078,17 +2745,16 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
+
     public java.lang.String getLabelsOrDefault(
-        java.lang.String key, java.lang.String defaultValue) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      java.util.Map map = internalGetLabels().getMap();
+        java.lang.String key,
+        java.lang.String defaultValue) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      * Label keys and values can be no longer than 63 characters
@@ -3102,11 +2768,12 @@ public java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public java.lang.String getLabelsOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      java.util.Map map = internalGetLabels().getMap();
+
+    public java.lang.String getLabelsOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -3114,12 +2781,11 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
     }
 
     public Builder clearLabels() {
-      internalGetMutableLabels().getMutableMap().clear();
+      internalGetMutableLabels().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      * Label keys and values can be no longer than 63 characters
@@ -3132,21 +2798,23 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder removeLabels(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      internalGetMutableLabels().getMutableMap().remove(key);
+
+    public Builder removeLabels(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      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() {
       return internalGetMutableLabels().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      * Label keys and values can be no longer than 63 characters
@@ -3159,19 +2827,16 @@ public java.util.Map getMutableLabels() {
      *
      * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putLabels(java.lang.String key, java.lang.String value) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      if (value == null) {
-        throw new java.lang.NullPointerException();
-      }
-      internalGetMutableLabels().getMutableMap().put(key, value);
+    public Builder putLabels(
+        java.lang.String key,
+        java.lang.String value) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      if (value == null) { throw new java.lang.NullPointerException(); }
+      internalGetMutableLabels().getMutableMap()
+          .put(key, value);
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      * Label keys and values can be no longer than 63 characters
@@ -3184,13 +2849,16 @@ public Builder putLabels(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> labels = 9 [(.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);
       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);
     }
 
@@ -3200,12 +2868,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.BatchTranslateTextRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.BatchTranslateTextRequest)
   private static final com.google.cloud.translate.v3.BatchTranslateTextRequest DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3.BatchTranslateTextRequest();
   }
@@ -3214,16 +2882,16 @@ public static com.google.cloud.translate.v3.BatchTranslateTextRequest getDefault
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public BatchTranslateTextRequest parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new BatchTranslateTextRequest(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public BatchTranslateTextRequest parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new BatchTranslateTextRequest(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -3238,4 +2906,6 @@ public com.google.protobuf.Parser getParserForType()
   public com.google.cloud.translate.v3.BatchTranslateTextRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateTextRequestOrBuilder.java b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateTextRequestOrBuilder.java
similarity index 73%
rename from proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateTextRequestOrBuilder.java
rename to owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateTextRequestOrBuilder.java
index 06bc5fef..d5daed59 100644
--- a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateTextRequestOrBuilder.java
+++ b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateTextRequestOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2020 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/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
-public interface BatchTranslateTextRequestOrBuilder
-    extends
+public interface BatchTranslateTextRequestOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.BatchTranslateTextRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. Location to make a call. Must refer to a caller's project.
    * Format: `projects/{project-number-or-id}/locations/{location-id}`.
@@ -35,16 +17,11 @@ public interface BatchTranslateTextRequestOrBuilder
    * error is returned.
    * 
* - * - * 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. Location to make a call. Must refer to a caller's project.
    * Format: `projects/{project-number-or-id}/locations/{location-id}`.
@@ -54,97 +31,74 @@ public interface BatchTranslateTextRequestOrBuilder
    * error is returned.
    * 
* - * - * 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(); /** - * - * *
    * Required. Source language code.
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The sourceLanguageCode. */ java.lang.String getSourceLanguageCode(); /** - * - * *
    * Required. Source language code.
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for sourceLanguageCode. */ - com.google.protobuf.ByteString getSourceLanguageCodeBytes(); + com.google.protobuf.ByteString + getSourceLanguageCodeBytes(); /** - * - * *
    * Required. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @return A list containing the targetLanguageCodes. */ - java.util.List getTargetLanguageCodesList(); + java.util.List + getTargetLanguageCodesList(); /** - * - * *
    * Required. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The count of targetLanguageCodes. */ int getTargetLanguageCodesCount(); /** - * - * *
    * Required. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param index The index of the element to return. * @return The targetLanguageCodes at the given index. */ java.lang.String getTargetLanguageCodes(int index); /** - * - * *
    * Required. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param index The index of the value to return. * @return The bytes of the targetLanguageCodes at the given index. */ - com.google.protobuf.ByteString getTargetLanguageCodesBytes(int index); + com.google.protobuf.ByteString + getTargetLanguageCodesBytes(int index); /** - * - * *
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is model name. Value can be a built-in general model,
@@ -162,8 +116,6 @@ public interface BatchTranslateTextRequestOrBuilder
    */
   int getModelsCount();
   /**
-   *
-   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is model name. Value can be a built-in general model,
@@ -179,13 +131,15 @@ public interface BatchTranslateTextRequestOrBuilder
    *
    * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
-  boolean containsModels(java.lang.String key);
-  /** Use {@link #getModelsMap()} instead. */
+  boolean containsModels(
+      java.lang.String key);
+  /**
+   * Use {@link #getModelsMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getModels();
+  java.util.Map
+  getModels();
   /**
-   *
-   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is model name. Value can be a built-in general model,
@@ -201,10 +155,9 @@ public interface BatchTranslateTextRequestOrBuilder
    *
    * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.util.Map getModelsMap();
+  java.util.Map
+  getModelsMap();
   /**
-   *
-   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is model name. Value can be a built-in general model,
@@ -220,10 +173,11 @@ public interface BatchTranslateTextRequestOrBuilder
    *
    * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.lang.String getModelsOrDefault(java.lang.String key, java.lang.String defaultValue);
+
+  java.lang.String getModelsOrDefault(
+      java.lang.String key,
+      java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is model name. Value can be a built-in general model,
@@ -239,11 +193,11 @@ public interface BatchTranslateTextRequestOrBuilder
    *
    * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.lang.String getModelsOrThrow(java.lang.String key);
+
+  java.lang.String getModelsOrThrow(
+      java.lang.String key);
 
   /**
-   *
-   *
    * 
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -251,14 +205,11 @@ public interface BatchTranslateTextRequestOrBuilder
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ - java.util.List getInputConfigsList(); + java.util.List + getInputConfigsList(); /** - * - * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -266,14 +217,10 @@ public interface BatchTranslateTextRequestOrBuilder
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.translate.v3.InputConfig getInputConfigs(int index); /** - * - * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -281,14 +228,10 @@ public interface BatchTranslateTextRequestOrBuilder
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ int getInputConfigsCount(); /** - * - * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -296,15 +239,11 @@ public interface BatchTranslateTextRequestOrBuilder
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ - java.util.List + java.util.List getInputConfigsOrBuilderList(); /** - * - * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -312,135 +251,104 @@ public interface BatchTranslateTextRequestOrBuilder
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ - com.google.cloud.translate.v3.InputConfigOrBuilder getInputConfigsOrBuilder(int index); + com.google.cloud.translate.v3.InputConfigOrBuilder getInputConfigsOrBuilder( + int index); /** - * - * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * - * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the outputConfig field is set. */ boolean hasOutputConfig(); /** - * - * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * - * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; * @return The outputConfig. */ com.google.cloud.translate.v3.OutputConfig getOutputConfig(); /** - * - * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * - * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.translate.v3.OutputConfigOrBuilder getOutputConfigOrBuilder(); /** - * - * *
    * Optional. Glossaries to be applied for translation.
    * It's keyed by target language code.
    * 
* - * - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ int getGlossariesCount(); /** - * - * *
    * Optional. Glossaries to be applied for translation.
    * It's keyed by target language code.
    * 
* - * - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsGlossaries( + java.lang.String key); + /** + * Use {@link #getGlossariesMap()} instead. */ - boolean containsGlossaries(java.lang.String key); - /** Use {@link #getGlossariesMap()} instead. */ @java.lang.Deprecated java.util.Map - getGlossaries(); + getGlossaries(); /** - * - * *
    * Optional. Glossaries to be applied for translation.
    * It's keyed by target language code.
    * 
* - * - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ java.util.Map - getGlossariesMap(); + getGlossariesMap(); /** - * - * *
    * Optional. Glossaries to be applied for translation.
    * It's keyed by target language code.
    * 
* - * - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ + com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOrDefault( - java.lang.String key, com.google.cloud.translate.v3.TranslateTextGlossaryConfig defaultValue); + java.lang.String key, + com.google.cloud.translate.v3.TranslateTextGlossaryConfig defaultValue); /** - * - * *
    * Optional. Glossaries to be applied for translation.
    * It's keyed by target language code.
    * 
* - * - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ + com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOrThrow( java.lang.String key); /** - * - * *
    * Optional. The labels with user-defined metadata for the request.
    * Label keys and values can be no longer than 63 characters
@@ -455,8 +363,6 @@ com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOrThrow(
    */
   int getLabelsCount();
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    * Label keys and values can be no longer than 63 characters
@@ -469,13 +375,15 @@ com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOrThrow(
    *
    * map<string, string> labels = 9 [(.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. The labels with user-defined metadata for the request.
    * Label keys and values can be no longer than 63 characters
@@ -488,10 +396,9 @@ com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOrThrow(
    *
    * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.util.Map getLabelsMap();
+  java.util.Map
+  getLabelsMap();
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    * Label keys and values can be no longer than 63 characters
@@ -504,10 +411,11 @@ com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOrThrow(
    *
    * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue);
+
+  java.lang.String getLabelsOrDefault(
+      java.lang.String key,
+      java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    * Label keys and values can be no longer than 63 characters
@@ -520,5 +428,7 @@ com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOrThrow(
    *
    * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.lang.String getLabelsOrThrow(java.lang.String key);
+
+  java.lang.String getLabelsOrThrow(
+      java.lang.String key);
 }
diff --git a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryMetadata.java b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryMetadata.java
similarity index 71%
rename from proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryMetadata.java
rename to owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryMetadata.java
index 2756bd9c..661334b8 100644
--- a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryMetadata.java
+++ b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryMetadata.java
@@ -1,26 +1,9 @@
-/*
- * Copyright 2020 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/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
 /**
- *
- *
  * 
  * Stored in the
  * [google.longrunning.Operation.metadata][google.longrunning.Operation.metadata]
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.translation.v3.CreateGlossaryMetadata}
  */
-public final class CreateGlossaryMetadata extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class CreateGlossaryMetadata extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.CreateGlossaryMetadata)
     CreateGlossaryMetadataOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use CreateGlossaryMetadata.newBuilder() to construct.
   private CreateGlossaryMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private CreateGlossaryMetadata() {
     name_ = "";
     state_ = 0;
@@ -46,15 +28,16 @@ private CreateGlossaryMetadata() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new CreateGlossaryMetadata();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private CreateGlossaryMetadata(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -73,82 +56,73 @@ private CreateGlossaryMetadata(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
-            }
-          case 16:
-            {
-              int rawValue = input.readEnum();
+            name_ = s;
+            break;
+          }
+          case 16: {
+            int rawValue = input.readEnum();
 
-              state_ = rawValue;
-              break;
+            state_ = rawValue;
+            break;
+          }
+          case 26: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (submitTime_ != null) {
+              subBuilder = submitTime_.toBuilder();
             }
-          case 26:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (submitTime_ != null) {
-                subBuilder = submitTime_.toBuilder();
-              }
-              submitTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(submitTime_);
-                submitTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+            submitTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(submitTime_);
+              submitTime_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.translate.v3.TranslationServiceProto
-        .internal_static_google_cloud_translation_v3_CreateGlossaryMetadata_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_CreateGlossaryMetadata_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.translate.v3.TranslationServiceProto
-        .internal_static_google_cloud_translation_v3_CreateGlossaryMetadata_fieldAccessorTable
+    return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_CreateGlossaryMetadata_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.translate.v3.CreateGlossaryMetadata.class,
-            com.google.cloud.translate.v3.CreateGlossaryMetadata.Builder.class);
+            com.google.cloud.translate.v3.CreateGlossaryMetadata.class, com.google.cloud.translate.v3.CreateGlossaryMetadata.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * Enumerates the possible states that the creation request can be in.
    * 
* * Protobuf enum {@code google.cloud.translation.v3.CreateGlossaryMetadata.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Invalid.
      * 
@@ -157,8 +131,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * Request is being processed.
      * 
@@ -167,8 +139,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ RUNNING(1), /** - * - * *
      * The glossary was successfully created.
      * 
@@ -177,8 +147,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ SUCCEEDED(2), /** - * - * *
      * Failed to create the glossary.
      * 
@@ -187,8 +155,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ FAILED(3), /** - * - * *
      * Request is in the process of being canceled after caller invoked
      * longrunning.Operations.CancelOperation on the request id.
@@ -198,8 +164,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     CANCELLING(4),
     /**
-     *
-     *
      * 
      * The glossary creation request was successfully canceled.
      * 
@@ -211,8 +175,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Invalid.
      * 
@@ -221,8 +183,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Request is being processed.
      * 
@@ -231,8 +191,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RUNNING_VALUE = 1; /** - * - * *
      * The glossary was successfully created.
      * 
@@ -241,8 +199,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SUCCEEDED_VALUE = 2; /** - * - * *
      * Failed to create the glossary.
      * 
@@ -251,8 +207,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FAILED_VALUE = 3; /** - * - * *
      * Request is in the process of being canceled after caller invoked
      * longrunning.Operations.CancelOperation on the request id.
@@ -262,8 +216,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int CANCELLING_VALUE = 4;
     /**
-     *
-     *
      * 
      * The glossary creation request was successfully canceled.
      * 
@@ -272,6 +224,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CANCELLED_VALUE = 5; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -296,57 +249,52 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: - return STATE_UNSPECIFIED; - case 1: - return RUNNING; - case 2: - return SUCCEEDED; - case 3: - return FAILED; - case 4: - return CANCELLING; - case 5: - return CANCELLED; - default: - return null; + case 0: return STATE_UNSPECIFIED; + case 1: return RUNNING; + case 2: return SUCCEEDED; + case 3: return FAILED; + case 4: return CANCELLING; + case 5: return CANCELLED; + 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< + State> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.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.cloud.translate.v3.CreateGlossaryMetadata.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.translate.v3.CreateGlossaryMetadata.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); - public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State 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; @@ -366,14 +314,11 @@ private State(int value) { public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * The name of the glossary that is being created.
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -382,29 +327,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 name of the glossary that is being created.
    * 
* * 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 { @@ -415,52 +360,38 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int STATE_FIELD_NUMBER = 2; private int state_; /** - * - * *
    * The current state of the glossary creation operation.
    * 
* * .google.cloud.translation.v3.CreateGlossaryMetadata.State state = 2; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * The current state of the glossary creation operation.
    * 
* * .google.cloud.translation.v3.CreateGlossaryMetadata.State state = 2; - * * @return The state. */ - @java.lang.Override - public com.google.cloud.translate.v3.CreateGlossaryMetadata.State getState() { + @java.lang.Override public com.google.cloud.translate.v3.CreateGlossaryMetadata.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.translate.v3.CreateGlossaryMetadata.State result = - com.google.cloud.translate.v3.CreateGlossaryMetadata.State.valueOf(state_); - return result == null - ? com.google.cloud.translate.v3.CreateGlossaryMetadata.State.UNRECOGNIZED - : result; + com.google.cloud.translate.v3.CreateGlossaryMetadata.State result = com.google.cloud.translate.v3.CreateGlossaryMetadata.State.valueOf(state_); + return result == null ? com.google.cloud.translate.v3.CreateGlossaryMetadata.State.UNRECOGNIZED : result; } public static final int SUBMIT_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp submitTime_; /** - * - * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 3; - * * @return Whether the submitTime field is set. */ @java.lang.Override @@ -468,14 +399,11 @@ public boolean hasSubmitTime() { return submitTime_ != null; } /** - * - * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 3; - * * @return The submitTime. */ @java.lang.Override @@ -483,8 +411,6 @@ public com.google.protobuf.Timestamp getSubmitTime() { return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } /** - * - * *
    * The time when the operation was submitted to the server.
    * 
@@ -497,7 +423,6 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -509,13 +434,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + 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_); } - if (state_ - != com.google.cloud.translate.v3.CreateGlossaryMetadata.State.STATE_UNSPECIFIED - .getNumber()) { + if (state_ != com.google.cloud.translate.v3.CreateGlossaryMetadata.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(2, state_); } if (submitTime_ != null) { @@ -530,16 +454,16 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (state_ - != com.google.cloud.translate.v3.CreateGlossaryMetadata.State.STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, state_); + if (state_ != com.google.cloud.translate.v3.CreateGlossaryMetadata.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, state_); } if (submitTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSubmitTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getSubmitTime()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -549,19 +473,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.cloud.translate.v3.CreateGlossaryMetadata)) { return super.equals(obj); } - com.google.cloud.translate.v3.CreateGlossaryMetadata other = - (com.google.cloud.translate.v3.CreateGlossaryMetadata) obj; + com.google.cloud.translate.v3.CreateGlossaryMetadata other = (com.google.cloud.translate.v3.CreateGlossaryMetadata) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (state_ != other.state_) return false; if (hasSubmitTime() != other.hasSubmitTime()) return false; if (hasSubmitTime()) { - if (!getSubmitTime().equals(other.getSubmitTime())) return false; + if (!getSubmitTime() + .equals(other.getSubmitTime())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -588,103 +513,96 @@ public int hashCode() { } public static com.google.cloud.translate.v3.CreateGlossaryMetadata 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.cloud.translate.v3.CreateGlossaryMetadata 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.cloud.translate.v3.CreateGlossaryMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.CreateGlossaryMetadata 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.cloud.translate.v3.CreateGlossaryMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.CreateGlossaryMetadata 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.cloud.translate.v3.CreateGlossaryMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.CreateGlossaryMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.CreateGlossaryMetadata 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.cloud.translate.v3.CreateGlossaryMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.CreateGlossaryMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.CreateGlossaryMetadata 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.cloud.translate.v3.CreateGlossaryMetadata 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.cloud.translate.v3.CreateGlossaryMetadata 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.cloud.translate.v3.CreateGlossaryMetadata 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; } /** - * - * *
    * Stored in the
    * [google.longrunning.Operation.metadata][google.longrunning.Operation.metadata]
@@ -693,23 +611,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.translation.v3.CreateGlossaryMetadata}
    */
-  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.translation.v3.CreateGlossaryMetadata)
       com.google.cloud.translate.v3.CreateGlossaryMetadataOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.translate.v3.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3_CreateGlossaryMetadata_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_CreateGlossaryMetadata_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.translate.v3.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3_CreateGlossaryMetadata_fieldAccessorTable
+      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_CreateGlossaryMetadata_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.translate.v3.CreateGlossaryMetadata.class,
-              com.google.cloud.translate.v3.CreateGlossaryMetadata.Builder.class);
+              com.google.cloud.translate.v3.CreateGlossaryMetadata.class, com.google.cloud.translate.v3.CreateGlossaryMetadata.Builder.class);
     }
 
     // Construct using com.google.cloud.translate.v3.CreateGlossaryMetadata.newBuilder()
@@ -717,15 +633,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -743,9 +660,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.translate.v3.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3_CreateGlossaryMetadata_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_CreateGlossaryMetadata_descriptor;
     }
 
     @java.lang.Override
@@ -764,8 +681,7 @@ public com.google.cloud.translate.v3.CreateGlossaryMetadata build() {
 
     @java.lang.Override
     public com.google.cloud.translate.v3.CreateGlossaryMetadata buildPartial() {
-      com.google.cloud.translate.v3.CreateGlossaryMetadata result =
-          new com.google.cloud.translate.v3.CreateGlossaryMetadata(this);
+      com.google.cloud.translate.v3.CreateGlossaryMetadata result = new com.google.cloud.translate.v3.CreateGlossaryMetadata(this);
       result.name_ = name_;
       result.state_ = state_;
       if (submitTimeBuilder_ == null) {
@@ -781,39 +697,38 @@ public com.google.cloud.translate.v3.CreateGlossaryMetadata 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.cloud.translate.v3.CreateGlossaryMetadata) {
-        return mergeFrom((com.google.cloud.translate.v3.CreateGlossaryMetadata) other);
+        return mergeFrom((com.google.cloud.translate.v3.CreateGlossaryMetadata)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -821,8 +736,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.translate.v3.CreateGlossaryMetadata other) {
-      if (other == com.google.cloud.translate.v3.CreateGlossaryMetadata.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.translate.v3.CreateGlossaryMetadata.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -852,8 +766,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.translate.v3.CreateGlossaryMetadata) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.translate.v3.CreateGlossaryMetadata) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -865,20 +778,18 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * The name of the glossary that is being created.
      * 
* * 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; @@ -887,21 +798,20 @@ public java.lang.String getName() { } } /** - * - * *
      * The name of the glossary that is being created.
      * 
* * 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 { @@ -909,61 +819,54 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The name of the glossary that is being created.
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * The name of the glossary that is being created.
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * The name of the glossary that is being created.
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -971,67 +874,51 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private int state_ = 0; /** - * - * *
      * The current state of the glossary creation operation.
      * 
* * .google.cloud.translation.v3.CreateGlossaryMetadata.State state = 2; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * The current state of the glossary creation operation.
      * 
* * .google.cloud.translation.v3.CreateGlossaryMetadata.State state = 2; - * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** - * - * *
      * The current state of the glossary creation operation.
      * 
* * .google.cloud.translation.v3.CreateGlossaryMetadata.State state = 2; - * * @return The state. */ @java.lang.Override public com.google.cloud.translate.v3.CreateGlossaryMetadata.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.translate.v3.CreateGlossaryMetadata.State result = - com.google.cloud.translate.v3.CreateGlossaryMetadata.State.valueOf(state_); - return result == null - ? com.google.cloud.translate.v3.CreateGlossaryMetadata.State.UNRECOGNIZED - : result; + com.google.cloud.translate.v3.CreateGlossaryMetadata.State result = com.google.cloud.translate.v3.CreateGlossaryMetadata.State.valueOf(state_); + return result == null ? com.google.cloud.translate.v3.CreateGlossaryMetadata.State.UNRECOGNIZED : result; } /** - * - * *
      * The current state of the glossary creation operation.
      * 
* * .google.cloud.translation.v3.CreateGlossaryMetadata.State state = 2; - * * @param value The state to set. * @return This builder for chaining. */ @@ -1039,24 +926,21 @@ public Builder setState(com.google.cloud.translate.v3.CreateGlossaryMetadata.Sta if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The current state of the glossary creation operation.
      * 
* * .google.cloud.translation.v3.CreateGlossaryMetadata.State state = 2; - * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -1064,47 +948,34 @@ public Builder clearState() { private com.google.protobuf.Timestamp submitTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - submitTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> submitTimeBuilder_; /** - * - * *
      * The time when the operation was submitted to the server.
      * 
* * .google.protobuf.Timestamp submit_time = 3; - * * @return Whether the submitTime field is set. */ public boolean hasSubmitTime() { return submitTimeBuilder_ != null || submitTime_ != null; } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
* * .google.protobuf.Timestamp submit_time = 3; - * * @return The submitTime. */ public com.google.protobuf.Timestamp getSubmitTime() { if (submitTimeBuilder_ == null) { - return submitTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : submitTime_; + return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } else { return submitTimeBuilder_.getMessage(); } } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
@@ -1125,15 +996,14 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
* * .google.protobuf.Timestamp submit_time = 3; */ - public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setSubmitTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (submitTimeBuilder_ == null) { submitTime_ = builderForValue.build(); onChanged(); @@ -1144,8 +1014,6 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
@@ -1156,7 +1024,7 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { if (submitTimeBuilder_ == null) { if (submitTime_ != null) { submitTime_ = - com.google.protobuf.Timestamp.newBuilder(submitTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(submitTime_).mergeFrom(value).buildPartial(); } else { submitTime_ = value; } @@ -1168,8 +1036,6 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
@@ -1188,8 +1054,6 @@ public Builder clearSubmitTime() { return this; } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
@@ -1197,13 +1061,11 @@ public Builder clearSubmitTime() { * .google.protobuf.Timestamp submit_time = 3; */ public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder() { - + onChanged(); return getSubmitTimeFieldBuilder().getBuilder(); } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
@@ -1214,14 +1076,11 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { if (submitTimeBuilder_ != null) { return submitTimeBuilder_.getMessageOrBuilder(); } else { - return submitTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : submitTime_; + return submitTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
@@ -1229,24 +1088,21 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { * .google.protobuf.Timestamp submit_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> getSubmitTimeFieldBuilder() { if (submitTimeBuilder_ == null) { - submitTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getSubmitTime(), getParentForChildren(), isClean()); + submitTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getSubmitTime(), + getParentForChildren(), + isClean()); submitTime_ = null; } return submitTimeBuilder_; } - @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); } @@ -1256,12 +1112,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.CreateGlossaryMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.CreateGlossaryMetadata) private static final com.google.cloud.translate.v3.CreateGlossaryMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.CreateGlossaryMetadata(); } @@ -1270,16 +1126,16 @@ public static com.google.cloud.translate.v3.CreateGlossaryMetadata getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateGlossaryMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateGlossaryMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateGlossaryMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateGlossaryMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1294,4 +1150,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.CreateGlossaryMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryMetadataOrBuilder.java b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryMetadataOrBuilder.java similarity index 70% rename from proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryMetadataOrBuilder.java rename to owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryMetadataOrBuilder.java index 5d2f18e0..91012a73 100644 --- a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryMetadataOrBuilder.java +++ b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryMetadataOrBuilder.java @@ -1,105 +1,70 @@ -/* - * Copyright 2020 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/translate/v3/translation_service.proto package com.google.cloud.translate.v3; -public interface CreateGlossaryMetadataOrBuilder - extends +public interface CreateGlossaryMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.CreateGlossaryMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The name of the glossary that is being created.
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The name of the glossary that is being created.
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * The current state of the glossary creation operation.
    * 
* * .google.cloud.translation.v3.CreateGlossaryMetadata.State state = 2; - * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * The current state of the glossary creation operation.
    * 
* * .google.cloud.translation.v3.CreateGlossaryMetadata.State state = 2; - * * @return The state. */ com.google.cloud.translate.v3.CreateGlossaryMetadata.State getState(); /** - * - * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 3; - * * @return Whether the submitTime field is set. */ boolean hasSubmitTime(); /** - * - * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 3; - * * @return The submitTime. */ com.google.protobuf.Timestamp getSubmitTime(); /** - * - * *
    * The time when the operation was submitted to the server.
    * 
diff --git a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryRequest.java b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryRequest.java similarity index 62% rename from proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryRequest.java rename to owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryRequest.java index 015b6f20..216870ba 100644 --- a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryRequest.java +++ b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 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/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** - * - * *
  * Request message for CreateGlossary.
  * 
* * Protobuf type {@code google.cloud.translation.v3.CreateGlossaryRequest} */ -public final class CreateGlossaryRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateGlossaryRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.CreateGlossaryRequest) CreateGlossaryRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateGlossaryRequest.newBuilder() to construct. private CreateGlossaryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateGlossaryRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateGlossaryRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CreateGlossaryRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,76 +53,65 @@ private CreateGlossaryRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; + parent_ = s; + break; + } + case 18: { + com.google.cloud.translate.v3.Glossary.Builder subBuilder = null; + if (glossary_ != null) { + subBuilder = glossary_.toBuilder(); } - case 18: - { - com.google.cloud.translate.v3.Glossary.Builder subBuilder = null; - if (glossary_ != null) { - subBuilder = glossary_.toBuilder(); - } - glossary_ = - input.readMessage( - com.google.cloud.translate.v3.Glossary.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(glossary_); - glossary_ = subBuilder.buildPartial(); - } - - break; + glossary_ = input.readMessage(com.google.cloud.translate.v3.Glossary.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(glossary_); + glossary_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_CreateGlossaryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_CreateGlossaryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_CreateGlossaryRequest_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_CreateGlossaryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.CreateGlossaryRequest.class, - com.google.cloud.translate.v3.CreateGlossaryRequest.Builder.class); + com.google.cloud.translate.v3.CreateGlossaryRequest.class, com.google.cloud.translate.v3.CreateGlossaryRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The project name.
    * 
* - * - * 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 @@ -148,31 +120,29 @@ 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 project name.
    * 
* - * - * 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 { @@ -183,16 +153,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int GLOSSARY_FIELD_NUMBER = 2; private com.google.cloud.translate.v3.Glossary glossary_; /** - * - * *
    * Required. The glossary to create.
    * 
* - * - * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the glossary field is set. */ @java.lang.Override @@ -200,34 +165,23 @@ public boolean hasGlossary() { return glossary_ != null; } /** - * - * *
    * Required. The glossary to create.
    * 
* - * - * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The glossary. */ @java.lang.Override public com.google.cloud.translate.v3.Glossary getGlossary() { - return glossary_ == null - ? com.google.cloud.translate.v3.Glossary.getDefaultInstance() - : glossary_; + return glossary_ == null ? com.google.cloud.translate.v3.Glossary.getDefaultInstance() : glossary_; } /** - * - * *
    * Required. The glossary to create.
    * 
* - * - * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.translate.v3.GlossaryOrBuilder getGlossaryOrBuilder() { @@ -235,7 +189,6 @@ public com.google.cloud.translate.v3.GlossaryOrBuilder getGlossaryOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -247,8 +200,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + 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_); } if (glossary_ != null) { @@ -263,11 +217,12 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (glossary_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getGlossary()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getGlossary()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -277,18 +232,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.cloud.translate.v3.CreateGlossaryRequest)) { return super.equals(obj); } - com.google.cloud.translate.v3.CreateGlossaryRequest other = - (com.google.cloud.translate.v3.CreateGlossaryRequest) obj; + com.google.cloud.translate.v3.CreateGlossaryRequest other = (com.google.cloud.translate.v3.CreateGlossaryRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasGlossary() != other.hasGlossary()) return false; if (hasGlossary()) { - if (!getGlossary().equals(other.getGlossary())) return false; + if (!getGlossary() + .equals(other.getGlossary())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -313,126 +269,117 @@ public int hashCode() { } public static com.google.cloud.translate.v3.CreateGlossaryRequest 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.cloud.translate.v3.CreateGlossaryRequest 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.cloud.translate.v3.CreateGlossaryRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.CreateGlossaryRequest 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.cloud.translate.v3.CreateGlossaryRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.CreateGlossaryRequest 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.cloud.translate.v3.CreateGlossaryRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.CreateGlossaryRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.CreateGlossaryRequest 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.cloud.translate.v3.CreateGlossaryRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.CreateGlossaryRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.CreateGlossaryRequest 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.cloud.translate.v3.CreateGlossaryRequest 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.cloud.translate.v3.CreateGlossaryRequest 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.cloud.translate.v3.CreateGlossaryRequest 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; } /** - * - * *
    * Request message for CreateGlossary.
    * 
* * Protobuf type {@code google.cloud.translation.v3.CreateGlossaryRequest} */ - 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.translation.v3.CreateGlossaryRequest) com.google.cloud.translate.v3.CreateGlossaryRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_CreateGlossaryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_CreateGlossaryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_CreateGlossaryRequest_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_CreateGlossaryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.CreateGlossaryRequest.class, - com.google.cloud.translate.v3.CreateGlossaryRequest.Builder.class); + com.google.cloud.translate.v3.CreateGlossaryRequest.class, com.google.cloud.translate.v3.CreateGlossaryRequest.Builder.class); } // Construct using com.google.cloud.translate.v3.CreateGlossaryRequest.newBuilder() @@ -440,15 +387,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -464,9 +412,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_CreateGlossaryRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_CreateGlossaryRequest_descriptor; } @java.lang.Override @@ -485,8 +433,7 @@ public com.google.cloud.translate.v3.CreateGlossaryRequest build() { @java.lang.Override public com.google.cloud.translate.v3.CreateGlossaryRequest buildPartial() { - com.google.cloud.translate.v3.CreateGlossaryRequest result = - new com.google.cloud.translate.v3.CreateGlossaryRequest(this); + com.google.cloud.translate.v3.CreateGlossaryRequest result = new com.google.cloud.translate.v3.CreateGlossaryRequest(this); result.parent_ = parent_; if (glossaryBuilder_ == null) { result.glossary_ = glossary_; @@ -501,39 +448,38 @@ public com.google.cloud.translate.v3.CreateGlossaryRequest 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.cloud.translate.v3.CreateGlossaryRequest) { - return mergeFrom((com.google.cloud.translate.v3.CreateGlossaryRequest) other); + return mergeFrom((com.google.cloud.translate.v3.CreateGlossaryRequest)other); } else { super.mergeFrom(other); return this; @@ -541,8 +487,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.CreateGlossaryRequest other) { - if (other == com.google.cloud.translate.v3.CreateGlossaryRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3.CreateGlossaryRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -569,8 +514,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.translate.v3.CreateGlossaryRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.translate.v3.CreateGlossaryRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -582,22 +526,18 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The project name.
      * 
* - * - * 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; @@ -606,23 +546,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The project name.
      * 
* - * - * 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 { @@ -630,67 +567,54 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The project name.
      * 
* - * - * 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) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The project name.
      * 
* - * - * 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() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The project name.
      * 
* - * - * 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) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -698,58 +622,39 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.translate.v3.Glossary glossary_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.Glossary, - com.google.cloud.translate.v3.Glossary.Builder, - com.google.cloud.translate.v3.GlossaryOrBuilder> - glossaryBuilder_; + com.google.cloud.translate.v3.Glossary, com.google.cloud.translate.v3.Glossary.Builder, com.google.cloud.translate.v3.GlossaryOrBuilder> glossaryBuilder_; /** - * - * *
      * Required. The glossary to create.
      * 
* - * - * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the glossary field is set. */ public boolean hasGlossary() { return glossaryBuilder_ != null || glossary_ != null; } /** - * - * *
      * Required. The glossary to create.
      * 
* - * - * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The glossary. */ public com.google.cloud.translate.v3.Glossary getGlossary() { if (glossaryBuilder_ == null) { - return glossary_ == null - ? com.google.cloud.translate.v3.Glossary.getDefaultInstance() - : glossary_; + return glossary_ == null ? com.google.cloud.translate.v3.Glossary.getDefaultInstance() : glossary_; } else { return glossaryBuilder_.getMessage(); } } /** - * - * *
      * Required. The glossary to create.
      * 
* - * - * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setGlossary(com.google.cloud.translate.v3.Glossary value) { if (glossaryBuilder_ == null) { @@ -765,17 +670,14 @@ public Builder setGlossary(com.google.cloud.translate.v3.Glossary value) { return this; } /** - * - * *
      * Required. The glossary to create.
      * 
* - * - * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setGlossary(com.google.cloud.translate.v3.Glossary.Builder builderForValue) { + public Builder setGlossary( + com.google.cloud.translate.v3.Glossary.Builder builderForValue) { if (glossaryBuilder_ == null) { glossary_ = builderForValue.build(); onChanged(); @@ -786,23 +688,17 @@ public Builder setGlossary(com.google.cloud.translate.v3.Glossary.Builder builde return this; } /** - * - * *
      * Required. The glossary to create.
      * 
* - * - * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeGlossary(com.google.cloud.translate.v3.Glossary value) { if (glossaryBuilder_ == null) { if (glossary_ != null) { glossary_ = - com.google.cloud.translate.v3.Glossary.newBuilder(glossary_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.translate.v3.Glossary.newBuilder(glossary_).mergeFrom(value).buildPartial(); } else { glossary_ = value; } @@ -814,15 +710,11 @@ public Builder mergeGlossary(com.google.cloud.translate.v3.Glossary value) { return this; } /** - * - * *
      * Required. The glossary to create.
      * 
* - * - * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearGlossary() { if (glossaryBuilder_ == null) { @@ -836,71 +728,55 @@ public Builder clearGlossary() { return this; } /** - * - * *
      * Required. The glossary to create.
      * 
* - * - * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.translate.v3.Glossary.Builder getGlossaryBuilder() { - + onChanged(); return getGlossaryFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The glossary to create.
      * 
* - * - * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.translate.v3.GlossaryOrBuilder getGlossaryOrBuilder() { if (glossaryBuilder_ != null) { return glossaryBuilder_.getMessageOrBuilder(); } else { - return glossary_ == null - ? com.google.cloud.translate.v3.Glossary.getDefaultInstance() - : glossary_; + return glossary_ == null ? + com.google.cloud.translate.v3.Glossary.getDefaultInstance() : glossary_; } } /** - * - * *
      * Required. The glossary to create.
      * 
* - * - * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.Glossary, - com.google.cloud.translate.v3.Glossary.Builder, - com.google.cloud.translate.v3.GlossaryOrBuilder> + com.google.cloud.translate.v3.Glossary, com.google.cloud.translate.v3.Glossary.Builder, com.google.cloud.translate.v3.GlossaryOrBuilder> getGlossaryFieldBuilder() { if (glossaryBuilder_ == null) { - glossaryBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.Glossary, - com.google.cloud.translate.v3.Glossary.Builder, - com.google.cloud.translate.v3.GlossaryOrBuilder>( - getGlossary(), getParentForChildren(), isClean()); + glossaryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3.Glossary, com.google.cloud.translate.v3.Glossary.Builder, com.google.cloud.translate.v3.GlossaryOrBuilder>( + getGlossary(), + getParentForChildren(), + isClean()); glossary_ = null; } return glossaryBuilder_; } - @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); } @@ -910,12 +786,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.CreateGlossaryRequest) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.CreateGlossaryRequest) private static final com.google.cloud.translate.v3.CreateGlossaryRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.CreateGlossaryRequest(); } @@ -924,16 +800,16 @@ public static com.google.cloud.translate.v3.CreateGlossaryRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateGlossaryRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateGlossaryRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateGlossaryRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateGlossaryRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -948,4 +824,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.CreateGlossaryRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryRequestOrBuilder.java b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryRequestOrBuilder.java new file mode 100644 index 00000000..cf8b5264 --- /dev/null +++ b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryRequestOrBuilder.java @@ -0,0 +1,56 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/translate/v3/translation_service.proto + +package com.google.cloud.translate.v3; + +public interface CreateGlossaryRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.CreateGlossaryRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The project name.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + java.lang.String getParent(); + /** + *
+   * Required. The project name.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + com.google.protobuf.ByteString + getParentBytes(); + + /** + *
+   * Required. The glossary to create.
+   * 
+ * + * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the glossary field is set. + */ + boolean hasGlossary(); + /** + *
+   * Required. The glossary to create.
+   * 
+ * + * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The glossary. + */ + com.google.cloud.translate.v3.Glossary getGlossary(); + /** + *
+   * Required. The glossary to create.
+   * 
+ * + * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.translate.v3.GlossaryOrBuilder getGlossaryOrBuilder(); +} diff --git a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryMetadata.java b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryMetadata.java similarity index 71% rename from proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryMetadata.java rename to owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryMetadata.java index df9a2e64..4a6ab8fd 100644 --- a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryMetadata.java +++ b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryMetadata.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 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/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** - * - * *
  * Stored in the
  * [google.longrunning.Operation.metadata][google.longrunning.Operation.metadata]
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.translation.v3.DeleteGlossaryMetadata}
  */
-public final class DeleteGlossaryMetadata extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class DeleteGlossaryMetadata extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.DeleteGlossaryMetadata)
     DeleteGlossaryMetadataOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use DeleteGlossaryMetadata.newBuilder() to construct.
   private DeleteGlossaryMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private DeleteGlossaryMetadata() {
     name_ = "";
     state_ = 0;
@@ -46,15 +28,16 @@ private DeleteGlossaryMetadata() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new DeleteGlossaryMetadata();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private DeleteGlossaryMetadata(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -73,82 +56,73 @@ private DeleteGlossaryMetadata(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
-            }
-          case 16:
-            {
-              int rawValue = input.readEnum();
+            name_ = s;
+            break;
+          }
+          case 16: {
+            int rawValue = input.readEnum();
 
-              state_ = rawValue;
-              break;
+            state_ = rawValue;
+            break;
+          }
+          case 26: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (submitTime_ != null) {
+              subBuilder = submitTime_.toBuilder();
             }
-          case 26:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (submitTime_ != null) {
-                subBuilder = submitTime_.toBuilder();
-              }
-              submitTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(submitTime_);
-                submitTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+            submitTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(submitTime_);
+              submitTime_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.translate.v3.TranslationServiceProto
-        .internal_static_google_cloud_translation_v3_DeleteGlossaryMetadata_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DeleteGlossaryMetadata_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.translate.v3.TranslationServiceProto
-        .internal_static_google_cloud_translation_v3_DeleteGlossaryMetadata_fieldAccessorTable
+    return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DeleteGlossaryMetadata_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.translate.v3.DeleteGlossaryMetadata.class,
-            com.google.cloud.translate.v3.DeleteGlossaryMetadata.Builder.class);
+            com.google.cloud.translate.v3.DeleteGlossaryMetadata.class, com.google.cloud.translate.v3.DeleteGlossaryMetadata.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * Enumerates the possible states that the creation request can be in.
    * 
* * Protobuf enum {@code google.cloud.translation.v3.DeleteGlossaryMetadata.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Invalid.
      * 
@@ -157,8 +131,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * Request is being processed.
      * 
@@ -167,8 +139,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ RUNNING(1), /** - * - * *
      * The glossary was successfully deleted.
      * 
@@ -177,8 +147,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ SUCCEEDED(2), /** - * - * *
      * Failed to delete the glossary.
      * 
@@ -187,8 +155,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ FAILED(3), /** - * - * *
      * Request is in the process of being canceled after caller invoked
      * longrunning.Operations.CancelOperation on the request id.
@@ -198,8 +164,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     CANCELLING(4),
     /**
-     *
-     *
      * 
      * The glossary deletion request was successfully canceled.
      * 
@@ -211,8 +175,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Invalid.
      * 
@@ -221,8 +183,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Request is being processed.
      * 
@@ -231,8 +191,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RUNNING_VALUE = 1; /** - * - * *
      * The glossary was successfully deleted.
      * 
@@ -241,8 +199,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SUCCEEDED_VALUE = 2; /** - * - * *
      * Failed to delete the glossary.
      * 
@@ -251,8 +207,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FAILED_VALUE = 3; /** - * - * *
      * Request is in the process of being canceled after caller invoked
      * longrunning.Operations.CancelOperation on the request id.
@@ -262,8 +216,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int CANCELLING_VALUE = 4;
     /**
-     *
-     *
      * 
      * The glossary deletion request was successfully canceled.
      * 
@@ -272,6 +224,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CANCELLED_VALUE = 5; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -296,57 +249,52 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: - return STATE_UNSPECIFIED; - case 1: - return RUNNING; - case 2: - return SUCCEEDED; - case 3: - return FAILED; - case 4: - return CANCELLING; - case 5: - return CANCELLED; - default: - return null; + case 0: return STATE_UNSPECIFIED; + case 1: return RUNNING; + case 2: return SUCCEEDED; + case 3: return FAILED; + case 4: return CANCELLING; + case 5: return CANCELLED; + 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< + State> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.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.cloud.translate.v3.DeleteGlossaryMetadata.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.translate.v3.DeleteGlossaryMetadata.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); - public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State 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; @@ -366,14 +314,11 @@ private State(int value) { public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * The name of the glossary that is being deleted.
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -382,29 +327,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 name of the glossary that is being deleted.
    * 
* * 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 { @@ -415,52 +360,38 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int STATE_FIELD_NUMBER = 2; private int state_; /** - * - * *
    * The current state of the glossary deletion operation.
    * 
* * .google.cloud.translation.v3.DeleteGlossaryMetadata.State state = 2; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * The current state of the glossary deletion operation.
    * 
* * .google.cloud.translation.v3.DeleteGlossaryMetadata.State state = 2; - * * @return The state. */ - @java.lang.Override - public com.google.cloud.translate.v3.DeleteGlossaryMetadata.State getState() { + @java.lang.Override public com.google.cloud.translate.v3.DeleteGlossaryMetadata.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.translate.v3.DeleteGlossaryMetadata.State result = - com.google.cloud.translate.v3.DeleteGlossaryMetadata.State.valueOf(state_); - return result == null - ? com.google.cloud.translate.v3.DeleteGlossaryMetadata.State.UNRECOGNIZED - : result; + com.google.cloud.translate.v3.DeleteGlossaryMetadata.State result = com.google.cloud.translate.v3.DeleteGlossaryMetadata.State.valueOf(state_); + return result == null ? com.google.cloud.translate.v3.DeleteGlossaryMetadata.State.UNRECOGNIZED : result; } public static final int SUBMIT_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp submitTime_; /** - * - * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 3; - * * @return Whether the submitTime field is set. */ @java.lang.Override @@ -468,14 +399,11 @@ public boolean hasSubmitTime() { return submitTime_ != null; } /** - * - * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 3; - * * @return The submitTime. */ @java.lang.Override @@ -483,8 +411,6 @@ public com.google.protobuf.Timestamp getSubmitTime() { return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } /** - * - * *
    * The time when the operation was submitted to the server.
    * 
@@ -497,7 +423,6 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -509,13 +434,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + 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_); } - if (state_ - != com.google.cloud.translate.v3.DeleteGlossaryMetadata.State.STATE_UNSPECIFIED - .getNumber()) { + if (state_ != com.google.cloud.translate.v3.DeleteGlossaryMetadata.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(2, state_); } if (submitTime_ != null) { @@ -530,16 +454,16 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (state_ - != com.google.cloud.translate.v3.DeleteGlossaryMetadata.State.STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, state_); + if (state_ != com.google.cloud.translate.v3.DeleteGlossaryMetadata.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, state_); } if (submitTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSubmitTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getSubmitTime()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -549,19 +473,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.cloud.translate.v3.DeleteGlossaryMetadata)) { return super.equals(obj); } - com.google.cloud.translate.v3.DeleteGlossaryMetadata other = - (com.google.cloud.translate.v3.DeleteGlossaryMetadata) obj; + com.google.cloud.translate.v3.DeleteGlossaryMetadata other = (com.google.cloud.translate.v3.DeleteGlossaryMetadata) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (state_ != other.state_) return false; if (hasSubmitTime() != other.hasSubmitTime()) return false; if (hasSubmitTime()) { - if (!getSubmitTime().equals(other.getSubmitTime())) return false; + if (!getSubmitTime() + .equals(other.getSubmitTime())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -588,103 +513,96 @@ public int hashCode() { } public static com.google.cloud.translate.v3.DeleteGlossaryMetadata 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.cloud.translate.v3.DeleteGlossaryMetadata 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.cloud.translate.v3.DeleteGlossaryMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.DeleteGlossaryMetadata 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.cloud.translate.v3.DeleteGlossaryMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.DeleteGlossaryMetadata 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.cloud.translate.v3.DeleteGlossaryMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.DeleteGlossaryMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.DeleteGlossaryMetadata 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.cloud.translate.v3.DeleteGlossaryMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.DeleteGlossaryMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.DeleteGlossaryMetadata 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.cloud.translate.v3.DeleteGlossaryMetadata 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.cloud.translate.v3.DeleteGlossaryMetadata 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.cloud.translate.v3.DeleteGlossaryMetadata 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; } /** - * - * *
    * Stored in the
    * [google.longrunning.Operation.metadata][google.longrunning.Operation.metadata]
@@ -693,23 +611,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.translation.v3.DeleteGlossaryMetadata}
    */
-  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.translation.v3.DeleteGlossaryMetadata)
       com.google.cloud.translate.v3.DeleteGlossaryMetadataOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.translate.v3.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3_DeleteGlossaryMetadata_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DeleteGlossaryMetadata_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.translate.v3.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3_DeleteGlossaryMetadata_fieldAccessorTable
+      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DeleteGlossaryMetadata_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.translate.v3.DeleteGlossaryMetadata.class,
-              com.google.cloud.translate.v3.DeleteGlossaryMetadata.Builder.class);
+              com.google.cloud.translate.v3.DeleteGlossaryMetadata.class, com.google.cloud.translate.v3.DeleteGlossaryMetadata.Builder.class);
     }
 
     // Construct using com.google.cloud.translate.v3.DeleteGlossaryMetadata.newBuilder()
@@ -717,15 +633,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -743,9 +660,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.translate.v3.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3_DeleteGlossaryMetadata_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DeleteGlossaryMetadata_descriptor;
     }
 
     @java.lang.Override
@@ -764,8 +681,7 @@ public com.google.cloud.translate.v3.DeleteGlossaryMetadata build() {
 
     @java.lang.Override
     public com.google.cloud.translate.v3.DeleteGlossaryMetadata buildPartial() {
-      com.google.cloud.translate.v3.DeleteGlossaryMetadata result =
-          new com.google.cloud.translate.v3.DeleteGlossaryMetadata(this);
+      com.google.cloud.translate.v3.DeleteGlossaryMetadata result = new com.google.cloud.translate.v3.DeleteGlossaryMetadata(this);
       result.name_ = name_;
       result.state_ = state_;
       if (submitTimeBuilder_ == null) {
@@ -781,39 +697,38 @@ public com.google.cloud.translate.v3.DeleteGlossaryMetadata 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.cloud.translate.v3.DeleteGlossaryMetadata) {
-        return mergeFrom((com.google.cloud.translate.v3.DeleteGlossaryMetadata) other);
+        return mergeFrom((com.google.cloud.translate.v3.DeleteGlossaryMetadata)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -821,8 +736,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.translate.v3.DeleteGlossaryMetadata other) {
-      if (other == com.google.cloud.translate.v3.DeleteGlossaryMetadata.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.translate.v3.DeleteGlossaryMetadata.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -852,8 +766,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.translate.v3.DeleteGlossaryMetadata) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.translate.v3.DeleteGlossaryMetadata) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -865,20 +778,18 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * The name of the glossary that is being deleted.
      * 
* * 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; @@ -887,21 +798,20 @@ public java.lang.String getName() { } } /** - * - * *
      * The name of the glossary that is being deleted.
      * 
* * 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 { @@ -909,61 +819,54 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The name of the glossary that is being deleted.
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * The name of the glossary that is being deleted.
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * The name of the glossary that is being deleted.
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -971,67 +874,51 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private int state_ = 0; /** - * - * *
      * The current state of the glossary deletion operation.
      * 
* * .google.cloud.translation.v3.DeleteGlossaryMetadata.State state = 2; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * The current state of the glossary deletion operation.
      * 
* * .google.cloud.translation.v3.DeleteGlossaryMetadata.State state = 2; - * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** - * - * *
      * The current state of the glossary deletion operation.
      * 
* * .google.cloud.translation.v3.DeleteGlossaryMetadata.State state = 2; - * * @return The state. */ @java.lang.Override public com.google.cloud.translate.v3.DeleteGlossaryMetadata.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.translate.v3.DeleteGlossaryMetadata.State result = - com.google.cloud.translate.v3.DeleteGlossaryMetadata.State.valueOf(state_); - return result == null - ? com.google.cloud.translate.v3.DeleteGlossaryMetadata.State.UNRECOGNIZED - : result; + com.google.cloud.translate.v3.DeleteGlossaryMetadata.State result = com.google.cloud.translate.v3.DeleteGlossaryMetadata.State.valueOf(state_); + return result == null ? com.google.cloud.translate.v3.DeleteGlossaryMetadata.State.UNRECOGNIZED : result; } /** - * - * *
      * The current state of the glossary deletion operation.
      * 
* * .google.cloud.translation.v3.DeleteGlossaryMetadata.State state = 2; - * * @param value The state to set. * @return This builder for chaining. */ @@ -1039,24 +926,21 @@ public Builder setState(com.google.cloud.translate.v3.DeleteGlossaryMetadata.Sta if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The current state of the glossary deletion operation.
      * 
* * .google.cloud.translation.v3.DeleteGlossaryMetadata.State state = 2; - * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -1064,47 +948,34 @@ public Builder clearState() { private com.google.protobuf.Timestamp submitTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - submitTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> submitTimeBuilder_; /** - * - * *
      * The time when the operation was submitted to the server.
      * 
* * .google.protobuf.Timestamp submit_time = 3; - * * @return Whether the submitTime field is set. */ public boolean hasSubmitTime() { return submitTimeBuilder_ != null || submitTime_ != null; } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
* * .google.protobuf.Timestamp submit_time = 3; - * * @return The submitTime. */ public com.google.protobuf.Timestamp getSubmitTime() { if (submitTimeBuilder_ == null) { - return submitTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : submitTime_; + return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } else { return submitTimeBuilder_.getMessage(); } } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
@@ -1125,15 +996,14 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
* * .google.protobuf.Timestamp submit_time = 3; */ - public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setSubmitTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (submitTimeBuilder_ == null) { submitTime_ = builderForValue.build(); onChanged(); @@ -1144,8 +1014,6 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
@@ -1156,7 +1024,7 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { if (submitTimeBuilder_ == null) { if (submitTime_ != null) { submitTime_ = - com.google.protobuf.Timestamp.newBuilder(submitTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(submitTime_).mergeFrom(value).buildPartial(); } else { submitTime_ = value; } @@ -1168,8 +1036,6 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
@@ -1188,8 +1054,6 @@ public Builder clearSubmitTime() { return this; } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
@@ -1197,13 +1061,11 @@ public Builder clearSubmitTime() { * .google.protobuf.Timestamp submit_time = 3; */ public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder() { - + onChanged(); return getSubmitTimeFieldBuilder().getBuilder(); } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
@@ -1214,14 +1076,11 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { if (submitTimeBuilder_ != null) { return submitTimeBuilder_.getMessageOrBuilder(); } else { - return submitTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : submitTime_; + return submitTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
@@ -1229,24 +1088,21 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { * .google.protobuf.Timestamp submit_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> getSubmitTimeFieldBuilder() { if (submitTimeBuilder_ == null) { - submitTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getSubmitTime(), getParentForChildren(), isClean()); + submitTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getSubmitTime(), + getParentForChildren(), + isClean()); submitTime_ = null; } return submitTimeBuilder_; } - @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); } @@ -1256,12 +1112,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.DeleteGlossaryMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.DeleteGlossaryMetadata) private static final com.google.cloud.translate.v3.DeleteGlossaryMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.DeleteGlossaryMetadata(); } @@ -1270,16 +1126,16 @@ public static com.google.cloud.translate.v3.DeleteGlossaryMetadata getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteGlossaryMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteGlossaryMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteGlossaryMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteGlossaryMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1294,4 +1150,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.DeleteGlossaryMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryMetadataOrBuilder.java b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryMetadataOrBuilder.java similarity index 70% rename from proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryMetadataOrBuilder.java rename to owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryMetadataOrBuilder.java index 9fb092a3..47cc452b 100644 --- a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryMetadataOrBuilder.java +++ b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryMetadataOrBuilder.java @@ -1,105 +1,70 @@ -/* - * Copyright 2020 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/translate/v3/translation_service.proto package com.google.cloud.translate.v3; -public interface DeleteGlossaryMetadataOrBuilder - extends +public interface DeleteGlossaryMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.DeleteGlossaryMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The name of the glossary that is being deleted.
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The name of the glossary that is being deleted.
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * The current state of the glossary deletion operation.
    * 
* * .google.cloud.translation.v3.DeleteGlossaryMetadata.State state = 2; - * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * The current state of the glossary deletion operation.
    * 
* * .google.cloud.translation.v3.DeleteGlossaryMetadata.State state = 2; - * * @return The state. */ com.google.cloud.translate.v3.DeleteGlossaryMetadata.State getState(); /** - * - * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 3; - * * @return Whether the submitTime field is set. */ boolean hasSubmitTime(); /** - * - * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 3; - * * @return The submitTime. */ com.google.protobuf.Timestamp getSubmitTime(); /** - * - * *
    * The time when the operation was submitted to the server.
    * 
diff --git a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryRequest.java b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryRequest.java similarity index 65% rename from proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryRequest.java rename to owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryRequest.java index d747f9d5..2be018d1 100644 --- a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryRequest.java +++ b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 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/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** - * - * *
  * Request message for DeleteGlossary.
  * 
* * Protobuf type {@code google.cloud.translation.v3.DeleteGlossaryRequest} */ -public final class DeleteGlossaryRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteGlossaryRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.DeleteGlossaryRequest) DeleteGlossaryRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteGlossaryRequest.newBuilder() to construct. private DeleteGlossaryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteGlossaryRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteGlossaryRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DeleteGlossaryRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,60 +53,52 @@ private DeleteGlossaryRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_DeleteGlossaryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DeleteGlossaryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_DeleteGlossaryRequest_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DeleteGlossaryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.DeleteGlossaryRequest.class, - com.google.cloud.translate.v3.DeleteGlossaryRequest.Builder.class); + com.google.cloud.translate.v3.DeleteGlossaryRequest.class, com.google.cloud.translate.v3.DeleteGlossaryRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The name of the glossary to delete.
    * 
* - * - * 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 @@ -132,31 +107,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; } } /** - * - * *
    * Required. The name of the glossary to delete.
    * 
* - * - * 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 { @@ -165,7 +138,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -177,8 +149,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + 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_); } unknownFields.writeTo(output); @@ -190,7 +163,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } size += unknownFields.getSerializedSize(); @@ -201,15 +174,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.cloud.translate.v3.DeleteGlossaryRequest)) { return super.equals(obj); } - com.google.cloud.translate.v3.DeleteGlossaryRequest other = - (com.google.cloud.translate.v3.DeleteGlossaryRequest) obj; + com.google.cloud.translate.v3.DeleteGlossaryRequest other = (com.google.cloud.translate.v3.DeleteGlossaryRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -229,126 +202,117 @@ public int hashCode() { } public static com.google.cloud.translate.v3.DeleteGlossaryRequest 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.cloud.translate.v3.DeleteGlossaryRequest 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.cloud.translate.v3.DeleteGlossaryRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.DeleteGlossaryRequest 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.cloud.translate.v3.DeleteGlossaryRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.DeleteGlossaryRequest 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.cloud.translate.v3.DeleteGlossaryRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.DeleteGlossaryRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.DeleteGlossaryRequest 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.cloud.translate.v3.DeleteGlossaryRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.DeleteGlossaryRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.DeleteGlossaryRequest 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.cloud.translate.v3.DeleteGlossaryRequest 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.cloud.translate.v3.DeleteGlossaryRequest 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.cloud.translate.v3.DeleteGlossaryRequest 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; } /** - * - * *
    * Request message for DeleteGlossary.
    * 
* * Protobuf type {@code google.cloud.translation.v3.DeleteGlossaryRequest} */ - 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.translation.v3.DeleteGlossaryRequest) com.google.cloud.translate.v3.DeleteGlossaryRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_DeleteGlossaryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DeleteGlossaryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_DeleteGlossaryRequest_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DeleteGlossaryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.DeleteGlossaryRequest.class, - com.google.cloud.translate.v3.DeleteGlossaryRequest.Builder.class); + com.google.cloud.translate.v3.DeleteGlossaryRequest.class, com.google.cloud.translate.v3.DeleteGlossaryRequest.Builder.class); } // Construct using com.google.cloud.translate.v3.DeleteGlossaryRequest.newBuilder() @@ -356,15 +320,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -374,9 +339,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_DeleteGlossaryRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DeleteGlossaryRequest_descriptor; } @java.lang.Override @@ -395,8 +360,7 @@ public com.google.cloud.translate.v3.DeleteGlossaryRequest build() { @java.lang.Override public com.google.cloud.translate.v3.DeleteGlossaryRequest buildPartial() { - com.google.cloud.translate.v3.DeleteGlossaryRequest result = - new com.google.cloud.translate.v3.DeleteGlossaryRequest(this); + com.google.cloud.translate.v3.DeleteGlossaryRequest result = new com.google.cloud.translate.v3.DeleteGlossaryRequest(this); result.name_ = name_; onBuilt(); return result; @@ -406,39 +370,38 @@ public com.google.cloud.translate.v3.DeleteGlossaryRequest 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.cloud.translate.v3.DeleteGlossaryRequest) { - return mergeFrom((com.google.cloud.translate.v3.DeleteGlossaryRequest) other); + return mergeFrom((com.google.cloud.translate.v3.DeleteGlossaryRequest)other); } else { super.mergeFrom(other); return this; @@ -446,8 +409,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.DeleteGlossaryRequest other) { - if (other == com.google.cloud.translate.v3.DeleteGlossaryRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3.DeleteGlossaryRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -471,8 +433,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.translate.v3.DeleteGlossaryRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.translate.v3.DeleteGlossaryRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -484,22 +445,18 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the glossary to delete.
      * 
* - * - * 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; @@ -508,23 +465,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the glossary to delete.
      * 
* - * - * 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 { @@ -532,74 +486,61 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the glossary to delete.
      * 
* - * - * 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) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The name of the glossary to delete.
      * 
* - * - * 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() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The name of the glossary to delete.
      * 
* - * - * 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) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; 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); } @@ -609,12 +550,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.DeleteGlossaryRequest) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.DeleteGlossaryRequest) private static final com.google.cloud.translate.v3.DeleteGlossaryRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.DeleteGlossaryRequest(); } @@ -623,16 +564,16 @@ public static com.google.cloud.translate.v3.DeleteGlossaryRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteGlossaryRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteGlossaryRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteGlossaryRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteGlossaryRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -647,4 +588,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.DeleteGlossaryRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryRequestOrBuilder.java b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryRequestOrBuilder.java new file mode 100644 index 00000000..a062efef --- /dev/null +++ b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/translate/v3/translation_service.proto + +package com.google.cloud.translate.v3; + +public interface DeleteGlossaryRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.DeleteGlossaryRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the glossary to delete.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The name of the glossary to delete.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryResponse.java b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryResponse.java similarity index 72% rename from proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryResponse.java rename to owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryResponse.java index 80133c38..702a6790 100644 --- a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryResponse.java +++ b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryResponse.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 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/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** - * - * *
  * Stored in the
  * [google.longrunning.Operation.response][google.longrunning.Operation.response]
@@ -29,31 +12,31 @@
  *
  * Protobuf type {@code google.cloud.translation.v3.DeleteGlossaryResponse}
  */
-public final class DeleteGlossaryResponse extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class DeleteGlossaryResponse extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.DeleteGlossaryResponse)
     DeleteGlossaryResponseOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use DeleteGlossaryResponse.newBuilder() to construct.
   private DeleteGlossaryResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private DeleteGlossaryResponse() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new DeleteGlossaryResponse();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private DeleteGlossaryResponse(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -72,88 +55,78 @@ private DeleteGlossaryResponse(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
+            name_ = s;
+            break;
+          }
+          case 18: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (submitTime_ != null) {
+              subBuilder = submitTime_.toBuilder();
             }
-          case 18:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (submitTime_ != null) {
-                subBuilder = submitTime_.toBuilder();
-              }
-              submitTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(submitTime_);
-                submitTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+            submitTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(submitTime_);
+              submitTime_ = subBuilder.buildPartial();
             }
-          case 26:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (endTime_ != null) {
-                subBuilder = endTime_.toBuilder();
-              }
-              endTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(endTime_);
-                endTime_ = subBuilder.buildPartial();
-              }
 
-              break;
+            break;
+          }
+          case 26: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (endTime_ != null) {
+              subBuilder = endTime_.toBuilder();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            endTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(endTime_);
+              endTime_ = subBuilder.buildPartial();
             }
+
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
+            }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.translate.v3.TranslationServiceProto
-        .internal_static_google_cloud_translation_v3_DeleteGlossaryResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DeleteGlossaryResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.translate.v3.TranslationServiceProto
-        .internal_static_google_cloud_translation_v3_DeleteGlossaryResponse_fieldAccessorTable
+    return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DeleteGlossaryResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.translate.v3.DeleteGlossaryResponse.class,
-            com.google.cloud.translate.v3.DeleteGlossaryResponse.Builder.class);
+            com.google.cloud.translate.v3.DeleteGlossaryResponse.class, com.google.cloud.translate.v3.DeleteGlossaryResponse.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
-   *
-   *
    * 
    * The name of the deleted glossary.
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -162,29 +135,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 name of the deleted glossary.
    * 
* * 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 { @@ -195,14 +168,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int SUBMIT_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp submitTime_; /** - * - * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 2; - * * @return Whether the submitTime field is set. */ @java.lang.Override @@ -210,14 +180,11 @@ public boolean hasSubmitTime() { return submitTime_ != null; } /** - * - * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 2; - * * @return The submitTime. */ @java.lang.Override @@ -225,8 +192,6 @@ public com.google.protobuf.Timestamp getSubmitTime() { return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } /** - * - * *
    * The time when the operation was submitted to the server.
    * 
@@ -241,8 +206,6 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp endTime_; /** - * - * *
    * The time when the glossary deletion is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -250,7 +213,6 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() {
    * 
* * .google.protobuf.Timestamp end_time = 3; - * * @return Whether the endTime field is set. */ @java.lang.Override @@ -258,8 +220,6 @@ public boolean hasEndTime() { return endTime_ != null; } /** - * - * *
    * The time when the glossary deletion is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -267,7 +227,6 @@ public boolean hasEndTime() {
    * 
* * .google.protobuf.Timestamp end_time = 3; - * * @return The endTime. */ @java.lang.Override @@ -275,8 +234,6 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** - * - * *
    * The time when the glossary deletion is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -291,7 +248,6 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -303,8 +259,9 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
-    if (!getNameBytes().isEmpty()) {
+  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_);
     }
     if (submitTime_ != null) {
@@ -322,14 +279,16 @@ public int getSerializedSize() {
     if (size != -1) return size;
 
     size = 0;
-    if (!getNameBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
     }
     if (submitTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSubmitTime());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, getSubmitTime());
     }
     if (endTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getEndTime());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(3, getEndTime());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -339,22 +298,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.cloud.translate.v3.DeleteGlossaryResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3.DeleteGlossaryResponse other =
-        (com.google.cloud.translate.v3.DeleteGlossaryResponse) obj;
+    com.google.cloud.translate.v3.DeleteGlossaryResponse other = (com.google.cloud.translate.v3.DeleteGlossaryResponse) obj;
 
-    if (!getName().equals(other.getName())) return false;
+    if (!getName()
+        .equals(other.getName())) return false;
     if (hasSubmitTime() != other.hasSubmitTime()) return false;
     if (hasSubmitTime()) {
-      if (!getSubmitTime().equals(other.getSubmitTime())) return false;
+      if (!getSubmitTime()
+          .equals(other.getSubmitTime())) return false;
     }
     if (hasEndTime() != other.hasEndTime()) return false;
     if (hasEndTime()) {
-      if (!getEndTime().equals(other.getEndTime())) return false;
+      if (!getEndTime()
+          .equals(other.getEndTime())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -383,103 +344,96 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3.DeleteGlossaryResponse 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.cloud.translate.v3.DeleteGlossaryResponse 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.cloud.translate.v3.DeleteGlossaryResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3.DeleteGlossaryResponse 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.cloud.translate.v3.DeleteGlossaryResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3.DeleteGlossaryResponse 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.cloud.translate.v3.DeleteGlossaryResponse parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3.DeleteGlossaryResponse parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3.DeleteGlossaryResponse 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.cloud.translate.v3.DeleteGlossaryResponse parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3.DeleteGlossaryResponse parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3.DeleteGlossaryResponse 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.cloud.translate.v3.DeleteGlossaryResponse 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.cloud.translate.v3.DeleteGlossaryResponse 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.cloud.translate.v3.DeleteGlossaryResponse 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;
   }
   /**
-   *
-   *
    * 
    * Stored in the
    * [google.longrunning.Operation.response][google.longrunning.Operation.response]
@@ -488,23 +442,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.translation.v3.DeleteGlossaryResponse}
    */
-  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.translation.v3.DeleteGlossaryResponse)
       com.google.cloud.translate.v3.DeleteGlossaryResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.translate.v3.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3_DeleteGlossaryResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DeleteGlossaryResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.translate.v3.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3_DeleteGlossaryResponse_fieldAccessorTable
+      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DeleteGlossaryResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.translate.v3.DeleteGlossaryResponse.class,
-              com.google.cloud.translate.v3.DeleteGlossaryResponse.Builder.class);
+              com.google.cloud.translate.v3.DeleteGlossaryResponse.class, com.google.cloud.translate.v3.DeleteGlossaryResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.translate.v3.DeleteGlossaryResponse.newBuilder()
@@ -512,15 +464,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -542,9 +495,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.translate.v3.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3_DeleteGlossaryResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DeleteGlossaryResponse_descriptor;
     }
 
     @java.lang.Override
@@ -563,8 +516,7 @@ public com.google.cloud.translate.v3.DeleteGlossaryResponse build() {
 
     @java.lang.Override
     public com.google.cloud.translate.v3.DeleteGlossaryResponse buildPartial() {
-      com.google.cloud.translate.v3.DeleteGlossaryResponse result =
-          new com.google.cloud.translate.v3.DeleteGlossaryResponse(this);
+      com.google.cloud.translate.v3.DeleteGlossaryResponse result = new com.google.cloud.translate.v3.DeleteGlossaryResponse(this);
       result.name_ = name_;
       if (submitTimeBuilder_ == null) {
         result.submitTime_ = submitTime_;
@@ -584,39 +536,38 @@ public com.google.cloud.translate.v3.DeleteGlossaryResponse 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.cloud.translate.v3.DeleteGlossaryResponse) {
-        return mergeFrom((com.google.cloud.translate.v3.DeleteGlossaryResponse) other);
+        return mergeFrom((com.google.cloud.translate.v3.DeleteGlossaryResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -624,8 +575,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.translate.v3.DeleteGlossaryResponse other) {
-      if (other == com.google.cloud.translate.v3.DeleteGlossaryResponse.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.translate.v3.DeleteGlossaryResponse.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -655,8 +605,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.translate.v3.DeleteGlossaryResponse) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.translate.v3.DeleteGlossaryResponse) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -668,20 +617,18 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * The name of the deleted glossary.
      * 
* * 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; @@ -690,21 +637,20 @@ public java.lang.String getName() { } } /** - * - * *
      * The name of the deleted glossary.
      * 
* * 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 { @@ -712,61 +658,54 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The name of the deleted glossary.
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * The name of the deleted glossary.
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * The name of the deleted glossary.
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -774,47 +713,34 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp submitTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - submitTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> submitTimeBuilder_; /** - * - * *
      * The time when the operation was submitted to the server.
      * 
* * .google.protobuf.Timestamp submit_time = 2; - * * @return Whether the submitTime field is set. */ public boolean hasSubmitTime() { return submitTimeBuilder_ != null || submitTime_ != null; } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
* * .google.protobuf.Timestamp submit_time = 2; - * * @return The submitTime. */ public com.google.protobuf.Timestamp getSubmitTime() { if (submitTimeBuilder_ == null) { - return submitTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : submitTime_; + return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } else { return submitTimeBuilder_.getMessage(); } } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
@@ -835,15 +761,14 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
* * .google.protobuf.Timestamp submit_time = 2; */ - public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setSubmitTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (submitTimeBuilder_ == null) { submitTime_ = builderForValue.build(); onChanged(); @@ -854,8 +779,6 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
@@ -866,7 +789,7 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { if (submitTimeBuilder_ == null) { if (submitTime_ != null) { submitTime_ = - com.google.protobuf.Timestamp.newBuilder(submitTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(submitTime_).mergeFrom(value).buildPartial(); } else { submitTime_ = value; } @@ -878,8 +801,6 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
@@ -898,8 +819,6 @@ public Builder clearSubmitTime() { return this; } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
@@ -907,13 +826,11 @@ public Builder clearSubmitTime() { * .google.protobuf.Timestamp submit_time = 2; */ public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder() { - + onChanged(); return getSubmitTimeFieldBuilder().getBuilder(); } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
@@ -924,14 +841,11 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { if (submitTimeBuilder_ != null) { return submitTimeBuilder_.getMessageOrBuilder(); } else { - return submitTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : submitTime_; + return submitTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
@@ -939,17 +853,14 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { * .google.protobuf.Timestamp submit_time = 2; */ 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> getSubmitTimeFieldBuilder() { if (submitTimeBuilder_ == null) { - submitTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getSubmitTime(), getParentForChildren(), isClean()); + submitTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getSubmitTime(), + getParentForChildren(), + isClean()); submitTime_ = null; } return submitTimeBuilder_; @@ -957,13 +868,8 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - endTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; /** - * - * *
      * The time when the glossary deletion is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -971,15 +877,12 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() {
      * 
* * .google.protobuf.Timestamp end_time = 3; - * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; } /** - * - * *
      * The time when the glossary deletion is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -987,7 +890,6 @@ public boolean hasEndTime() {
      * 
* * .google.protobuf.Timestamp end_time = 3; - * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -998,8 +900,6 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** - * - * *
      * The time when the glossary deletion is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1022,8 +922,6 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time when the glossary deletion is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1032,7 +930,8 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp end_time = 3;
      */
-    public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setEndTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (endTimeBuilder_ == null) {
         endTime_ = builderForValue.build();
         onChanged();
@@ -1043,8 +942,6 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue)
       return this;
     }
     /**
-     *
-     *
      * 
      * The time when the glossary deletion is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1057,7 +954,7 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       if (endTimeBuilder_ == null) {
         if (endTime_ != null) {
           endTime_ =
-              com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial();
+            com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial();
         } else {
           endTime_ = value;
         }
@@ -1069,8 +966,6 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time when the glossary deletion is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1091,8 +986,6 @@ public Builder clearEndTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time when the glossary deletion is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1102,13 +995,11 @@ public Builder clearEndTime() {
      * .google.protobuf.Timestamp end_time = 3;
      */
     public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() {
-
+      
       onChanged();
       return getEndTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The time when the glossary deletion is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1121,12 +1012,11 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
       if (endTimeBuilder_ != null) {
         return endTimeBuilder_.getMessageOrBuilder();
       } else {
-        return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
+        return endTime_ == null ?
+            com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
       }
     }
     /**
-     *
-     *
      * 
      * The time when the glossary deletion is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1136,24 +1026,21 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
      * .google.protobuf.Timestamp end_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> 
         getEndTimeFieldBuilder() {
       if (endTimeBuilder_ == null) {
-        endTimeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Timestamp,
-                com.google.protobuf.Timestamp.Builder,
-                com.google.protobuf.TimestampOrBuilder>(
-                getEndTime(), getParentForChildren(), isClean());
+        endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                getEndTime(),
+                getParentForChildren(),
+                isClean());
         endTime_ = null;
       }
       return endTimeBuilder_;
     }
-
     @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);
     }
 
@@ -1163,12 +1050,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.DeleteGlossaryResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.DeleteGlossaryResponse)
   private static final com.google.cloud.translate.v3.DeleteGlossaryResponse DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3.DeleteGlossaryResponse();
   }
@@ -1177,16 +1064,16 @@ public static com.google.cloud.translate.v3.DeleteGlossaryResponse getDefaultIns
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public DeleteGlossaryResponse parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new DeleteGlossaryResponse(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public DeleteGlossaryResponse parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new DeleteGlossaryResponse(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1201,4 +1088,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3.DeleteGlossaryResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryResponseOrBuilder.java b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryResponseOrBuilder.java
similarity index 73%
rename from proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryResponseOrBuilder.java
rename to owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryResponseOrBuilder.java
index e7ce985a..e406e359 100644
--- a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryResponseOrBuilder.java
+++ b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryResponseOrBuilder.java
@@ -1,80 +1,51 @@
-/*
- * Copyright 2020 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/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
-public interface DeleteGlossaryResponseOrBuilder
-    extends
+public interface DeleteGlossaryResponseOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.DeleteGlossaryResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * The name of the deleted glossary.
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The name of the deleted glossary.
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 2; - * * @return Whether the submitTime field is set. */ boolean hasSubmitTime(); /** - * - * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 2; - * * @return The submitTime. */ com.google.protobuf.Timestamp getSubmitTime(); /** - * - * *
    * The time when the operation was submitted to the server.
    * 
@@ -84,8 +55,6 @@ public interface DeleteGlossaryResponseOrBuilder com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder(); /** - * - * *
    * The time when the glossary deletion is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -93,13 +62,10 @@ public interface DeleteGlossaryResponseOrBuilder
    * 
* * .google.protobuf.Timestamp end_time = 3; - * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** - * - * *
    * The time when the glossary deletion is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -107,13 +73,10 @@ public interface DeleteGlossaryResponseOrBuilder
    * 
* * .google.protobuf.Timestamp end_time = 3; - * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** - * - * *
    * The time when the glossary deletion is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
diff --git a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageRequest.java b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageRequest.java
similarity index 71%
rename from proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageRequest.java
rename to owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageRequest.java
index 4904295e..279dd2c3 100644
--- a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageRequest.java
+++ b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageRequest.java
@@ -1,42 +1,24 @@
-/*
- * Copyright 2020 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/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
 /**
- *
- *
  * 
  * The request message for language detection.
  * 
* * Protobuf type {@code google.cloud.translation.v3.DetectLanguageRequest} */ -public final class DetectLanguageRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DetectLanguageRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.DetectLanguageRequest) DetectLanguageRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DetectLanguageRequest.newBuilder() to construct. private DetectLanguageRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DetectLanguageRequest() { parent_ = ""; model_ = ""; @@ -45,15 +27,16 @@ private DetectLanguageRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DetectLanguageRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DetectLanguageRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,103 +56,95 @@ private DetectLanguageRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - sourceCase_ = 1; - source_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + sourceCase_ = 1; + source_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - mimeType_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + mimeType_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); - model_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); + model_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 50: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - labels_ = - com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); - break; + parent_ = s; + break; + } + case 50: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put( + labels__.getKey(), labels__.getValue()); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_DetectLanguageRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DetectLanguageRequest_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.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_DetectLanguageRequest_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DetectLanguageRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.DetectLanguageRequest.class, - com.google.cloud.translate.v3.DetectLanguageRequest.Builder.class); + com.google.cloud.translate.v3.DetectLanguageRequest.class, com.google.cloud.translate.v3.DetectLanguageRequest.Builder.class); } private int sourceCase_ = 0; private java.lang.Object source_; - public enum SourceCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { CONTENT(1), SOURCE_NOT_SET(0); private final int value; - private SourceCase(int value) { this.value = value; } @@ -185,29 +160,25 @@ public static SourceCase valueOf(int value) { public static SourceCase forNumber(int value) { switch (value) { - case 1: - return CONTENT; - case 0: - return SOURCE_NOT_SET; - default: - return null; + case 1: return CONTENT; + case 0: return SOURCE_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public SourceCase getSourceCase() { - return SourceCase.forNumber(sourceCase_); + public SourceCase + getSourceCase() { + return SourceCase.forNumber( + sourceCase_); } public static final int PARENT_FIELD_NUMBER = 5; private volatile java.lang.Object parent_; /** - * - * *
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -219,10 +190,7 @@ public SourceCase getSourceCase() {
    * Otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -231,15 +199,14 @@ 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. Project or location to make a call. Must refer to a caller's
    * project.
@@ -251,18 +218,17 @@ public java.lang.String getParent() {
    * Otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 5 [(.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 { @@ -273,8 +239,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int MODEL_FIELD_NUMBER = 4; private volatile java.lang.Object model_; /** - * - * *
    * Optional. The language detection model to be used.
    * Format:
@@ -285,7 +249,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string model = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The model. */ @java.lang.Override @@ -294,15 +257,14 @@ public java.lang.String getModel() { 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(); model_ = s; return s; } } /** - * - * *
    * Optional. The language detection model to be used.
    * Format:
@@ -313,15 +275,16 @@ public java.lang.String getModel() {
    * 
* * string model = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for model. */ @java.lang.Override - public com.google.protobuf.ByteString getModelBytes() { + public com.google.protobuf.ByteString + getModelBytes() { java.lang.Object ref = model_; 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); model_ = b; return b; } else { @@ -331,28 +294,22 @@ public com.google.protobuf.ByteString getModelBytes() { public static final int CONTENT_FIELD_NUMBER = 1; /** - * - * *
    * The content of the input stored as a string.
    * 
* * string content = 1; - * * @return Whether the content field is set. */ public boolean hasContent() { return sourceCase_ == 1; } /** - * - * *
    * The content of the input stored as a string.
    * 
* * string content = 1; - * * @return The content. */ public java.lang.String getContent() { @@ -363,7 +320,8 @@ public java.lang.String getContent() { 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 (sourceCase_ == 1) { source_ = s; @@ -372,24 +330,23 @@ public java.lang.String getContent() { } } /** - * - * *
    * The content of the input stored as a string.
    * 
* * string content = 1; - * * @return The bytes for content. */ - public com.google.protobuf.ByteString getContentBytes() { + public com.google.protobuf.ByteString + getContentBytes() { java.lang.Object ref = ""; if (sourceCase_ == 1) { ref = source_; } 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 (sourceCase_ == 1) { source_ = b; } @@ -402,15 +359,12 @@ public com.google.protobuf.ByteString getContentBytes() { public static final int MIME_TYPE_FIELD_NUMBER = 3; private volatile java.lang.Object mimeType_; /** - * - * *
    * Optional. The format of the source text, for example, "text/html",
    * "text/plain". If left blank, the MIME type defaults to "text/html".
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The mimeType. */ @java.lang.Override @@ -419,30 +373,30 @@ public java.lang.String getMimeType() { 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(); mimeType_ = s; return s; } } /** - * - * *
    * Optional. The format of the source text, for example, "text/html",
    * "text/plain". If left blank, the MIME type defaults to "text/html".
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for mimeType. */ @java.lang.Override - public com.google.protobuf.ByteString getMimeTypeBytes() { + public com.google.protobuf.ByteString + getMimeTypeBytes() { java.lang.Object ref = mimeType_; 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); mimeType_ = b; return b; } else { @@ -451,23 +405,24 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { } 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.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_DetectLanguageRequest_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.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DetectLanguageRequest_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - - 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_; } @@ -476,8 +431,6 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Optional. The labels with user-defined metadata for the request.
    * Label keys and values can be no longer than 63 characters
@@ -490,22 +443,22 @@ 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 java.lang.NullPointerException();
-    }
+  public boolean containsLabels(
+      java.lang.String key) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
     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. The labels with user-defined metadata for the request.
    * Label keys and values can be no longer than 63 characters
@@ -519,12 +472,11 @@ public java.util.Map getLabels() {
    * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
+
   public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    * Label keys and values can be no longer than 63 characters
@@ -538,16 +490,16 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
-    java.util.Map map = internalGetLabels().getMap();
+
+  public java.lang.String getLabelsOrDefault(
+      java.lang.String key,
+      java.lang.String defaultValue) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    * Label keys and values can be no longer than 63 characters
@@ -561,11 +513,12 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin
    * 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 java.lang.NullPointerException();
-    }
-    java.util.Map map = internalGetLabels().getMap();
+
+  public java.lang.String getLabelsOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -573,7 +526,6 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -585,21 +537,26 @@ 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 (sourceCase_ == 1) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, source_);
     }
-    if (!getMimeTypeBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mimeType_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 3, mimeType_);
     }
-    if (!getModelBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(model_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 4, model_);
     }
-    if (!getParentBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 5, parent_);
     }
-    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
-        output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 6);
+    com.google.protobuf.GeneratedMessageV3
+      .serializeStringMapTo(
+        output,
+        internalGetLabels(),
+        LabelsDefaultEntryHolder.defaultEntry,
+        6);
     unknownFields.writeTo(output);
   }
 
@@ -612,24 +569,24 @@ public int getSerializedSize() {
     if (sourceCase_ == 1) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, source_);
     }
-    if (!getMimeTypeBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mimeType_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, mimeType_);
     }
-    if (!getModelBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(model_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, model_);
     }
-    if (!getParentBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, parent_);
     }
-    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__);
+    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 += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -639,22 +596,26 @@ 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.cloud.translate.v3.DetectLanguageRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3.DetectLanguageRequest other =
-        (com.google.cloud.translate.v3.DetectLanguageRequest) obj;
+    com.google.cloud.translate.v3.DetectLanguageRequest other = (com.google.cloud.translate.v3.DetectLanguageRequest) obj;
 
-    if (!getParent().equals(other.getParent())) return false;
-    if (!getModel().equals(other.getModel())) return false;
-    if (!getMimeType().equals(other.getMimeType())) return false;
-    if (!internalGetLabels().equals(other.internalGetLabels())) return false;
+    if (!getParent()
+        .equals(other.getParent())) return false;
+    if (!getModel()
+        .equals(other.getModel())) return false;
+    if (!getMimeType()
+        .equals(other.getMimeType())) return false;
+    if (!internalGetLabels().equals(
+        other.internalGetLabels())) return false;
     if (!getSourceCase().equals(other.getSourceCase())) return false;
     switch (sourceCase_) {
       case 1:
-        if (!getContent().equals(other.getContent())) return false;
+        if (!getContent()
+            .equals(other.getContent())) return false;
         break;
       case 0:
       default:
@@ -694,146 +655,139 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3.DetectLanguageRequest 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.cloud.translate.v3.DetectLanguageRequest 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.cloud.translate.v3.DetectLanguageRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3.DetectLanguageRequest 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.cloud.translate.v3.DetectLanguageRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3.DetectLanguageRequest 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.cloud.translate.v3.DetectLanguageRequest parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3.DetectLanguageRequest parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3.DetectLanguageRequest 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.cloud.translate.v3.DetectLanguageRequest parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3.DetectLanguageRequest parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3.DetectLanguageRequest 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.cloud.translate.v3.DetectLanguageRequest 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.cloud.translate.v3.DetectLanguageRequest 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.cloud.translate.v3.DetectLanguageRequest 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 for language detection.
    * 
* * Protobuf type {@code google.cloud.translation.v3.DetectLanguageRequest} */ - 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.translation.v3.DetectLanguageRequest) com.google.cloud.translate.v3.DetectLanguageRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_DetectLanguageRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DetectLanguageRequest_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.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_DetectLanguageRequest_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DetectLanguageRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.DetectLanguageRequest.class, - com.google.cloud.translate.v3.DetectLanguageRequest.Builder.class); + com.google.cloud.translate.v3.DetectLanguageRequest.class, com.google.cloud.translate.v3.DetectLanguageRequest.Builder.class); } // Construct using com.google.cloud.translate.v3.DetectLanguageRequest.newBuilder() @@ -841,15 +795,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -866,9 +821,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_DetectLanguageRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DetectLanguageRequest_descriptor; } @java.lang.Override @@ -887,8 +842,7 @@ public com.google.cloud.translate.v3.DetectLanguageRequest build() { @java.lang.Override public com.google.cloud.translate.v3.DetectLanguageRequest buildPartial() { - com.google.cloud.translate.v3.DetectLanguageRequest result = - new com.google.cloud.translate.v3.DetectLanguageRequest(this); + com.google.cloud.translate.v3.DetectLanguageRequest result = new com.google.cloud.translate.v3.DetectLanguageRequest(this); int from_bitField0_ = bitField0_; result.parent_ = parent_; result.model_ = model_; @@ -907,39 +861,38 @@ public com.google.cloud.translate.v3.DetectLanguageRequest 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.cloud.translate.v3.DetectLanguageRequest) { - return mergeFrom((com.google.cloud.translate.v3.DetectLanguageRequest) other); + return mergeFrom((com.google.cloud.translate.v3.DetectLanguageRequest)other); } else { super.mergeFrom(other); return this; @@ -947,8 +900,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.DetectLanguageRequest other) { - if (other == com.google.cloud.translate.v3.DetectLanguageRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3.DetectLanguageRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -961,19 +913,18 @@ public Builder mergeFrom(com.google.cloud.translate.v3.DetectLanguageRequest oth mimeType_ = other.mimeType_; onChanged(); } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); switch (other.getSourceCase()) { - case CONTENT: - { - sourceCase_ = 1; - source_ = other.source_; - onChanged(); - break; - } - case SOURCE_NOT_SET: - { - break; - } + case CONTENT: { + sourceCase_ = 1; + source_ = other.source_; + onChanged(); + break; + } + case SOURCE_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -994,8 +945,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.translate.v3.DetectLanguageRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.translate.v3.DetectLanguageRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1004,12 +954,12 @@ public Builder mergeFrom( } return this; } - private int sourceCase_ = 0; private java.lang.Object source_; - - public SourceCase getSourceCase() { - return SourceCase.forNumber(sourceCase_); + public SourceCase + getSourceCase() { + return SourceCase.forNumber( + sourceCase_); } public Builder clearSource() { @@ -1023,8 +973,6 @@ public Builder clearSource() { private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -1036,16 +984,14 @@ public Builder clearSource() {
      * Otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 5 [(.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; @@ -1054,8 +1000,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -1067,17 +1011,16 @@ public java.lang.String getParent() {
      * Otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 5 [(.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 { @@ -1085,8 +1028,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -1098,25 +1039,21 @@ public com.google.protobuf.ByteString getParentBytes() {
      * Otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 5 [(.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) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -1128,21 +1065,16 @@ public Builder setParent(java.lang.String value) {
      * Otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -1154,19 +1086,17 @@ public Builder clearParent() {
      * Otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 5 [(.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) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -1174,8 +1104,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object model_ = ""; /** - * - * *
      * Optional. The language detection model to be used.
      * Format:
@@ -1186,13 +1114,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string model = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; 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(); model_ = s; return s; @@ -1201,8 +1129,6 @@ public java.lang.String getModel() { } } /** - * - * *
      * Optional. The language detection model to be used.
      * Format:
@@ -1213,14 +1139,15 @@ public java.lang.String getModel() {
      * 
* * string model = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for model. */ - public com.google.protobuf.ByteString getModelBytes() { + public com.google.protobuf.ByteString + getModelBytes() { java.lang.Object ref = model_; 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); model_ = b; return b; } else { @@ -1228,8 +1155,6 @@ public com.google.protobuf.ByteString getModelBytes() { } } /** - * - * *
      * Optional. The language detection model to be used.
      * Format:
@@ -1240,22 +1165,20 @@ public com.google.protobuf.ByteString getModelBytes() {
      * 
* * string model = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The model to set. * @return This builder for chaining. */ - public Builder setModel(java.lang.String value) { + public Builder setModel( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + model_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The language detection model to be used.
      * Format:
@@ -1266,18 +1189,15 @@ public Builder setModel(java.lang.String value) {
      * 
* * string model = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearModel() { - + model_ = getDefaultInstance().getModel(); onChanged(); return this; } /** - * - * *
      * Optional. The language detection model to be used.
      * Format:
@@ -1288,30 +1208,27 @@ public Builder clearModel() {
      * 
* * string model = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for model to set. * @return This builder for chaining. */ - public Builder setModelBytes(com.google.protobuf.ByteString value) { + public Builder setModelBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + model_ = value; onChanged(); return this; } /** - * - * *
      * The content of the input stored as a string.
      * 
* * string content = 1; - * * @return Whether the content field is set. */ @java.lang.Override @@ -1319,14 +1236,11 @@ public boolean hasContent() { return sourceCase_ == 1; } /** - * - * *
      * The content of the input stored as a string.
      * 
* * string content = 1; - * * @return The content. */ @java.lang.Override @@ -1336,7 +1250,8 @@ public java.lang.String getContent() { ref = source_; } 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 (sourceCase_ == 1) { source_ = s; @@ -1347,25 +1262,24 @@ public java.lang.String getContent() { } } /** - * - * *
      * The content of the input stored as a string.
      * 
* * string content = 1; - * * @return The bytes for content. */ @java.lang.Override - public com.google.protobuf.ByteString getContentBytes() { + public com.google.protobuf.ByteString + getContentBytes() { java.lang.Object ref = ""; if (sourceCase_ == 1) { ref = source_; } 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 (sourceCase_ == 1) { source_ = b; } @@ -1375,35 +1289,30 @@ public com.google.protobuf.ByteString getContentBytes() { } } /** - * - * *
      * The content of the input stored as a string.
      * 
* * string content = 1; - * * @param value The content to set. * @return This builder for chaining. */ - public Builder setContent(java.lang.String value) { + public Builder setContent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - sourceCase_ = 1; + throw new NullPointerException(); + } + sourceCase_ = 1; source_ = value; onChanged(); return this; } /** - * - * *
      * The content of the input stored as a string.
      * 
* * string content = 1; - * * @return This builder for chaining. */ public Builder clearContent() { @@ -1415,22 +1324,20 @@ public Builder clearContent() { return this; } /** - * - * *
      * The content of the input stored as a string.
      * 
* * string content = 1; - * * @param value The bytes for content to set. * @return This builder for chaining. */ - public Builder setContentBytes(com.google.protobuf.ByteString value) { + public Builder setContentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); sourceCase_ = 1; source_ = value; onChanged(); @@ -1439,21 +1346,19 @@ public Builder setContentBytes(com.google.protobuf.ByteString value) { private java.lang.Object mimeType_ = ""; /** - * - * *
      * Optional. The format of the source text, for example, "text/html",
      * "text/plain". If left blank, the MIME type defaults to "text/html".
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The mimeType. */ public java.lang.String getMimeType() { java.lang.Object ref = mimeType_; 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(); mimeType_ = s; return s; @@ -1462,22 +1367,21 @@ public java.lang.String getMimeType() { } } /** - * - * *
      * Optional. The format of the source text, for example, "text/html",
      * "text/plain". If left blank, the MIME type defaults to "text/html".
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for mimeType. */ - public com.google.protobuf.ByteString getMimeTypeBytes() { + public com.google.protobuf.ByteString + getMimeTypeBytes() { java.lang.Object ref = mimeType_; 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); mimeType_ = b; return b; } else { @@ -1485,84 +1389,78 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { } } /** - * - * *
      * Optional. The format of the source text, for example, "text/html",
      * "text/plain". If left blank, the MIME type defaults to "text/html".
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The mimeType to set. * @return This builder for chaining. */ - public Builder setMimeType(java.lang.String value) { + public Builder setMimeType( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + mimeType_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The format of the source text, for example, "text/html",
      * "text/plain". If left blank, the MIME type defaults to "text/html".
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearMimeType() { - + mimeType_ = getDefaultInstance().getMimeType(); onChanged(); return this; } /** - * - * *
      * Optional. The format of the source text, for example, "text/html",
      * "text/plain". If left blank, the MIME type defaults to "text/html".
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for mimeType to set. * @return This builder for chaining. */ - public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { + public Builder setMimeTypeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mimeType_ = value; onChanged(); return this; } - 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() { - onChanged(); - ; + internalGetMutableLabels() { + onChanged();; 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(); @@ -1574,8 +1472,6 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Optional. The labels with user-defined metadata for the request.
      * Label keys and values can be no longer than 63 characters
@@ -1588,22 +1484,22 @@ 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 java.lang.NullPointerException();
-      }
+    public boolean containsLabels(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
       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. The labels with user-defined metadata for the request.
      * Label keys and values can be no longer than 63 characters
@@ -1617,12 +1513,11 @@ public java.util.Map getLabels() {
      * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
+
     public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      * Label keys and values can be no longer than 63 characters
@@ -1636,17 +1531,16 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
+
     public java.lang.String getLabelsOrDefault(
-        java.lang.String key, java.lang.String defaultValue) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      java.util.Map map = internalGetLabels().getMap();
+        java.lang.String key,
+        java.lang.String defaultValue) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      * Label keys and values can be no longer than 63 characters
@@ -1660,11 +1554,12 @@ public java.lang.String getLabelsOrDefault(
      * 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 java.lang.NullPointerException();
-      }
-      java.util.Map map = internalGetLabels().getMap();
+
+    public java.lang.String getLabelsOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -1672,12 +1567,11 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
     }
 
     public Builder clearLabels() {
-      internalGetMutableLabels().getMutableMap().clear();
+      internalGetMutableLabels().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      * Label keys and values can be no longer than 63 characters
@@ -1690,21 +1584,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 java.lang.NullPointerException();
-      }
-      internalGetMutableLabels().getMutableMap().remove(key);
+
+    public Builder removeLabels(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      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() {
       return internalGetMutableLabels().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      * Label keys and values can be no longer than 63 characters
@@ -1717,19 +1613,16 @@ 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 java.lang.NullPointerException();
-      }
-      if (value == null) {
-        throw new java.lang.NullPointerException();
-      }
-      internalGetMutableLabels().getMutableMap().put(key, value);
+    public Builder putLabels(
+        java.lang.String key,
+        java.lang.String value) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      if (value == null) { throw new java.lang.NullPointerException(); }
+      internalGetMutableLabels().getMutableMap()
+          .put(key, value);
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      * Label keys and values can be no longer than 63 characters
@@ -1742,13 +1635,16 @@ 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);
       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);
     }
 
@@ -1758,12 +1654,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.DetectLanguageRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.DetectLanguageRequest)
   private static final com.google.cloud.translate.v3.DetectLanguageRequest DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3.DetectLanguageRequest();
   }
@@ -1772,16 +1668,16 @@ public static com.google.cloud.translate.v3.DetectLanguageRequest getDefaultInst
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public DetectLanguageRequest parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new DetectLanguageRequest(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public DetectLanguageRequest parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new DetectLanguageRequest(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1796,4 +1692,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3.DetectLanguageRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageRequestOrBuilder.java b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageRequestOrBuilder.java
similarity index 79%
rename from proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageRequestOrBuilder.java
rename to owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageRequestOrBuilder.java
index df6f7e15..510f4c13 100644
--- a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageRequestOrBuilder.java
+++ b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageRequestOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2020 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/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
-public interface DetectLanguageRequestOrBuilder
-    extends
+public interface DetectLanguageRequestOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.DetectLanguageRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -37,16 +19,11 @@ public interface DetectLanguageRequestOrBuilder
    * Otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -58,17 +35,13 @@ public interface DetectLanguageRequestOrBuilder
    * Otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 5 [(.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 language detection model to be used.
    * Format:
@@ -79,13 +52,10 @@ public interface DetectLanguageRequestOrBuilder
    * 
* * string model = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The model. */ java.lang.String getModel(); /** - * - * *
    * Optional. The language detection model to be used.
    * Format:
@@ -96,78 +66,63 @@ public interface DetectLanguageRequestOrBuilder
    * 
* * string model = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for model. */ - com.google.protobuf.ByteString getModelBytes(); + com.google.protobuf.ByteString + getModelBytes(); /** - * - * *
    * The content of the input stored as a string.
    * 
* * string content = 1; - * * @return Whether the content field is set. */ boolean hasContent(); /** - * - * *
    * The content of the input stored as a string.
    * 
* * string content = 1; - * * @return The content. */ java.lang.String getContent(); /** - * - * *
    * The content of the input stored as a string.
    * 
* * string content = 1; - * * @return The bytes for content. */ - com.google.protobuf.ByteString getContentBytes(); + com.google.protobuf.ByteString + getContentBytes(); /** - * - * *
    * Optional. The format of the source text, for example, "text/html",
    * "text/plain". If left blank, the MIME type defaults to "text/html".
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The mimeType. */ java.lang.String getMimeType(); /** - * - * *
    * Optional. The format of the source text, for example, "text/html",
    * "text/plain". If left blank, the MIME type defaults to "text/html".
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for mimeType. */ - com.google.protobuf.ByteString getMimeTypeBytes(); + com.google.protobuf.ByteString + getMimeTypeBytes(); /** - * - * *
    * Optional. The labels with user-defined metadata for the request.
    * Label keys and values can be no longer than 63 characters
@@ -182,8 +137,6 @@ public interface DetectLanguageRequestOrBuilder
    */
   int getLabelsCount();
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    * Label keys and values can be no longer than 63 characters
@@ -196,13 +149,15 @@ public interface DetectLanguageRequestOrBuilder
    *
    * 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. The labels with user-defined metadata for the request.
    * Label keys and values can be no longer than 63 characters
@@ -215,10 +170,9 @@ public interface DetectLanguageRequestOrBuilder
    *
    * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.util.Map getLabelsMap();
+  java.util.Map
+  getLabelsMap();
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    * Label keys and values can be no longer than 63 characters
@@ -231,10 +185,11 @@ public interface DetectLanguageRequestOrBuilder
    *
    * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue);
+
+  java.lang.String getLabelsOrDefault(
+      java.lang.String key,
+      java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    * Label keys and values can be no longer than 63 characters
@@ -247,7 +202,9 @@ public interface DetectLanguageRequestOrBuilder
    *
    * 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);
 
   public com.google.cloud.translate.v3.DetectLanguageRequest.SourceCase getSourceCase();
 }
diff --git a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageResponse.java b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageResponse.java
similarity index 75%
rename from proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageResponse.java
rename to owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageResponse.java
index e2be566e..f3b7a5c9 100644
--- a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageResponse.java
+++ b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageResponse.java
@@ -1,57 +1,40 @@
-/*
- * Copyright 2020 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/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
 /**
- *
- *
  * 
  * The response message for language detection.
  * 
* * Protobuf type {@code google.cloud.translation.v3.DetectLanguageResponse} */ -public final class DetectLanguageResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DetectLanguageResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.DetectLanguageResponse) DetectLanguageResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DetectLanguageResponse.newBuilder() to construct. private DetectLanguageResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DetectLanguageResponse() { languages_ = 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 DetectLanguageResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DetectLanguageResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,31 +54,29 @@ private DetectLanguageResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - languages_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - languages_.add( - input.readMessage( - com.google.cloud.translate.v3.DetectedLanguage.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + languages_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + languages_.add( + input.readMessage(com.google.cloud.translate.v3.DetectedLanguage.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { languages_ = java.util.Collections.unmodifiableList(languages_); @@ -104,27 +85,22 @@ private DetectLanguageResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_DetectLanguageResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DetectLanguageResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_DetectLanguageResponse_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DetectLanguageResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.DetectLanguageResponse.class, - com.google.cloud.translate.v3.DetectLanguageResponse.Builder.class); + com.google.cloud.translate.v3.DetectLanguageResponse.class, com.google.cloud.translate.v3.DetectLanguageResponse.Builder.class); } public static final int LANGUAGES_FIELD_NUMBER = 1; private java.util.List languages_; /** - * - * *
    * The most probable language detected by the Translation API. For each
    * request, the Translation API will always return only one result.
@@ -137,8 +113,6 @@ public java.util.List getLanguag
     return languages_;
   }
   /**
-   *
-   *
    * 
    * The most probable language detected by the Translation API. For each
    * request, the Translation API will always return only one result.
@@ -147,13 +121,11 @@ public java.util.List getLanguag
    * repeated .google.cloud.translation.v3.DetectedLanguage languages = 1;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getLanguagesOrBuilderList() {
     return languages_;
   }
   /**
-   *
-   *
    * 
    * The most probable language detected by the Translation API. For each
    * request, the Translation API will always return only one result.
@@ -166,8 +138,6 @@ public int getLanguagesCount() {
     return languages_.size();
   }
   /**
-   *
-   *
    * 
    * The most probable language detected by the Translation API. For each
    * request, the Translation API will always return only one result.
@@ -180,8 +150,6 @@ public com.google.cloud.translate.v3.DetectedLanguage getLanguages(int index) {
     return languages_.get(index);
   }
   /**
-   *
-   *
    * 
    * The most probable language detected by the Translation API. For each
    * request, the Translation API will always return only one result.
@@ -190,12 +158,12 @@ public com.google.cloud.translate.v3.DetectedLanguage getLanguages(int index) {
    * repeated .google.cloud.translation.v3.DetectedLanguage languages = 1;
    */
   @java.lang.Override
-  public com.google.cloud.translate.v3.DetectedLanguageOrBuilder getLanguagesOrBuilder(int index) {
+  public com.google.cloud.translate.v3.DetectedLanguageOrBuilder getLanguagesOrBuilder(
+      int index) {
     return languages_.get(index);
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -207,7 +175,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 < languages_.size(); i++) {
       output.writeMessage(1, languages_.get(i));
     }
@@ -221,7 +190,8 @@ public int getSerializedSize() {
 
     size = 0;
     for (int i = 0; i < languages_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, languages_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, languages_.get(i));
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -231,15 +201,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.cloud.translate.v3.DetectLanguageResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3.DetectLanguageResponse other =
-        (com.google.cloud.translate.v3.DetectLanguageResponse) obj;
+    com.google.cloud.translate.v3.DetectLanguageResponse other = (com.google.cloud.translate.v3.DetectLanguageResponse) obj;
 
-    if (!getLanguagesList().equals(other.getLanguagesList())) return false;
+    if (!getLanguagesList()
+        .equals(other.getLanguagesList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -261,126 +231,117 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3.DetectLanguageResponse 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.cloud.translate.v3.DetectLanguageResponse 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.cloud.translate.v3.DetectLanguageResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3.DetectLanguageResponse 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.cloud.translate.v3.DetectLanguageResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3.DetectLanguageResponse 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.cloud.translate.v3.DetectLanguageResponse parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3.DetectLanguageResponse parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3.DetectLanguageResponse 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.cloud.translate.v3.DetectLanguageResponse parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3.DetectLanguageResponse parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3.DetectLanguageResponse 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.cloud.translate.v3.DetectLanguageResponse 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.cloud.translate.v3.DetectLanguageResponse 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.cloud.translate.v3.DetectLanguageResponse 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 message for language detection.
    * 
* * Protobuf type {@code google.cloud.translation.v3.DetectLanguageResponse} */ - 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.translation.v3.DetectLanguageResponse) com.google.cloud.translate.v3.DetectLanguageResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_DetectLanguageResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DetectLanguageResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_DetectLanguageResponse_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DetectLanguageResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.DetectLanguageResponse.class, - com.google.cloud.translate.v3.DetectLanguageResponse.Builder.class); + com.google.cloud.translate.v3.DetectLanguageResponse.class, com.google.cloud.translate.v3.DetectLanguageResponse.Builder.class); } // Construct using com.google.cloud.translate.v3.DetectLanguageResponse.newBuilder() @@ -388,17 +349,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getLanguagesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -412,9 +373,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_DetectLanguageResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DetectLanguageResponse_descriptor; } @java.lang.Override @@ -433,8 +394,7 @@ public com.google.cloud.translate.v3.DetectLanguageResponse build() { @java.lang.Override public com.google.cloud.translate.v3.DetectLanguageResponse buildPartial() { - com.google.cloud.translate.v3.DetectLanguageResponse result = - new com.google.cloud.translate.v3.DetectLanguageResponse(this); + com.google.cloud.translate.v3.DetectLanguageResponse result = new com.google.cloud.translate.v3.DetectLanguageResponse(this); int from_bitField0_ = bitField0_; if (languagesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -453,39 +413,38 @@ public com.google.cloud.translate.v3.DetectLanguageResponse 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.cloud.translate.v3.DetectLanguageResponse) { - return mergeFrom((com.google.cloud.translate.v3.DetectLanguageResponse) other); + return mergeFrom((com.google.cloud.translate.v3.DetectLanguageResponse)other); } else { super.mergeFrom(other); return this; @@ -493,8 +452,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.DetectLanguageResponse other) { - if (other == com.google.cloud.translate.v3.DetectLanguageResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3.DetectLanguageResponse.getDefaultInstance()) return this; if (languagesBuilder_ == null) { if (!other.languages_.isEmpty()) { if (languages_.isEmpty()) { @@ -513,10 +471,9 @@ public Builder mergeFrom(com.google.cloud.translate.v3.DetectLanguageResponse ot languagesBuilder_ = null; languages_ = other.languages_; bitField0_ = (bitField0_ & ~0x00000001); - languagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getLanguagesFieldBuilder() - : null; + languagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getLanguagesFieldBuilder() : null; } else { languagesBuilder_.addAllMessages(other.languages_); } @@ -541,8 +498,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.translate.v3.DetectLanguageResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.translate.v3.DetectLanguageResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -551,29 +507,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List languages_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureLanguagesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - languages_ = - new java.util.ArrayList(languages_); + languages_ = new java.util.ArrayList(languages_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.translate.v3.DetectedLanguage, - com.google.cloud.translate.v3.DetectedLanguage.Builder, - com.google.cloud.translate.v3.DetectedLanguageOrBuilder> - languagesBuilder_; + com.google.cloud.translate.v3.DetectedLanguage, com.google.cloud.translate.v3.DetectedLanguage.Builder, com.google.cloud.translate.v3.DetectedLanguageOrBuilder> languagesBuilder_; /** - * - * *
      * The most probable language detected by the Translation API. For each
      * request, the Translation API will always return only one result.
@@ -589,8 +537,6 @@ public java.util.List getLanguag
       }
     }
     /**
-     *
-     *
      * 
      * The most probable language detected by the Translation API. For each
      * request, the Translation API will always return only one result.
@@ -606,8 +552,6 @@ public int getLanguagesCount() {
       }
     }
     /**
-     *
-     *
      * 
      * The most probable language detected by the Translation API. For each
      * request, the Translation API will always return only one result.
@@ -623,8 +567,6 @@ public com.google.cloud.translate.v3.DetectedLanguage getLanguages(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * The most probable language detected by the Translation API. For each
      * request, the Translation API will always return only one result.
@@ -632,7 +574,8 @@ public com.google.cloud.translate.v3.DetectedLanguage getLanguages(int index) {
      *
      * repeated .google.cloud.translation.v3.DetectedLanguage languages = 1;
      */
-    public Builder setLanguages(int index, com.google.cloud.translate.v3.DetectedLanguage value) {
+    public Builder setLanguages(
+        int index, com.google.cloud.translate.v3.DetectedLanguage value) {
       if (languagesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -646,8 +589,6 @@ public Builder setLanguages(int index, com.google.cloud.translate.v3.DetectedLan
       return this;
     }
     /**
-     *
-     *
      * 
      * The most probable language detected by the Translation API. For each
      * request, the Translation API will always return only one result.
@@ -667,8 +608,6 @@ public Builder setLanguages(
       return this;
     }
     /**
-     *
-     *
      * 
      * The most probable language detected by the Translation API. For each
      * request, the Translation API will always return only one result.
@@ -690,8 +629,6 @@ public Builder addLanguages(com.google.cloud.translate.v3.DetectedLanguage value
       return this;
     }
     /**
-     *
-     *
      * 
      * The most probable language detected by the Translation API. For each
      * request, the Translation API will always return only one result.
@@ -699,7 +636,8 @@ public Builder addLanguages(com.google.cloud.translate.v3.DetectedLanguage value
      *
      * repeated .google.cloud.translation.v3.DetectedLanguage languages = 1;
      */
-    public Builder addLanguages(int index, com.google.cloud.translate.v3.DetectedLanguage value) {
+    public Builder addLanguages(
+        int index, com.google.cloud.translate.v3.DetectedLanguage value) {
       if (languagesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -713,8 +651,6 @@ public Builder addLanguages(int index, com.google.cloud.translate.v3.DetectedLan
       return this;
     }
     /**
-     *
-     *
      * 
      * The most probable language detected by the Translation API. For each
      * request, the Translation API will always return only one result.
@@ -734,8 +670,6 @@ public Builder addLanguages(
       return this;
     }
     /**
-     *
-     *
      * 
      * The most probable language detected by the Translation API. For each
      * request, the Translation API will always return only one result.
@@ -755,8 +689,6 @@ public Builder addLanguages(
       return this;
     }
     /**
-     *
-     *
      * 
      * The most probable language detected by the Translation API. For each
      * request, the Translation API will always return only one result.
@@ -768,7 +700,8 @@ public Builder addAllLanguages(
         java.lang.Iterable values) {
       if (languagesBuilder_ == null) {
         ensureLanguagesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, languages_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, languages_);
         onChanged();
       } else {
         languagesBuilder_.addAllMessages(values);
@@ -776,8 +709,6 @@ public Builder addAllLanguages(
       return this;
     }
     /**
-     *
-     *
      * 
      * The most probable language detected by the Translation API. For each
      * request, the Translation API will always return only one result.
@@ -796,8 +727,6 @@ public Builder clearLanguages() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The most probable language detected by the Translation API. For each
      * request, the Translation API will always return only one result.
@@ -816,8 +745,6 @@ public Builder removeLanguages(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The most probable language detected by the Translation API. For each
      * request, the Translation API will always return only one result.
@@ -825,12 +752,11 @@ public Builder removeLanguages(int index) {
      *
      * repeated .google.cloud.translation.v3.DetectedLanguage languages = 1;
      */
-    public com.google.cloud.translate.v3.DetectedLanguage.Builder getLanguagesBuilder(int index) {
+    public com.google.cloud.translate.v3.DetectedLanguage.Builder getLanguagesBuilder(
+        int index) {
       return getLanguagesFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * The most probable language detected by the Translation API. For each
      * request, the Translation API will always return only one result.
@@ -841,14 +767,11 @@ public com.google.cloud.translate.v3.DetectedLanguage.Builder getLanguagesBuilde
     public com.google.cloud.translate.v3.DetectedLanguageOrBuilder getLanguagesOrBuilder(
         int index) {
       if (languagesBuilder_ == null) {
-        return languages_.get(index);
-      } else {
+        return languages_.get(index);  } else {
         return languagesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * The most probable language detected by the Translation API. For each
      * request, the Translation API will always return only one result.
@@ -856,8 +779,8 @@ public com.google.cloud.translate.v3.DetectedLanguageOrBuilder getLanguagesOrBui
      *
      * repeated .google.cloud.translation.v3.DetectedLanguage languages = 1;
      */
-    public java.util.List
-        getLanguagesOrBuilderList() {
+    public java.util.List 
+         getLanguagesOrBuilderList() {
       if (languagesBuilder_ != null) {
         return languagesBuilder_.getMessageOrBuilderList();
       } else {
@@ -865,8 +788,6 @@ public com.google.cloud.translate.v3.DetectedLanguageOrBuilder getLanguagesOrBui
       }
     }
     /**
-     *
-     *
      * 
      * The most probable language detected by the Translation API. For each
      * request, the Translation API will always return only one result.
@@ -875,12 +796,10 @@ public com.google.cloud.translate.v3.DetectedLanguageOrBuilder getLanguagesOrBui
      * repeated .google.cloud.translation.v3.DetectedLanguage languages = 1;
      */
     public com.google.cloud.translate.v3.DetectedLanguage.Builder addLanguagesBuilder() {
-      return getLanguagesFieldBuilder()
-          .addBuilder(com.google.cloud.translate.v3.DetectedLanguage.getDefaultInstance());
+      return getLanguagesFieldBuilder().addBuilder(
+          com.google.cloud.translate.v3.DetectedLanguage.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * The most probable language detected by the Translation API. For each
      * request, the Translation API will always return only one result.
@@ -888,13 +807,12 @@ public com.google.cloud.translate.v3.DetectedLanguage.Builder addLanguagesBuilde
      *
      * repeated .google.cloud.translation.v3.DetectedLanguage languages = 1;
      */
-    public com.google.cloud.translate.v3.DetectedLanguage.Builder addLanguagesBuilder(int index) {
-      return getLanguagesFieldBuilder()
-          .addBuilder(index, com.google.cloud.translate.v3.DetectedLanguage.getDefaultInstance());
+    public com.google.cloud.translate.v3.DetectedLanguage.Builder addLanguagesBuilder(
+        int index) {
+      return getLanguagesFieldBuilder().addBuilder(
+          index, com.google.cloud.translate.v3.DetectedLanguage.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * The most probable language detected by the Translation API. For each
      * request, the Translation API will always return only one result.
@@ -902,30 +820,27 @@ public com.google.cloud.translate.v3.DetectedLanguage.Builder addLanguagesBuilde
      *
      * repeated .google.cloud.translation.v3.DetectedLanguage languages = 1;
      */
-    public java.util.List
-        getLanguagesBuilderList() {
+    public java.util.List 
+         getLanguagesBuilderList() {
       return getLanguagesFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.translate.v3.DetectedLanguage,
-            com.google.cloud.translate.v3.DetectedLanguage.Builder,
-            com.google.cloud.translate.v3.DetectedLanguageOrBuilder>
+        com.google.cloud.translate.v3.DetectedLanguage, com.google.cloud.translate.v3.DetectedLanguage.Builder, com.google.cloud.translate.v3.DetectedLanguageOrBuilder> 
         getLanguagesFieldBuilder() {
       if (languagesBuilder_ == null) {
-        languagesBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.translate.v3.DetectedLanguage,
-                com.google.cloud.translate.v3.DetectedLanguage.Builder,
-                com.google.cloud.translate.v3.DetectedLanguageOrBuilder>(
-                languages_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        languagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.translate.v3.DetectedLanguage, com.google.cloud.translate.v3.DetectedLanguage.Builder, com.google.cloud.translate.v3.DetectedLanguageOrBuilder>(
+                languages_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         languages_ = null;
       }
       return languagesBuilder_;
     }
-
     @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,12 +850,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.DetectLanguageResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.DetectLanguageResponse)
   private static final com.google.cloud.translate.v3.DetectLanguageResponse DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3.DetectLanguageResponse();
   }
@@ -949,16 +864,16 @@ public static com.google.cloud.translate.v3.DetectLanguageResponse getDefaultIns
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public DetectLanguageResponse parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new DetectLanguageResponse(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public DetectLanguageResponse parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new DetectLanguageResponse(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -973,4 +888,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3.DetectLanguageResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageResponseOrBuilder.java b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageResponseOrBuilder.java
similarity index 72%
rename from proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageResponseOrBuilder.java
rename to owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageResponseOrBuilder.java
index b0ef344a..10d47edd 100644
--- a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageResponseOrBuilder.java
+++ b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageResponseOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2020 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/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
-public interface DetectLanguageResponseOrBuilder
-    extends
+public interface DetectLanguageResponseOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.DetectLanguageResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * The most probable language detected by the Translation API. For each
    * request, the Translation API will always return only one result.
@@ -33,10 +15,9 @@ public interface DetectLanguageResponseOrBuilder
    *
    * repeated .google.cloud.translation.v3.DetectedLanguage languages = 1;
    */
-  java.util.List getLanguagesList();
+  java.util.List 
+      getLanguagesList();
   /**
-   *
-   *
    * 
    * The most probable language detected by the Translation API. For each
    * request, the Translation API will always return only one result.
@@ -46,8 +27,6 @@ public interface DetectLanguageResponseOrBuilder
    */
   com.google.cloud.translate.v3.DetectedLanguage getLanguages(int index);
   /**
-   *
-   *
    * 
    * The most probable language detected by the Translation API. For each
    * request, the Translation API will always return only one result.
@@ -57,8 +36,6 @@ public interface DetectLanguageResponseOrBuilder
    */
   int getLanguagesCount();
   /**
-   *
-   *
    * 
    * The most probable language detected by the Translation API. For each
    * request, the Translation API will always return only one result.
@@ -66,11 +43,9 @@ public interface DetectLanguageResponseOrBuilder
    *
    * repeated .google.cloud.translation.v3.DetectedLanguage languages = 1;
    */
-  java.util.List
+  java.util.List 
       getLanguagesOrBuilderList();
   /**
-   *
-   *
    * 
    * The most probable language detected by the Translation API. For each
    * request, the Translation API will always return only one result.
@@ -78,5 +53,6 @@ public interface DetectLanguageResponseOrBuilder
    *
    * repeated .google.cloud.translation.v3.DetectedLanguage languages = 1;
    */
-  com.google.cloud.translate.v3.DetectedLanguageOrBuilder getLanguagesOrBuilder(int index);
+  com.google.cloud.translate.v3.DetectedLanguageOrBuilder getLanguagesOrBuilder(
+      int index);
 }
diff --git a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectedLanguage.java b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectedLanguage.java
similarity index 71%
rename from proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectedLanguage.java
rename to owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectedLanguage.java
index 2c5e148d..5594ed94 100644
--- a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectedLanguage.java
+++ b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectedLanguage.java
@@ -1,57 +1,40 @@
-/*
- * Copyright 2020 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/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
 /**
- *
- *
  * 
  * The response message for language detection.
  * 
* * Protobuf type {@code google.cloud.translation.v3.DetectedLanguage} */ -public final class DetectedLanguage extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DetectedLanguage extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.DetectedLanguage) DetectedLanguageOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DetectedLanguage.newBuilder() to construct. private DetectedLanguage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DetectedLanguage() { languageCode_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DetectedLanguage(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DetectedLanguage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,64 +53,58 @@ private DetectedLanguage( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - languageCode_ = s; - break; - } - case 21: - { - confidence_ = input.readFloat(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + languageCode_ = s; + break; + } + case 21: { + + confidence_ = input.readFloat(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_DetectedLanguage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DetectedLanguage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_DetectedLanguage_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DetectedLanguage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.DetectedLanguage.class, - com.google.cloud.translate.v3.DetectedLanguage.Builder.class); + com.google.cloud.translate.v3.DetectedLanguage.class, com.google.cloud.translate.v3.DetectedLanguage.Builder.class); } public static final int LANGUAGE_CODE_FIELD_NUMBER = 1; private volatile java.lang.Object languageCode_; /** - * - * *
    * The BCP-47 language code of source content in the request, detected
    * automatically.
    * 
* * string language_code = 1; - * * @return The languageCode. */ @java.lang.Override @@ -136,30 +113,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; } } /** - * - * *
    * The BCP-47 language code of source content in the request, detected
    * automatically.
    * 
* * string language_code = 1; - * * @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 { @@ -170,14 +147,11 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { public static final int CONFIDENCE_FIELD_NUMBER = 2; private float confidence_; /** - * - * *
    * The confidence of the detection result for this language.
    * 
* * float confidence = 2; - * * @return The confidence. */ @java.lang.Override @@ -186,7 +160,6 @@ public float getConfidence() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -198,8 +171,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getLanguageCodeBytes().isEmpty()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, languageCode_); } if (confidence_ != 0F) { @@ -214,11 +188,12 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, languageCode_); } if (confidence_ != 0F) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, confidence_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(2, confidence_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -228,17 +203,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.cloud.translate.v3.DetectedLanguage)) { return super.equals(obj); } - com.google.cloud.translate.v3.DetectedLanguage other = - (com.google.cloud.translate.v3.DetectedLanguage) obj; + com.google.cloud.translate.v3.DetectedLanguage other = (com.google.cloud.translate.v3.DetectedLanguage) obj; - if (!getLanguageCode().equals(other.getLanguageCode())) return false; + if (!getLanguageCode() + .equals(other.getLanguageCode())) return false; if (java.lang.Float.floatToIntBits(getConfidence()) - != java.lang.Float.floatToIntBits(other.getConfidence())) return false; + != java.lang.Float.floatToIntBits( + other.getConfidence())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -253,133 +229,125 @@ public int hashCode() { hash = (37 * hash) + LANGUAGE_CODE_FIELD_NUMBER; hash = (53 * hash) + getLanguageCode().hashCode(); hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getConfidence()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.translate.v3.DetectedLanguage parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.translate.v3.DetectedLanguage parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.DetectedLanguage 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.cloud.translate.v3.DetectedLanguage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.DetectedLanguage 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.cloud.translate.v3.DetectedLanguage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.DetectedLanguage 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.cloud.translate.v3.DetectedLanguage 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.cloud.translate.v3.DetectedLanguage 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.cloud.translate.v3.DetectedLanguage parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.DetectedLanguage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.DetectedLanguage 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.cloud.translate.v3.DetectedLanguage 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.cloud.translate.v3.DetectedLanguage 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.cloud.translate.v3.DetectedLanguage 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 message for language detection.
    * 
* * Protobuf type {@code google.cloud.translation.v3.DetectedLanguage} */ - 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.translation.v3.DetectedLanguage) com.google.cloud.translate.v3.DetectedLanguageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_DetectedLanguage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DetectedLanguage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_DetectedLanguage_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DetectedLanguage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.DetectedLanguage.class, - com.google.cloud.translate.v3.DetectedLanguage.Builder.class); + com.google.cloud.translate.v3.DetectedLanguage.class, com.google.cloud.translate.v3.DetectedLanguage.Builder.class); } // Construct using com.google.cloud.translate.v3.DetectedLanguage.newBuilder() @@ -387,15 +355,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -407,9 +376,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_DetectedLanguage_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DetectedLanguage_descriptor; } @java.lang.Override @@ -428,8 +397,7 @@ public com.google.cloud.translate.v3.DetectedLanguage build() { @java.lang.Override public com.google.cloud.translate.v3.DetectedLanguage buildPartial() { - com.google.cloud.translate.v3.DetectedLanguage result = - new com.google.cloud.translate.v3.DetectedLanguage(this); + com.google.cloud.translate.v3.DetectedLanguage result = new com.google.cloud.translate.v3.DetectedLanguage(this); result.languageCode_ = languageCode_; result.confidence_ = confidence_; onBuilt(); @@ -440,39 +408,38 @@ public com.google.cloud.translate.v3.DetectedLanguage 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.cloud.translate.v3.DetectedLanguage) { - return mergeFrom((com.google.cloud.translate.v3.DetectedLanguage) other); + return mergeFrom((com.google.cloud.translate.v3.DetectedLanguage)other); } else { super.mergeFrom(other); return this; @@ -519,21 +486,19 @@ public Builder mergeFrom( private java.lang.Object languageCode_ = ""; /** - * - * *
      * The BCP-47 language code of source content in the request, detected
      * automatically.
      * 
* * string language_code = 1; - * * @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; @@ -542,22 +507,21 @@ public java.lang.String getLanguageCode() { } } /** - * - * *
      * The BCP-47 language code of source content in the request, detected
      * automatically.
      * 
* * string language_code = 1; - * * @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 { @@ -565,79 +529,69 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } } /** - * - * *
      * The BCP-47 language code of source content in the request, detected
      * automatically.
      * 
* * string language_code = 1; - * * @param value The languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCode(java.lang.String value) { + public Builder setLanguageCode( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + languageCode_ = value; onChanged(); return this; } /** - * - * *
      * The BCP-47 language code of source content in the request, detected
      * automatically.
      * 
* * string language_code = 1; - * * @return This builder for chaining. */ public Builder clearLanguageCode() { - + languageCode_ = getDefaultInstance().getLanguageCode(); onChanged(); return this; } /** - * - * *
      * The BCP-47 language code of source content in the request, detected
      * automatically.
      * 
* * string language_code = 1; - * * @param value The bytes for languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { + public Builder setLanguageCodeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + languageCode_ = value; onChanged(); return this; } - private float confidence_; + private float confidence_ ; /** - * - * *
      * The confidence of the detection result for this language.
      * 
* * float confidence = 2; - * * @return The confidence. */ @java.lang.Override @@ -645,43 +599,37 @@ public float getConfidence() { return confidence_; } /** - * - * *
      * The confidence of the detection result for this language.
      * 
* * float confidence = 2; - * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; onChanged(); return this; } /** - * - * *
      * The confidence of the detection result for this language.
      * 
* * float confidence = 2; - * * @return This builder for chaining. */ public Builder clearConfidence() { - + confidence_ = 0F; 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); } @@ -691,12 +639,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.DetectedLanguage) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.DetectedLanguage) private static final com.google.cloud.translate.v3.DetectedLanguage DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.DetectedLanguage(); } @@ -705,16 +653,16 @@ public static com.google.cloud.translate.v3.DetectedLanguage getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DetectedLanguage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DetectedLanguage(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DetectedLanguage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DetectedLanguage(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -729,4 +677,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.DetectedLanguage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectedLanguageOrBuilder.java b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectedLanguageOrBuilder.java similarity index 56% rename from proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectedLanguageOrBuilder.java rename to owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectedLanguageOrBuilder.java index 3ccbae42..37d3969b 100644 --- a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectedLanguageOrBuilder.java +++ b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectedLanguageOrBuilder.java @@ -1,64 +1,40 @@ -/* - * Copyright 2020 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/translate/v3/translation_service.proto package com.google.cloud.translate.v3; -public interface DetectedLanguageOrBuilder - extends +public interface DetectedLanguageOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.DetectedLanguage) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The BCP-47 language code of source content in the request, detected
    * automatically.
    * 
* * string language_code = 1; - * * @return The languageCode. */ java.lang.String getLanguageCode(); /** - * - * *
    * The BCP-47 language code of source content in the request, detected
    * automatically.
    * 
* * string language_code = 1; - * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString getLanguageCodeBytes(); + com.google.protobuf.ByteString + getLanguageCodeBytes(); /** - * - * *
    * The confidence of the detection result for this language.
    * 
* * float confidence = 2; - * * @return The confidence. */ float getConfidence(); diff --git a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentInputConfig.java b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentInputConfig.java similarity index 74% rename from proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentInputConfig.java rename to owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentInputConfig.java index 4b526b2b..62827a9f 100644 --- a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentInputConfig.java +++ b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentInputConfig.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 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/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** - * - * *
  * A document translation request input config.
  * 
* * Protobuf type {@code google.cloud.translation.v3.DocumentInputConfig} */ -public final class DocumentInputConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DocumentInputConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.DocumentInputConfig) DocumentInputConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DocumentInputConfig.newBuilder() to construct. private DocumentInputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DocumentInputConfig() { mimeType_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DocumentInputConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DocumentInputConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,81 +53,72 @@ private DocumentInputConfig( case 0: done = true; break; - case 10: - { - sourceCase_ = 1; - source_ = input.readBytes(); - break; + case 10: { + sourceCase_ = 1; + source_ = input.readBytes(); + break; + } + case 18: { + com.google.cloud.translate.v3.GcsSource.Builder subBuilder = null; + if (sourceCase_ == 2) { + subBuilder = ((com.google.cloud.translate.v3.GcsSource) source_).toBuilder(); } - case 18: - { - com.google.cloud.translate.v3.GcsSource.Builder subBuilder = null; - if (sourceCase_ == 2) { - subBuilder = ((com.google.cloud.translate.v3.GcsSource) source_).toBuilder(); - } - source_ = - input.readMessage( - com.google.cloud.translate.v3.GcsSource.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.translate.v3.GcsSource) source_); - source_ = subBuilder.buildPartial(); - } - sourceCase_ = 2; - break; + source_ = + input.readMessage(com.google.cloud.translate.v3.GcsSource.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.translate.v3.GcsSource) source_); + source_ = subBuilder.buildPartial(); } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + sourceCase_ = 2; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); - mimeType_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + mimeType_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_DocumentInputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DocumentInputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_DocumentInputConfig_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DocumentInputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.DocumentInputConfig.class, - com.google.cloud.translate.v3.DocumentInputConfig.Builder.class); + com.google.cloud.translate.v3.DocumentInputConfig.class, com.google.cloud.translate.v3.DocumentInputConfig.Builder.class); } private int sourceCase_ = 0; private java.lang.Object source_; - public enum SourceCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { CONTENT(1), GCS_SOURCE(2), SOURCE_NOT_SET(0); private final int value; - private SourceCase(int value) { this.value = value; } @@ -160,36 +134,30 @@ public static SourceCase valueOf(int value) { public static SourceCase forNumber(int value) { switch (value) { - case 1: - return CONTENT; - case 2: - return GCS_SOURCE; - case 0: - return SOURCE_NOT_SET; - default: - return null; + case 1: return CONTENT; + case 2: return GCS_SOURCE; + case 0: return SOURCE_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public SourceCase getSourceCase() { - return SourceCase.forNumber(sourceCase_); + public SourceCase + getSourceCase() { + return SourceCase.forNumber( + sourceCase_); } public static final int CONTENT_FIELD_NUMBER = 1; /** - * - * *
    * Document's content represented as a stream of bytes.
    * 
* * bytes content = 1; - * * @return Whether the content field is set. */ @java.lang.Override @@ -197,14 +165,11 @@ public boolean hasContent() { return sourceCase_ == 1; } /** - * - * *
    * Document's content represented as a stream of bytes.
    * 
* * bytes content = 1; - * * @return The content. */ @java.lang.Override @@ -217,15 +182,12 @@ public com.google.protobuf.ByteString getContent() { public static final int GCS_SOURCE_FIELD_NUMBER = 2; /** - * - * *
    * Google Cloud Storage location. This must be a single file.
    * For example: gs://example_bucket/example_file.pdf
    * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 2; - * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -233,27 +195,22 @@ public boolean hasGcsSource() { return sourceCase_ == 2; } /** - * - * *
    * Google Cloud Storage location. This must be a single file.
    * For example: gs://example_bucket/example_file.pdf
    * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 2; - * * @return The gcsSource. */ @java.lang.Override public com.google.cloud.translate.v3.GcsSource getGcsSource() { if (sourceCase_ == 2) { - return (com.google.cloud.translate.v3.GcsSource) source_; + return (com.google.cloud.translate.v3.GcsSource) source_; } return com.google.cloud.translate.v3.GcsSource.getDefaultInstance(); } /** - * - * *
    * Google Cloud Storage location. This must be a single file.
    * For example: gs://example_bucket/example_file.pdf
@@ -264,7 +221,7 @@ public com.google.cloud.translate.v3.GcsSource getGcsSource() {
   @java.lang.Override
   public com.google.cloud.translate.v3.GcsSourceOrBuilder getGcsSourceOrBuilder() {
     if (sourceCase_ == 2) {
-      return (com.google.cloud.translate.v3.GcsSource) source_;
+       return (com.google.cloud.translate.v3.GcsSource) source_;
     }
     return com.google.cloud.translate.v3.GcsSource.getDefaultInstance();
   }
@@ -272,8 +229,6 @@ public com.google.cloud.translate.v3.GcsSourceOrBuilder getGcsSourceOrBuilder()
   public static final int MIME_TYPE_FIELD_NUMBER = 4;
   private volatile java.lang.Object mimeType_;
   /**
-   *
-   *
    * 
    * Specifies the input document's mime_type.
    * If not specified it will be determined using the file extension for
@@ -287,7 +242,6 @@ public com.google.cloud.translate.v3.GcsSourceOrBuilder getGcsSourceOrBuilder()
    * 
* * string mime_type = 4; - * * @return The mimeType. */ @java.lang.Override @@ -296,15 +250,14 @@ public java.lang.String getMimeType() { 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(); mimeType_ = s; return s; } } /** - * - * *
    * Specifies the input document's mime_type.
    * If not specified it will be determined using the file extension for
@@ -318,15 +271,16 @@ public java.lang.String getMimeType() {
    * 
* * string mime_type = 4; - * * @return The bytes for mimeType. */ @java.lang.Override - public com.google.protobuf.ByteString getMimeTypeBytes() { + public com.google.protobuf.ByteString + getMimeTypeBytes() { java.lang.Object ref = mimeType_; 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); mimeType_ = b; return b; } else { @@ -335,7 +289,6 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -347,14 +300,16 @@ 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 (sourceCase_ == 1) { - output.writeBytes(1, (com.google.protobuf.ByteString) source_); + output.writeBytes( + 1, (com.google.protobuf.ByteString) source_); } if (sourceCase_ == 2) { output.writeMessage(2, (com.google.cloud.translate.v3.GcsSource) source_); } - if (!getMimeTypeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mimeType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, mimeType_); } unknownFields.writeTo(output); @@ -367,16 +322,15 @@ public int getSerializedSize() { size = 0; if (sourceCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeBytesSize( - 1, (com.google.protobuf.ByteString) source_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize( + 1, (com.google.protobuf.ByteString) source_); } if (sourceCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.cloud.translate.v3.GcsSource) source_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.cloud.translate.v3.GcsSource) source_); } - if (!getMimeTypeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mimeType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, mimeType_); } size += unknownFields.getSerializedSize(); @@ -387,22 +341,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.cloud.translate.v3.DocumentInputConfig)) { return super.equals(obj); } - com.google.cloud.translate.v3.DocumentInputConfig other = - (com.google.cloud.translate.v3.DocumentInputConfig) obj; + com.google.cloud.translate.v3.DocumentInputConfig other = (com.google.cloud.translate.v3.DocumentInputConfig) obj; - if (!getMimeType().equals(other.getMimeType())) return false; + if (!getMimeType() + .equals(other.getMimeType())) return false; if (!getSourceCase().equals(other.getSourceCase())) return false; switch (sourceCase_) { case 1: - if (!getContent().equals(other.getContent())) return false; + if (!getContent() + .equals(other.getContent())) return false; break; case 2: - if (!getGcsSource().equals(other.getGcsSource())) return false; + if (!getGcsSource() + .equals(other.getGcsSource())) return false; break; case 0: default: @@ -438,126 +394,117 @@ public int hashCode() { } public static com.google.cloud.translate.v3.DocumentInputConfig 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.cloud.translate.v3.DocumentInputConfig 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.cloud.translate.v3.DocumentInputConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.DocumentInputConfig 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.cloud.translate.v3.DocumentInputConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.DocumentInputConfig 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.cloud.translate.v3.DocumentInputConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.DocumentInputConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.DocumentInputConfig 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.cloud.translate.v3.DocumentInputConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.DocumentInputConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.DocumentInputConfig 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.cloud.translate.v3.DocumentInputConfig 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.cloud.translate.v3.DocumentInputConfig 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.cloud.translate.v3.DocumentInputConfig 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 document translation request input config.
    * 
* * Protobuf type {@code google.cloud.translation.v3.DocumentInputConfig} */ - 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.translation.v3.DocumentInputConfig) com.google.cloud.translate.v3.DocumentInputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_DocumentInputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DocumentInputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_DocumentInputConfig_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DocumentInputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.DocumentInputConfig.class, - com.google.cloud.translate.v3.DocumentInputConfig.Builder.class); + com.google.cloud.translate.v3.DocumentInputConfig.class, com.google.cloud.translate.v3.DocumentInputConfig.Builder.class); } // Construct using com.google.cloud.translate.v3.DocumentInputConfig.newBuilder() @@ -565,15 +512,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -585,9 +533,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_DocumentInputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DocumentInputConfig_descriptor; } @java.lang.Override @@ -606,8 +554,7 @@ public com.google.cloud.translate.v3.DocumentInputConfig build() { @java.lang.Override public com.google.cloud.translate.v3.DocumentInputConfig buildPartial() { - com.google.cloud.translate.v3.DocumentInputConfig result = - new com.google.cloud.translate.v3.DocumentInputConfig(this); + com.google.cloud.translate.v3.DocumentInputConfig result = new com.google.cloud.translate.v3.DocumentInputConfig(this); if (sourceCase_ == 1) { result.source_ = source_; } @@ -628,39 +575,38 @@ public com.google.cloud.translate.v3.DocumentInputConfig 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.cloud.translate.v3.DocumentInputConfig) { - return mergeFrom((com.google.cloud.translate.v3.DocumentInputConfig) other); + return mergeFrom((com.google.cloud.translate.v3.DocumentInputConfig)other); } else { super.mergeFrom(other); return this; @@ -668,27 +614,23 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.DocumentInputConfig other) { - if (other == com.google.cloud.translate.v3.DocumentInputConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3.DocumentInputConfig.getDefaultInstance()) return this; if (!other.getMimeType().isEmpty()) { mimeType_ = other.mimeType_; onChanged(); } switch (other.getSourceCase()) { - case CONTENT: - { - setContent(other.getContent()); - break; - } - case GCS_SOURCE: - { - mergeGcsSource(other.getGcsSource()); - break; - } - case SOURCE_NOT_SET: - { - break; - } + case CONTENT: { + setContent(other.getContent()); + break; + } + case GCS_SOURCE: { + mergeGcsSource(other.getGcsSource()); + break; + } + case SOURCE_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -709,8 +651,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.translate.v3.DocumentInputConfig) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.translate.v3.DocumentInputConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -719,12 +660,12 @@ public Builder mergeFrom( } return this; } - private int sourceCase_ = 0; private java.lang.Object source_; - - public SourceCase getSourceCase() { - return SourceCase.forNumber(sourceCase_); + public SourceCase + getSourceCase() { + return SourceCase.forNumber( + sourceCase_); } public Builder clearSource() { @@ -734,29 +675,24 @@ public Builder clearSource() { return this; } + /** - * - * *
      * Document's content represented as a stream of bytes.
      * 
* * bytes content = 1; - * * @return Whether the content field is set. */ public boolean hasContent() { return sourceCase_ == 1; } /** - * - * *
      * Document's content represented as a stream of bytes.
      * 
* * bytes content = 1; - * * @return The content. */ public com.google.protobuf.ByteString getContent() { @@ -766,35 +702,29 @@ public com.google.protobuf.ByteString getContent() { return com.google.protobuf.ByteString.EMPTY; } /** - * - * *
      * Document's content represented as a stream of bytes.
      * 
* * bytes content = 1; - * * @param value The content to set. * @return This builder for chaining. */ public Builder setContent(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - sourceCase_ = 1; + throw new NullPointerException(); + } + sourceCase_ = 1; source_ = value; onChanged(); return this; } /** - * - * *
      * Document's content represented as a stream of bytes.
      * 
* * bytes content = 1; - * * @return This builder for chaining. */ public Builder clearContent() { @@ -807,20 +737,14 @@ public Builder clearContent() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.GcsSource, - com.google.cloud.translate.v3.GcsSource.Builder, - com.google.cloud.translate.v3.GcsSourceOrBuilder> - gcsSourceBuilder_; + com.google.cloud.translate.v3.GcsSource, com.google.cloud.translate.v3.GcsSource.Builder, com.google.cloud.translate.v3.GcsSourceOrBuilder> gcsSourceBuilder_; /** - * - * *
      * Google Cloud Storage location. This must be a single file.
      * For example: gs://example_bucket/example_file.pdf
      * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 2; - * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -828,15 +752,12 @@ public boolean hasGcsSource() { return sourceCase_ == 2; } /** - * - * *
      * Google Cloud Storage location. This must be a single file.
      * For example: gs://example_bucket/example_file.pdf
      * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 2; - * * @return The gcsSource. */ @java.lang.Override @@ -854,8 +775,6 @@ public com.google.cloud.translate.v3.GcsSource getGcsSource() { } } /** - * - * *
      * Google Cloud Storage location. This must be a single file.
      * For example: gs://example_bucket/example_file.pdf
@@ -877,8 +796,6 @@ public Builder setGcsSource(com.google.cloud.translate.v3.GcsSource value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage location. This must be a single file.
      * For example: gs://example_bucket/example_file.pdf
@@ -886,7 +803,8 @@ public Builder setGcsSource(com.google.cloud.translate.v3.GcsSource value) {
      *
      * .google.cloud.translation.v3.GcsSource gcs_source = 2;
      */
-    public Builder setGcsSource(com.google.cloud.translate.v3.GcsSource.Builder builderForValue) {
+    public Builder setGcsSource(
+        com.google.cloud.translate.v3.GcsSource.Builder builderForValue) {
       if (gcsSourceBuilder_ == null) {
         source_ = builderForValue.build();
         onChanged();
@@ -897,8 +815,6 @@ public Builder setGcsSource(com.google.cloud.translate.v3.GcsSource.Builder buil
       return this;
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage location. This must be a single file.
      * For example: gs://example_bucket/example_file.pdf
@@ -908,13 +824,10 @@ public Builder setGcsSource(com.google.cloud.translate.v3.GcsSource.Builder buil
      */
     public Builder mergeGcsSource(com.google.cloud.translate.v3.GcsSource value) {
       if (gcsSourceBuilder_ == null) {
-        if (sourceCase_ == 2
-            && source_ != com.google.cloud.translate.v3.GcsSource.getDefaultInstance()) {
-          source_ =
-              com.google.cloud.translate.v3.GcsSource.newBuilder(
-                      (com.google.cloud.translate.v3.GcsSource) source_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (sourceCase_ == 2 &&
+            source_ != com.google.cloud.translate.v3.GcsSource.getDefaultInstance()) {
+          source_ = com.google.cloud.translate.v3.GcsSource.newBuilder((com.google.cloud.translate.v3.GcsSource) source_)
+              .mergeFrom(value).buildPartial();
         } else {
           source_ = value;
         }
@@ -929,8 +842,6 @@ public Builder mergeGcsSource(com.google.cloud.translate.v3.GcsSource value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage location. This must be a single file.
      * For example: gs://example_bucket/example_file.pdf
@@ -955,8 +866,6 @@ public Builder clearGcsSource() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage location. This must be a single file.
      * For example: gs://example_bucket/example_file.pdf
@@ -968,8 +877,6 @@ public com.google.cloud.translate.v3.GcsSource.Builder getGcsSourceBuilder() {
       return getGcsSourceFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage location. This must be a single file.
      * For example: gs://example_bucket/example_file.pdf
@@ -989,8 +896,6 @@ public com.google.cloud.translate.v3.GcsSourceOrBuilder getGcsSourceOrBuilder()
       }
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage location. This must be a single file.
      * For example: gs://example_bucket/example_file.pdf
@@ -999,34 +904,26 @@ public com.google.cloud.translate.v3.GcsSourceOrBuilder getGcsSourceOrBuilder()
      * .google.cloud.translation.v3.GcsSource gcs_source = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.translate.v3.GcsSource,
-            com.google.cloud.translate.v3.GcsSource.Builder,
-            com.google.cloud.translate.v3.GcsSourceOrBuilder>
+        com.google.cloud.translate.v3.GcsSource, com.google.cloud.translate.v3.GcsSource.Builder, com.google.cloud.translate.v3.GcsSourceOrBuilder> 
         getGcsSourceFieldBuilder() {
       if (gcsSourceBuilder_ == null) {
         if (!(sourceCase_ == 2)) {
           source_ = com.google.cloud.translate.v3.GcsSource.getDefaultInstance();
         }
-        gcsSourceBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.translate.v3.GcsSource,
-                com.google.cloud.translate.v3.GcsSource.Builder,
-                com.google.cloud.translate.v3.GcsSourceOrBuilder>(
+        gcsSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.translate.v3.GcsSource, com.google.cloud.translate.v3.GcsSource.Builder, com.google.cloud.translate.v3.GcsSourceOrBuilder>(
                 (com.google.cloud.translate.v3.GcsSource) source_,
                 getParentForChildren(),
                 isClean());
         source_ = null;
       }
       sourceCase_ = 2;
-      onChanged();
-      ;
+      onChanged();;
       return gcsSourceBuilder_;
     }
 
     private java.lang.Object mimeType_ = "";
     /**
-     *
-     *
      * 
      * Specifies the input document's mime_type.
      * If not specified it will be determined using the file extension for
@@ -1040,13 +937,13 @@ public com.google.cloud.translate.v3.GcsSourceOrBuilder getGcsSourceOrBuilder()
      * 
* * string mime_type = 4; - * * @return The mimeType. */ public java.lang.String getMimeType() { java.lang.Object ref = mimeType_; 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(); mimeType_ = s; return s; @@ -1055,8 +952,6 @@ public java.lang.String getMimeType() { } } /** - * - * *
      * Specifies the input document's mime_type.
      * If not specified it will be determined using the file extension for
@@ -1070,14 +965,15 @@ public java.lang.String getMimeType() {
      * 
* * string mime_type = 4; - * * @return The bytes for mimeType. */ - public com.google.protobuf.ByteString getMimeTypeBytes() { + public com.google.protobuf.ByteString + getMimeTypeBytes() { java.lang.Object ref = mimeType_; 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); mimeType_ = b; return b; } else { @@ -1085,8 +981,6 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { } } /** - * - * *
      * Specifies the input document's mime_type.
      * If not specified it will be determined using the file extension for
@@ -1100,22 +994,20 @@ public com.google.protobuf.ByteString getMimeTypeBytes() {
      * 
* * string mime_type = 4; - * * @param value The mimeType to set. * @return This builder for chaining. */ - public Builder setMimeType(java.lang.String value) { + public Builder setMimeType( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + mimeType_ = value; onChanged(); return this; } /** - * - * *
      * Specifies the input document's mime_type.
      * If not specified it will be determined using the file extension for
@@ -1129,18 +1021,15 @@ public Builder setMimeType(java.lang.String value) {
      * 
* * string mime_type = 4; - * * @return This builder for chaining. */ public Builder clearMimeType() { - + mimeType_ = getDefaultInstance().getMimeType(); onChanged(); return this; } /** - * - * *
      * Specifies the input document's mime_type.
      * If not specified it will be determined using the file extension for
@@ -1154,23 +1043,23 @@ public Builder clearMimeType() {
      * 
* * string mime_type = 4; - * * @param value The bytes for mimeType to set. * @return This builder for chaining. */ - public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { + public Builder setMimeTypeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mimeType_ = value; 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,12 +1069,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.DocumentInputConfig) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.DocumentInputConfig) private static final com.google.cloud.translate.v3.DocumentInputConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.DocumentInputConfig(); } @@ -1194,16 +1083,16 @@ public static com.google.cloud.translate.v3.DocumentInputConfig getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DocumentInputConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DocumentInputConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DocumentInputConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DocumentInputConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1218,4 +1107,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.DocumentInputConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentInputConfigOrBuilder.java b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentInputConfigOrBuilder.java similarity index 79% rename from proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentInputConfigOrBuilder.java rename to owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentInputConfigOrBuilder.java index 5ef7fe41..bcc485c0 100644 --- a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentInputConfigOrBuilder.java +++ b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentInputConfigOrBuilder.java @@ -1,82 +1,52 @@ -/* - * Copyright 2020 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/translate/v3/translation_service.proto package com.google.cloud.translate.v3; -public interface DocumentInputConfigOrBuilder - extends +public interface DocumentInputConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.DocumentInputConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Document's content represented as a stream of bytes.
    * 
* * bytes content = 1; - * * @return Whether the content field is set. */ boolean hasContent(); /** - * - * *
    * Document's content represented as a stream of bytes.
    * 
* * bytes content = 1; - * * @return The content. */ com.google.protobuf.ByteString getContent(); /** - * - * *
    * Google Cloud Storage location. This must be a single file.
    * For example: gs://example_bucket/example_file.pdf
    * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 2; - * * @return Whether the gcsSource field is set. */ boolean hasGcsSource(); /** - * - * *
    * Google Cloud Storage location. This must be a single file.
    * For example: gs://example_bucket/example_file.pdf
    * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 2; - * * @return The gcsSource. */ com.google.cloud.translate.v3.GcsSource getGcsSource(); /** - * - * *
    * Google Cloud Storage location. This must be a single file.
    * For example: gs://example_bucket/example_file.pdf
@@ -87,8 +57,6 @@ public interface DocumentInputConfigOrBuilder
   com.google.cloud.translate.v3.GcsSourceOrBuilder getGcsSourceOrBuilder();
 
   /**
-   *
-   *
    * 
    * Specifies the input document's mime_type.
    * If not specified it will be determined using the file extension for
@@ -102,13 +70,10 @@ public interface DocumentInputConfigOrBuilder
    * 
* * string mime_type = 4; - * * @return The mimeType. */ java.lang.String getMimeType(); /** - * - * *
    * Specifies the input document's mime_type.
    * If not specified it will be determined using the file extension for
@@ -122,10 +87,10 @@ public interface DocumentInputConfigOrBuilder
    * 
* * string mime_type = 4; - * * @return The bytes for mimeType. */ - com.google.protobuf.ByteString getMimeTypeBytes(); + com.google.protobuf.ByteString + getMimeTypeBytes(); public com.google.cloud.translate.v3.DocumentInputConfig.SourceCase getSourceCase(); } diff --git a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentOutputConfig.java b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentOutputConfig.java similarity index 81% rename from proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentOutputConfig.java rename to owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentOutputConfig.java index 11959ae0..15693d5b 100644 --- a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentOutputConfig.java +++ b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentOutputConfig.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 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/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** - * - * *
  * A document translation request output config.
  * 
* * Protobuf type {@code google.cloud.translation.v3.DocumentOutputConfig} */ -public final class DocumentOutputConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DocumentOutputConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.DocumentOutputConfig) DocumentOutputConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DocumentOutputConfig.newBuilder() to construct. private DocumentOutputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DocumentOutputConfig() { mimeType_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DocumentOutputConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DocumentOutputConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,75 +53,66 @@ private DocumentOutputConfig( case 0: done = true; break; - case 10: - { - com.google.cloud.translate.v3.GcsDestination.Builder subBuilder = null; - if (destinationCase_ == 1) { - subBuilder = - ((com.google.cloud.translate.v3.GcsDestination) destination_).toBuilder(); - } - destination_ = - input.readMessage( - com.google.cloud.translate.v3.GcsDestination.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.translate.v3.GcsDestination) destination_); - destination_ = subBuilder.buildPartial(); - } - destinationCase_ = 1; - break; + case 10: { + com.google.cloud.translate.v3.GcsDestination.Builder subBuilder = null; + if (destinationCase_ == 1) { + subBuilder = ((com.google.cloud.translate.v3.GcsDestination) destination_).toBuilder(); } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - mimeType_ = s; - break; + destination_ = + input.readMessage(com.google.cloud.translate.v3.GcsDestination.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.translate.v3.GcsDestination) destination_); + destination_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + destinationCase_ = 1; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + mimeType_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_DocumentOutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DocumentOutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_DocumentOutputConfig_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DocumentOutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.DocumentOutputConfig.class, - com.google.cloud.translate.v3.DocumentOutputConfig.Builder.class); + com.google.cloud.translate.v3.DocumentOutputConfig.class, com.google.cloud.translate.v3.DocumentOutputConfig.Builder.class); } private int destinationCase_ = 0; private java.lang.Object destination_; - public enum DestinationCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_DESTINATION(1), DESTINATION_NOT_SET(0); private final int value; - private DestinationCase(int value) { this.value = value; } @@ -154,28 +128,24 @@ public static DestinationCase valueOf(int value) { public static DestinationCase forNumber(int value) { switch (value) { - case 1: - return GCS_DESTINATION; - case 0: - return DESTINATION_NOT_SET; - default: - return null; + case 1: return GCS_DESTINATION; + case 0: return DESTINATION_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public DestinationCase getDestinationCase() { - return DestinationCase.forNumber(destinationCase_); + public DestinationCase + getDestinationCase() { + return DestinationCase.forNumber( + destinationCase_); } public static final int GCS_DESTINATION_FIELD_NUMBER = 1; /** - * - * *
    * Optional. Google Cloud Storage destination for the translation output,
    * e.g., `gs://my_bucket/my_directory/`.
@@ -213,10 +183,7 @@ public DestinationCase getDestinationCase() {
    * bucket.
    * 
* - * - * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -224,8 +191,6 @@ public boolean hasGcsDestination() { return destinationCase_ == 1; } /** - * - * *
    * Optional. Google Cloud Storage destination for the translation output,
    * e.g., `gs://my_bucket/my_directory/`.
@@ -263,22 +228,17 @@ public boolean hasGcsDestination() {
    * bucket.
    * 
* - * - * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The gcsDestination. */ @java.lang.Override public com.google.cloud.translate.v3.GcsDestination getGcsDestination() { if (destinationCase_ == 1) { - return (com.google.cloud.translate.v3.GcsDestination) destination_; + return (com.google.cloud.translate.v3.GcsDestination) destination_; } return com.google.cloud.translate.v3.GcsDestination.getDefaultInstance(); } /** - * - * *
    * Optional. Google Cloud Storage destination for the translation output,
    * e.g., `gs://my_bucket/my_directory/`.
@@ -316,14 +276,12 @@ public com.google.cloud.translate.v3.GcsDestination getGcsDestination() {
    * bucket.
    * 
* - * - * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.translate.v3.GcsDestinationOrBuilder getGcsDestinationOrBuilder() { if (destinationCase_ == 1) { - return (com.google.cloud.translate.v3.GcsDestination) destination_; + return (com.google.cloud.translate.v3.GcsDestination) destination_; } return com.google.cloud.translate.v3.GcsDestination.getDefaultInstance(); } @@ -331,8 +289,6 @@ public com.google.cloud.translate.v3.GcsDestinationOrBuilder getGcsDestinationOr public static final int MIME_TYPE_FIELD_NUMBER = 3; private volatile java.lang.Object mimeType_; /** - * - * *
    * Optional. Specifies the translated document's mime_type.
    * If not specified, the translated file's mime type will be the same as the
@@ -346,7 +302,6 @@ public com.google.cloud.translate.v3.GcsDestinationOrBuilder getGcsDestinationOr
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The mimeType. */ @java.lang.Override @@ -355,15 +310,14 @@ public java.lang.String getMimeType() { 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(); mimeType_ = s; return s; } } /** - * - * *
    * Optional. Specifies the translated document's mime_type.
    * If not specified, the translated file's mime type will be the same as the
@@ -377,15 +331,16 @@ public java.lang.String getMimeType() {
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for mimeType. */ @java.lang.Override - public com.google.protobuf.ByteString getMimeTypeBytes() { + public com.google.protobuf.ByteString + getMimeTypeBytes() { java.lang.Object ref = mimeType_; 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); mimeType_ = b; return b; } else { @@ -394,7 +349,6 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -406,11 +360,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 (destinationCase_ == 1) { output.writeMessage(1, (com.google.cloud.translate.v3.GcsDestination) destination_); } - if (!getMimeTypeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mimeType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, mimeType_); } unknownFields.writeTo(output); @@ -423,11 +378,10 @@ public int getSerializedSize() { size = 0; if (destinationCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, (com.google.cloud.translate.v3.GcsDestination) destination_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.google.cloud.translate.v3.GcsDestination) destination_); } - if (!getMimeTypeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mimeType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, mimeType_); } size += unknownFields.getSerializedSize(); @@ -438,19 +392,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.cloud.translate.v3.DocumentOutputConfig)) { return super.equals(obj); } - com.google.cloud.translate.v3.DocumentOutputConfig other = - (com.google.cloud.translate.v3.DocumentOutputConfig) obj; + com.google.cloud.translate.v3.DocumentOutputConfig other = (com.google.cloud.translate.v3.DocumentOutputConfig) obj; - if (!getMimeType().equals(other.getMimeType())) return false; + if (!getMimeType() + .equals(other.getMimeType())) return false; if (!getDestinationCase().equals(other.getDestinationCase())) return false; switch (destinationCase_) { case 1: - if (!getGcsDestination().equals(other.getGcsDestination())) return false; + if (!getGcsDestination() + .equals(other.getGcsDestination())) return false; break; case 0: default: @@ -482,126 +437,117 @@ public int hashCode() { } public static com.google.cloud.translate.v3.DocumentOutputConfig 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.cloud.translate.v3.DocumentOutputConfig 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.cloud.translate.v3.DocumentOutputConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.DocumentOutputConfig 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.cloud.translate.v3.DocumentOutputConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.DocumentOutputConfig 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.cloud.translate.v3.DocumentOutputConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.DocumentOutputConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.DocumentOutputConfig 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.cloud.translate.v3.DocumentOutputConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.DocumentOutputConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.DocumentOutputConfig 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.cloud.translate.v3.DocumentOutputConfig 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.cloud.translate.v3.DocumentOutputConfig 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.cloud.translate.v3.DocumentOutputConfig 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 document translation request output config.
    * 
* * Protobuf type {@code google.cloud.translation.v3.DocumentOutputConfig} */ - 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.translation.v3.DocumentOutputConfig) com.google.cloud.translate.v3.DocumentOutputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_DocumentOutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DocumentOutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_DocumentOutputConfig_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DocumentOutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.DocumentOutputConfig.class, - com.google.cloud.translate.v3.DocumentOutputConfig.Builder.class); + com.google.cloud.translate.v3.DocumentOutputConfig.class, com.google.cloud.translate.v3.DocumentOutputConfig.Builder.class); } // Construct using com.google.cloud.translate.v3.DocumentOutputConfig.newBuilder() @@ -609,15 +555,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -629,9 +576,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_DocumentOutputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DocumentOutputConfig_descriptor; } @java.lang.Override @@ -650,8 +597,7 @@ public com.google.cloud.translate.v3.DocumentOutputConfig build() { @java.lang.Override public com.google.cloud.translate.v3.DocumentOutputConfig buildPartial() { - com.google.cloud.translate.v3.DocumentOutputConfig result = - new com.google.cloud.translate.v3.DocumentOutputConfig(this); + com.google.cloud.translate.v3.DocumentOutputConfig result = new com.google.cloud.translate.v3.DocumentOutputConfig(this); if (destinationCase_ == 1) { if (gcsDestinationBuilder_ == null) { result.destination_ = destination_; @@ -669,39 +615,38 @@ public com.google.cloud.translate.v3.DocumentOutputConfig 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.cloud.translate.v3.DocumentOutputConfig) { - return mergeFrom((com.google.cloud.translate.v3.DocumentOutputConfig) other); + return mergeFrom((com.google.cloud.translate.v3.DocumentOutputConfig)other); } else { super.mergeFrom(other); return this; @@ -709,22 +654,19 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.DocumentOutputConfig other) { - if (other == com.google.cloud.translate.v3.DocumentOutputConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3.DocumentOutputConfig.getDefaultInstance()) return this; if (!other.getMimeType().isEmpty()) { mimeType_ = other.mimeType_; onChanged(); } switch (other.getDestinationCase()) { - case GCS_DESTINATION: - { - mergeGcsDestination(other.getGcsDestination()); - break; - } - case DESTINATION_NOT_SET: - { - break; - } + case GCS_DESTINATION: { + mergeGcsDestination(other.getGcsDestination()); + break; + } + case DESTINATION_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -745,8 +687,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.translate.v3.DocumentOutputConfig) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.translate.v3.DocumentOutputConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -755,12 +696,12 @@ public Builder mergeFrom( } return this; } - private int destinationCase_ = 0; private java.lang.Object destination_; - - public DestinationCase getDestinationCase() { - return DestinationCase.forNumber(destinationCase_); + public DestinationCase + getDestinationCase() { + return DestinationCase.forNumber( + destinationCase_); } public Builder clearDestination() { @@ -770,14 +711,10 @@ public Builder clearDestination() { return this; } + private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.GcsDestination, - com.google.cloud.translate.v3.GcsDestination.Builder, - com.google.cloud.translate.v3.GcsDestinationOrBuilder> - gcsDestinationBuilder_; + com.google.cloud.translate.v3.GcsDestination, com.google.cloud.translate.v3.GcsDestination.Builder, com.google.cloud.translate.v3.GcsDestinationOrBuilder> gcsDestinationBuilder_; /** - * - * *
      * Optional. Google Cloud Storage destination for the translation output,
      * e.g., `gs://my_bucket/my_directory/`.
@@ -815,10 +752,7 @@ public Builder clearDestination() {
      * bucket.
      * 
* - * - * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -826,8 +760,6 @@ public boolean hasGcsDestination() { return destinationCase_ == 1; } /** - * - * *
      * Optional. Google Cloud Storage destination for the translation output,
      * e.g., `gs://my_bucket/my_directory/`.
@@ -865,10 +797,7 @@ public boolean hasGcsDestination() {
      * bucket.
      * 
* - * - * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The gcsDestination. */ @java.lang.Override @@ -886,8 +815,6 @@ public com.google.cloud.translate.v3.GcsDestination getGcsDestination() { } } /** - * - * *
      * Optional. Google Cloud Storage destination for the translation output,
      * e.g., `gs://my_bucket/my_directory/`.
@@ -925,9 +852,7 @@ public com.google.cloud.translate.v3.GcsDestination getGcsDestination() {
      * bucket.
      * 
* - * - * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setGcsDestination(com.google.cloud.translate.v3.GcsDestination value) { if (gcsDestinationBuilder_ == null) { @@ -943,8 +868,6 @@ public Builder setGcsDestination(com.google.cloud.translate.v3.GcsDestination va return this; } /** - * - * *
      * Optional. Google Cloud Storage destination for the translation output,
      * e.g., `gs://my_bucket/my_directory/`.
@@ -982,9 +905,7 @@ public Builder setGcsDestination(com.google.cloud.translate.v3.GcsDestination va
      * bucket.
      * 
* - * - * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setGcsDestination( com.google.cloud.translate.v3.GcsDestination.Builder builderForValue) { @@ -998,8 +919,6 @@ public Builder setGcsDestination( return this; } /** - * - * *
      * Optional. Google Cloud Storage destination for the translation output,
      * e.g., `gs://my_bucket/my_directory/`.
@@ -1037,19 +956,14 @@ public Builder setGcsDestination(
      * bucket.
      * 
* - * - * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeGcsDestination(com.google.cloud.translate.v3.GcsDestination value) { if (gcsDestinationBuilder_ == null) { - if (destinationCase_ == 1 - && destination_ != com.google.cloud.translate.v3.GcsDestination.getDefaultInstance()) { - destination_ = - com.google.cloud.translate.v3.GcsDestination.newBuilder( - (com.google.cloud.translate.v3.GcsDestination) destination_) - .mergeFrom(value) - .buildPartial(); + if (destinationCase_ == 1 && + destination_ != com.google.cloud.translate.v3.GcsDestination.getDefaultInstance()) { + destination_ = com.google.cloud.translate.v3.GcsDestination.newBuilder((com.google.cloud.translate.v3.GcsDestination) destination_) + .mergeFrom(value).buildPartial(); } else { destination_ = value; } @@ -1064,8 +978,6 @@ public Builder mergeGcsDestination(com.google.cloud.translate.v3.GcsDestination return this; } /** - * - * *
      * Optional. Google Cloud Storage destination for the translation output,
      * e.g., `gs://my_bucket/my_directory/`.
@@ -1103,9 +1015,7 @@ public Builder mergeGcsDestination(com.google.cloud.translate.v3.GcsDestination
      * bucket.
      * 
* - * - * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearGcsDestination() { if (gcsDestinationBuilder_ == null) { @@ -1124,8 +1034,6 @@ public Builder clearGcsDestination() { return this; } /** - * - * *
      * Optional. Google Cloud Storage destination for the translation output,
      * e.g., `gs://my_bucket/my_directory/`.
@@ -1163,16 +1071,12 @@ public Builder clearGcsDestination() {
      * bucket.
      * 
* - * - * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.translate.v3.GcsDestination.Builder getGcsDestinationBuilder() { return getGcsDestinationFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Google Cloud Storage destination for the translation output,
      * e.g., `gs://my_bucket/my_directory/`.
@@ -1210,9 +1114,7 @@ public com.google.cloud.translate.v3.GcsDestination.Builder getGcsDestinationBui
      * bucket.
      * 
* - * - * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.translate.v3.GcsDestinationOrBuilder getGcsDestinationOrBuilder() { @@ -1226,8 +1128,6 @@ public com.google.cloud.translate.v3.GcsDestinationOrBuilder getGcsDestinationOr } } /** - * - * *
      * Optional. Google Cloud Storage destination for the translation output,
      * e.g., `gs://my_bucket/my_directory/`.
@@ -1265,39 +1165,29 @@ public com.google.cloud.translate.v3.GcsDestinationOrBuilder getGcsDestinationOr
      * bucket.
      * 
* - * - * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.GcsDestination, - com.google.cloud.translate.v3.GcsDestination.Builder, - com.google.cloud.translate.v3.GcsDestinationOrBuilder> + com.google.cloud.translate.v3.GcsDestination, com.google.cloud.translate.v3.GcsDestination.Builder, com.google.cloud.translate.v3.GcsDestinationOrBuilder> getGcsDestinationFieldBuilder() { if (gcsDestinationBuilder_ == null) { if (!(destinationCase_ == 1)) { destination_ = com.google.cloud.translate.v3.GcsDestination.getDefaultInstance(); } - gcsDestinationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.GcsDestination, - com.google.cloud.translate.v3.GcsDestination.Builder, - com.google.cloud.translate.v3.GcsDestinationOrBuilder>( + gcsDestinationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3.GcsDestination, com.google.cloud.translate.v3.GcsDestination.Builder, com.google.cloud.translate.v3.GcsDestinationOrBuilder>( (com.google.cloud.translate.v3.GcsDestination) destination_, getParentForChildren(), isClean()); destination_ = null; } destinationCase_ = 1; - onChanged(); - ; + onChanged();; return gcsDestinationBuilder_; } private java.lang.Object mimeType_ = ""; /** - * - * *
      * Optional. Specifies the translated document's mime_type.
      * If not specified, the translated file's mime type will be the same as the
@@ -1311,13 +1201,13 @@ public com.google.cloud.translate.v3.GcsDestinationOrBuilder getGcsDestinationOr
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The mimeType. */ public java.lang.String getMimeType() { java.lang.Object ref = mimeType_; 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(); mimeType_ = s; return s; @@ -1326,8 +1216,6 @@ public java.lang.String getMimeType() { } } /** - * - * *
      * Optional. Specifies the translated document's mime_type.
      * If not specified, the translated file's mime type will be the same as the
@@ -1341,14 +1229,15 @@ public java.lang.String getMimeType() {
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for mimeType. */ - public com.google.protobuf.ByteString getMimeTypeBytes() { + public com.google.protobuf.ByteString + getMimeTypeBytes() { java.lang.Object ref = mimeType_; 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); mimeType_ = b; return b; } else { @@ -1356,8 +1245,6 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { } } /** - * - * *
      * Optional. Specifies the translated document's mime_type.
      * If not specified, the translated file's mime type will be the same as the
@@ -1371,22 +1258,20 @@ public com.google.protobuf.ByteString getMimeTypeBytes() {
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The mimeType to set. * @return This builder for chaining. */ - public Builder setMimeType(java.lang.String value) { + public Builder setMimeType( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + mimeType_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Specifies the translated document's mime_type.
      * If not specified, the translated file's mime type will be the same as the
@@ -1400,18 +1285,15 @@ public Builder setMimeType(java.lang.String value) {
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearMimeType() { - + mimeType_ = getDefaultInstance().getMimeType(); onChanged(); return this; } /** - * - * *
      * Optional. Specifies the translated document's mime_type.
      * If not specified, the translated file's mime type will be the same as the
@@ -1425,23 +1307,23 @@ public Builder clearMimeType() {
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for mimeType to set. * @return This builder for chaining. */ - public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { + public Builder setMimeTypeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mimeType_ = value; 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); } @@ -1451,12 +1333,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.DocumentOutputConfig) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.DocumentOutputConfig) private static final com.google.cloud.translate.v3.DocumentOutputConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.DocumentOutputConfig(); } @@ -1465,16 +1347,16 @@ public static com.google.cloud.translate.v3.DocumentOutputConfig getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DocumentOutputConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DocumentOutputConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DocumentOutputConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DocumentOutputConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1489,4 +1371,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.DocumentOutputConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentOutputConfigOrBuilder.java b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentOutputConfigOrBuilder.java similarity index 87% rename from proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentOutputConfigOrBuilder.java rename to owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentOutputConfigOrBuilder.java index 9f863d83..ecaa9af6 100644 --- a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentOutputConfigOrBuilder.java +++ b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentOutputConfigOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 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/translate/v3/translation_service.proto package com.google.cloud.translate.v3; -public interface DocumentOutputConfigOrBuilder - extends +public interface DocumentOutputConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.DocumentOutputConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Optional. Google Cloud Storage destination for the translation output,
    * e.g., `gs://my_bucket/my_directory/`.
@@ -63,16 +45,11 @@ public interface DocumentOutputConfigOrBuilder
    * bucket.
    * 
* - * - * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the gcsDestination field is set. */ boolean hasGcsDestination(); /** - * - * *
    * Optional. Google Cloud Storage destination for the translation output,
    * e.g., `gs://my_bucket/my_directory/`.
@@ -110,16 +87,11 @@ public interface DocumentOutputConfigOrBuilder
    * bucket.
    * 
* - * - * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The gcsDestination. */ com.google.cloud.translate.v3.GcsDestination getGcsDestination(); /** - * - * *
    * Optional. Google Cloud Storage destination for the translation output,
    * e.g., `gs://my_bucket/my_directory/`.
@@ -157,15 +129,11 @@ public interface DocumentOutputConfigOrBuilder
    * bucket.
    * 
* - * - * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.translate.v3.GcsDestinationOrBuilder getGcsDestinationOrBuilder(); /** - * - * *
    * Optional. Specifies the translated document's mime_type.
    * If not specified, the translated file's mime type will be the same as the
@@ -179,13 +147,10 @@ public interface DocumentOutputConfigOrBuilder
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The mimeType. */ java.lang.String getMimeType(); /** - * - * *
    * Optional. Specifies the translated document's mime_type.
    * If not specified, the translated file's mime type will be the same as the
@@ -199,10 +164,10 @@ public interface DocumentOutputConfigOrBuilder
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for mimeType. */ - com.google.protobuf.ByteString getMimeTypeBytes(); + com.google.protobuf.ByteString + getMimeTypeBytes(); public com.google.cloud.translate.v3.DocumentOutputConfig.DestinationCase getDestinationCase(); } diff --git a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentTranslation.java b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentTranslation.java similarity index 73% rename from proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentTranslation.java rename to owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentTranslation.java index 37aa5f0a..06bd343c 100644 --- a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentTranslation.java +++ b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentTranslation.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 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/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** - * - * *
  * A translated document message.
  * 
* * Protobuf type {@code google.cloud.translation.v3.DocumentTranslation} */ -public final class DocumentTranslation extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DocumentTranslation extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.DocumentTranslation) DocumentTranslationOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DocumentTranslation.newBuilder() to construct. private DocumentTranslation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DocumentTranslation() { byteStreamOutputs_ = java.util.Collections.emptyList(); mimeType_ = ""; @@ -45,15 +27,16 @@ private DocumentTranslation() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DocumentTranslation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DocumentTranslation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,42 +56,40 @@ private DocumentTranslation( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - byteStreamOutputs_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - byteStreamOutputs_.add(input.readBytes()); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + byteStreamOutputs_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + byteStreamOutputs_.add(input.readBytes()); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - mimeType_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + mimeType_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - detectedLanguageCode_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + detectedLanguageCode_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { byteStreamOutputs_ = java.util.Collections.unmodifiableList(byteStreamOutputs_); // C @@ -117,27 +98,22 @@ private DocumentTranslation( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_DocumentTranslation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DocumentTranslation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_DocumentTranslation_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DocumentTranslation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.DocumentTranslation.class, - com.google.cloud.translate.v3.DocumentTranslation.Builder.class); + com.google.cloud.translate.v3.DocumentTranslation.class, com.google.cloud.translate.v3.DocumentTranslation.Builder.class); } public static final int BYTE_STREAM_OUTPUTS_FIELD_NUMBER = 1; private java.util.List byteStreamOutputs_; /** - * - * *
    * The array of translated documents. It is expected to be size 1 for now. We
    * may produce multiple translated documents in the future for other type of
@@ -145,16 +121,14 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * repeated bytes byte_stream_outputs = 1; - * * @return A list containing the byteStreamOutputs. */ @java.lang.Override - public java.util.List getByteStreamOutputsList() { + public java.util.List + getByteStreamOutputsList() { return byteStreamOutputs_; } /** - * - * *
    * The array of translated documents. It is expected to be size 1 for now. We
    * may produce multiple translated documents in the future for other type of
@@ -162,15 +136,12 @@ public java.util.List getByteStreamOutputsList()
    * 
* * repeated bytes byte_stream_outputs = 1; - * * @return The count of byteStreamOutputs. */ public int getByteStreamOutputsCount() { return byteStreamOutputs_.size(); } /** - * - * *
    * The array of translated documents. It is expected to be size 1 for now. We
    * may produce multiple translated documents in the future for other type of
@@ -178,7 +149,6 @@ public int getByteStreamOutputsCount() {
    * 
* * repeated bytes byte_stream_outputs = 1; - * * @param index The index of the element to return. * @return The byteStreamOutputs at the given index. */ @@ -189,14 +159,11 @@ public com.google.protobuf.ByteString getByteStreamOutputs(int index) { public static final int MIME_TYPE_FIELD_NUMBER = 2; private volatile java.lang.Object mimeType_; /** - * - * *
    * The translated document's mime type.
    * 
* * string mime_type = 2; - * * @return The mimeType. */ @java.lang.Override @@ -205,29 +172,29 @@ public java.lang.String getMimeType() { 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(); mimeType_ = s; return s; } } /** - * - * *
    * The translated document's mime type.
    * 
* * string mime_type = 2; - * * @return The bytes for mimeType. */ @java.lang.Override - public com.google.protobuf.ByteString getMimeTypeBytes() { + public com.google.protobuf.ByteString + getMimeTypeBytes() { java.lang.Object ref = mimeType_; 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); mimeType_ = b; return b; } else { @@ -238,8 +205,6 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { public static final int DETECTED_LANGUAGE_CODE_FIELD_NUMBER = 3; private volatile java.lang.Object detectedLanguageCode_; /** - * - * *
    * The detected language for the input document.
    * If the user did not provide the source language for the input document,
@@ -249,7 +214,6 @@ public com.google.protobuf.ByteString getMimeTypeBytes() {
    * 
* * string detected_language_code = 3; - * * @return The detectedLanguageCode. */ @java.lang.Override @@ -258,15 +222,14 @@ public java.lang.String getDetectedLanguageCode() { 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(); detectedLanguageCode_ = s; return s; } } /** - * - * *
    * The detected language for the input document.
    * If the user did not provide the source language for the input document,
@@ -276,15 +239,16 @@ public java.lang.String getDetectedLanguageCode() {
    * 
* * string detected_language_code = 3; - * * @return The bytes for detectedLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getDetectedLanguageCodeBytes() { + public com.google.protobuf.ByteString + getDetectedLanguageCodeBytes() { java.lang.Object ref = detectedLanguageCode_; 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); detectedLanguageCode_ = b; return b; } else { @@ -293,7 +257,6 @@ public com.google.protobuf.ByteString getDetectedLanguageCodeBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -305,14 +268,15 @@ 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 < byteStreamOutputs_.size(); i++) { output.writeBytes(1, byteStreamOutputs_.get(i)); } - if (!getMimeTypeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mimeType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, mimeType_); } - if (!getDetectedLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(detectedLanguageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, detectedLanguageCode_); } unknownFields.writeTo(output); @@ -327,16 +291,16 @@ public int getSerializedSize() { { int dataSize = 0; for (int i = 0; i < byteStreamOutputs_.size(); i++) { - dataSize += - com.google.protobuf.CodedOutputStream.computeBytesSizeNoTag(byteStreamOutputs_.get(i)); + dataSize += com.google.protobuf.CodedOutputStream + .computeBytesSizeNoTag(byteStreamOutputs_.get(i)); } size += dataSize; size += 1 * getByteStreamOutputsList().size(); } - if (!getMimeTypeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mimeType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, mimeType_); } - if (!getDetectedLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(detectedLanguageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, detectedLanguageCode_); } size += unknownFields.getSerializedSize(); @@ -347,17 +311,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.cloud.translate.v3.DocumentTranslation)) { return super.equals(obj); } - com.google.cloud.translate.v3.DocumentTranslation other = - (com.google.cloud.translate.v3.DocumentTranslation) obj; + com.google.cloud.translate.v3.DocumentTranslation other = (com.google.cloud.translate.v3.DocumentTranslation) obj; - if (!getByteStreamOutputsList().equals(other.getByteStreamOutputsList())) return false; - if (!getMimeType().equals(other.getMimeType())) return false; - if (!getDetectedLanguageCode().equals(other.getDetectedLanguageCode())) return false; + if (!getByteStreamOutputsList() + .equals(other.getByteStreamOutputsList())) return false; + if (!getMimeType() + .equals(other.getMimeType())) return false; + if (!getDetectedLanguageCode() + .equals(other.getDetectedLanguageCode())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -383,126 +349,117 @@ public int hashCode() { } public static com.google.cloud.translate.v3.DocumentTranslation 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.cloud.translate.v3.DocumentTranslation 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.cloud.translate.v3.DocumentTranslation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.DocumentTranslation 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.cloud.translate.v3.DocumentTranslation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.DocumentTranslation 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.cloud.translate.v3.DocumentTranslation parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.DocumentTranslation parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.DocumentTranslation 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.cloud.translate.v3.DocumentTranslation parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.DocumentTranslation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.DocumentTranslation 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.cloud.translate.v3.DocumentTranslation 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.cloud.translate.v3.DocumentTranslation 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.cloud.translate.v3.DocumentTranslation 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 translated document message.
    * 
* * Protobuf type {@code google.cloud.translation.v3.DocumentTranslation} */ - 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.translation.v3.DocumentTranslation) com.google.cloud.translate.v3.DocumentTranslationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_DocumentTranslation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DocumentTranslation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_DocumentTranslation_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DocumentTranslation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.DocumentTranslation.class, - com.google.cloud.translate.v3.DocumentTranslation.Builder.class); + com.google.cloud.translate.v3.DocumentTranslation.class, com.google.cloud.translate.v3.DocumentTranslation.Builder.class); } // Construct using com.google.cloud.translate.v3.DocumentTranslation.newBuilder() @@ -510,15 +467,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -532,9 +490,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_DocumentTranslation_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DocumentTranslation_descriptor; } @java.lang.Override @@ -553,8 +511,7 @@ public com.google.cloud.translate.v3.DocumentTranslation build() { @java.lang.Override public com.google.cloud.translate.v3.DocumentTranslation buildPartial() { - com.google.cloud.translate.v3.DocumentTranslation result = - new com.google.cloud.translate.v3.DocumentTranslation(this); + com.google.cloud.translate.v3.DocumentTranslation result = new com.google.cloud.translate.v3.DocumentTranslation(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { byteStreamOutputs_ = java.util.Collections.unmodifiableList(byteStreamOutputs_); @@ -571,39 +528,38 @@ public com.google.cloud.translate.v3.DocumentTranslation 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.cloud.translate.v3.DocumentTranslation) { - return mergeFrom((com.google.cloud.translate.v3.DocumentTranslation) other); + return mergeFrom((com.google.cloud.translate.v3.DocumentTranslation)other); } else { super.mergeFrom(other); return this; @@ -611,8 +567,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.DocumentTranslation other) { - if (other == com.google.cloud.translate.v3.DocumentTranslation.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3.DocumentTranslation.getDefaultInstance()) return this; if (!other.byteStreamOutputs_.isEmpty()) { if (byteStreamOutputs_.isEmpty()) { byteStreamOutputs_ = other.byteStreamOutputs_; @@ -650,8 +605,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.translate.v3.DocumentTranslation) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.translate.v3.DocumentTranslation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -660,22 +614,16 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private java.util.List byteStreamOutputs_ = - java.util.Collections.emptyList(); - + private java.util.List byteStreamOutputs_ = java.util.Collections.emptyList(); private void ensureByteStreamOutputsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - byteStreamOutputs_ = - new java.util.ArrayList(byteStreamOutputs_); + byteStreamOutputs_ = new java.util.ArrayList(byteStreamOutputs_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * The array of translated documents. It is expected to be size 1 for now. We
      * may produce multiple translated documents in the future for other type of
@@ -683,17 +631,14 @@ private void ensureByteStreamOutputsIsMutable() {
      * 
* * repeated bytes byte_stream_outputs = 1; - * * @return A list containing the byteStreamOutputs. */ - public java.util.List getByteStreamOutputsList() { - return ((bitField0_ & 0x00000001) != 0) - ? java.util.Collections.unmodifiableList(byteStreamOutputs_) - : byteStreamOutputs_; + public java.util.List + getByteStreamOutputsList() { + return ((bitField0_ & 0x00000001) != 0) ? + java.util.Collections.unmodifiableList(byteStreamOutputs_) : byteStreamOutputs_; } /** - * - * *
      * The array of translated documents. It is expected to be size 1 for now. We
      * may produce multiple translated documents in the future for other type of
@@ -701,15 +646,12 @@ public java.util.List getByteStreamOutputsList()
      * 
* * repeated bytes byte_stream_outputs = 1; - * * @return The count of byteStreamOutputs. */ public int getByteStreamOutputsCount() { return byteStreamOutputs_.size(); } /** - * - * *
      * The array of translated documents. It is expected to be size 1 for now. We
      * may produce multiple translated documents in the future for other type of
@@ -717,7 +659,6 @@ public int getByteStreamOutputsCount() {
      * 
* * repeated bytes byte_stream_outputs = 1; - * * @param index The index of the element to return. * @return The byteStreamOutputs at the given index. */ @@ -725,8 +666,6 @@ public com.google.protobuf.ByteString getByteStreamOutputs(int index) { return byteStreamOutputs_.get(index); } /** - * - * *
      * The array of translated documents. It is expected to be size 1 for now. We
      * may produce multiple translated documents in the future for other type of
@@ -734,23 +673,21 @@ public com.google.protobuf.ByteString getByteStreamOutputs(int index) {
      * 
* * repeated bytes byte_stream_outputs = 1; - * * @param index The index to set the value at. * @param value The byteStreamOutputs to set. * @return This builder for chaining. */ - public Builder setByteStreamOutputs(int index, com.google.protobuf.ByteString value) { + public Builder setByteStreamOutputs( + int index, com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - ensureByteStreamOutputsIsMutable(); + throw new NullPointerException(); + } + ensureByteStreamOutputsIsMutable(); byteStreamOutputs_.set(index, value); onChanged(); return this; } /** - * - * *
      * The array of translated documents. It is expected to be size 1 for now. We
      * may produce multiple translated documents in the future for other type of
@@ -758,22 +695,19 @@ public Builder setByteStreamOutputs(int index, com.google.protobuf.ByteString va
      * 
* * repeated bytes byte_stream_outputs = 1; - * * @param value The byteStreamOutputs to add. * @return This builder for chaining. */ public Builder addByteStreamOutputs(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - ensureByteStreamOutputsIsMutable(); + throw new NullPointerException(); + } + ensureByteStreamOutputsIsMutable(); byteStreamOutputs_.add(value); onChanged(); return this; } /** - * - * *
      * The array of translated documents. It is expected to be size 1 for now. We
      * may produce multiple translated documents in the future for other type of
@@ -781,20 +715,18 @@ public Builder addByteStreamOutputs(com.google.protobuf.ByteString value) {
      * 
* * repeated bytes byte_stream_outputs = 1; - * * @param values The byteStreamOutputs to add. * @return This builder for chaining. */ public Builder addAllByteStreamOutputs( java.lang.Iterable values) { ensureByteStreamOutputsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, byteStreamOutputs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, byteStreamOutputs_); onChanged(); return this; } /** - * - * *
      * The array of translated documents. It is expected to be size 1 for now. We
      * may produce multiple translated documents in the future for other type of
@@ -802,7 +734,6 @@ public Builder addAllByteStreamOutputs(
      * 
* * repeated bytes byte_stream_outputs = 1; - * * @return This builder for chaining. */ public Builder clearByteStreamOutputs() { @@ -814,20 +745,18 @@ public Builder clearByteStreamOutputs() { private java.lang.Object mimeType_ = ""; /** - * - * *
      * The translated document's mime type.
      * 
* * string mime_type = 2; - * * @return The mimeType. */ public java.lang.String getMimeType() { java.lang.Object ref = mimeType_; 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(); mimeType_ = s; return s; @@ -836,21 +765,20 @@ public java.lang.String getMimeType() { } } /** - * - * *
      * The translated document's mime type.
      * 
* * string mime_type = 2; - * * @return The bytes for mimeType. */ - public com.google.protobuf.ByteString getMimeTypeBytes() { + public com.google.protobuf.ByteString + getMimeTypeBytes() { java.lang.Object ref = mimeType_; 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); mimeType_ = b; return b; } else { @@ -858,61 +786,54 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { } } /** - * - * *
      * The translated document's mime type.
      * 
* * string mime_type = 2; - * * @param value The mimeType to set. * @return This builder for chaining. */ - public Builder setMimeType(java.lang.String value) { + public Builder setMimeType( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + mimeType_ = value; onChanged(); return this; } /** - * - * *
      * The translated document's mime type.
      * 
* * string mime_type = 2; - * * @return This builder for chaining. */ public Builder clearMimeType() { - + mimeType_ = getDefaultInstance().getMimeType(); onChanged(); return this; } /** - * - * *
      * The translated document's mime type.
      * 
* * string mime_type = 2; - * * @param value The bytes for mimeType to set. * @return This builder for chaining. */ - public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { + public Builder setMimeTypeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mimeType_ = value; onChanged(); return this; @@ -920,8 +841,6 @@ public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { private java.lang.Object detectedLanguageCode_ = ""; /** - * - * *
      * The detected language for the input document.
      * If the user did not provide the source language for the input document,
@@ -931,13 +850,13 @@ public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) {
      * 
* * string detected_language_code = 3; - * * @return The detectedLanguageCode. */ public java.lang.String getDetectedLanguageCode() { java.lang.Object ref = detectedLanguageCode_; 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(); detectedLanguageCode_ = s; return s; @@ -946,8 +865,6 @@ public java.lang.String getDetectedLanguageCode() { } } /** - * - * *
      * The detected language for the input document.
      * If the user did not provide the source language for the input document,
@@ -957,14 +874,15 @@ public java.lang.String getDetectedLanguageCode() {
      * 
* * string detected_language_code = 3; - * * @return The bytes for detectedLanguageCode. */ - public com.google.protobuf.ByteString getDetectedLanguageCodeBytes() { + public com.google.protobuf.ByteString + getDetectedLanguageCodeBytes() { java.lang.Object ref = detectedLanguageCode_; 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); detectedLanguageCode_ = b; return b; } else { @@ -972,8 +890,6 @@ public com.google.protobuf.ByteString getDetectedLanguageCodeBytes() { } } /** - * - * *
      * The detected language for the input document.
      * If the user did not provide the source language for the input document,
@@ -983,22 +899,20 @@ public com.google.protobuf.ByteString getDetectedLanguageCodeBytes() {
      * 
* * string detected_language_code = 3; - * * @param value The detectedLanguageCode to set. * @return This builder for chaining. */ - public Builder setDetectedLanguageCode(java.lang.String value) { + public Builder setDetectedLanguageCode( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + detectedLanguageCode_ = value; onChanged(); return this; } /** - * - * *
      * The detected language for the input document.
      * If the user did not provide the source language for the input document,
@@ -1008,18 +922,15 @@ public Builder setDetectedLanguageCode(java.lang.String value) {
      * 
* * string detected_language_code = 3; - * * @return This builder for chaining. */ public Builder clearDetectedLanguageCode() { - + detectedLanguageCode_ = getDefaultInstance().getDetectedLanguageCode(); onChanged(); return this; } /** - * - * *
      * The detected language for the input document.
      * If the user did not provide the source language for the input document,
@@ -1029,23 +940,23 @@ public Builder clearDetectedLanguageCode() {
      * 
* * string detected_language_code = 3; - * * @param value The bytes for detectedLanguageCode to set. * @return This builder for chaining. */ - public Builder setDetectedLanguageCodeBytes(com.google.protobuf.ByteString value) { + public Builder setDetectedLanguageCodeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + detectedLanguageCode_ = value; 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); } @@ -1055,12 +966,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.DocumentTranslation) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.DocumentTranslation) private static final com.google.cloud.translate.v3.DocumentTranslation DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.DocumentTranslation(); } @@ -1069,16 +980,16 @@ public static com.google.cloud.translate.v3.DocumentTranslation getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DocumentTranslation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DocumentTranslation(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DocumentTranslation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DocumentTranslation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1093,4 +1004,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.DocumentTranslation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentTranslationOrBuilder.java b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentTranslationOrBuilder.java similarity index 76% rename from proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentTranslationOrBuilder.java rename to owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentTranslationOrBuilder.java index 7e00d334..a0de3087 100644 --- a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentTranslationOrBuilder.java +++ b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentTranslationOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 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/translate/v3/translation_service.proto package com.google.cloud.translate.v3; -public interface DocumentTranslationOrBuilder - extends +public interface DocumentTranslationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.DocumentTranslation) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The array of translated documents. It is expected to be size 1 for now. We
    * may produce multiple translated documents in the future for other type of
@@ -33,13 +15,10 @@ public interface DocumentTranslationOrBuilder
    * 
* * repeated bytes byte_stream_outputs = 1; - * * @return A list containing the byteStreamOutputs. */ java.util.List getByteStreamOutputsList(); /** - * - * *
    * The array of translated documents. It is expected to be size 1 for now. We
    * may produce multiple translated documents in the future for other type of
@@ -47,13 +26,10 @@ public interface DocumentTranslationOrBuilder
    * 
* * repeated bytes byte_stream_outputs = 1; - * * @return The count of byteStreamOutputs. */ int getByteStreamOutputsCount(); /** - * - * *
    * The array of translated documents. It is expected to be size 1 for now. We
    * may produce multiple translated documents in the future for other type of
@@ -61,40 +37,32 @@ public interface DocumentTranslationOrBuilder
    * 
* * repeated bytes byte_stream_outputs = 1; - * * @param index The index of the element to return. * @return The byteStreamOutputs at the given index. */ com.google.protobuf.ByteString getByteStreamOutputs(int index); /** - * - * *
    * The translated document's mime type.
    * 
* * string mime_type = 2; - * * @return The mimeType. */ java.lang.String getMimeType(); /** - * - * *
    * The translated document's mime type.
    * 
* * string mime_type = 2; - * * @return The bytes for mimeType. */ - com.google.protobuf.ByteString getMimeTypeBytes(); + com.google.protobuf.ByteString + getMimeTypeBytes(); /** - * - * *
    * The detected language for the input document.
    * If the user did not provide the source language for the input document,
@@ -104,13 +72,10 @@ public interface DocumentTranslationOrBuilder
    * 
* * string detected_language_code = 3; - * * @return The detectedLanguageCode. */ java.lang.String getDetectedLanguageCode(); /** - * - * *
    * The detected language for the input document.
    * If the user did not provide the source language for the input document,
@@ -120,8 +85,8 @@ public interface DocumentTranslationOrBuilder
    * 
* * string detected_language_code = 3; - * * @return The bytes for detectedLanguageCode. */ - com.google.protobuf.ByteString getDetectedLanguageCodeBytes(); + com.google.protobuf.ByteString + getDetectedLanguageCodeBytes(); } diff --git a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsDestination.java b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsDestination.java similarity index 72% rename from proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsDestination.java rename to owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsDestination.java index 2516a54b..df8dd569 100644 --- a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsDestination.java +++ b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsDestination.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 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/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** - * - * *
  * The Google Cloud Storage location for the output content.
  * 
* * Protobuf type {@code google.cloud.translation.v3.GcsDestination} */ -public final class GcsDestination extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GcsDestination extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.GcsDestination) GcsDestinationOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GcsDestination.newBuilder() to construct. private GcsDestination(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GcsDestination() { outputUriPrefix_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GcsDestination(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GcsDestination( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,52 +53,47 @@ private GcsDestination( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - outputUriPrefix_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + outputUriPrefix_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_GcsDestination_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GcsDestination_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_GcsDestination_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GcsDestination_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.GcsDestination.class, - com.google.cloud.translate.v3.GcsDestination.Builder.class); + com.google.cloud.translate.v3.GcsDestination.class, com.google.cloud.translate.v3.GcsDestination.Builder.class); } public static final int OUTPUT_URI_PREFIX_FIELD_NUMBER = 1; private volatile java.lang.Object outputUriPrefix_; /** - * - * *
    * Required. The bucket used in 'output_uri_prefix' must exist and there must
    * be no files under 'output_uri_prefix'. 'output_uri_prefix' must end with
@@ -125,7 +103,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The outputUriPrefix. */ @java.lang.Override @@ -134,15 +111,14 @@ public java.lang.String getOutputUriPrefix() { 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(); outputUriPrefix_ = s; return s; } } /** - * - * *
    * Required. The bucket used in 'output_uri_prefix' must exist and there must
    * be no files under 'output_uri_prefix'. 'output_uri_prefix' must end with
@@ -152,15 +128,16 @@ public java.lang.String getOutputUriPrefix() {
    * 
* * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for outputUriPrefix. */ @java.lang.Override - public com.google.protobuf.ByteString getOutputUriPrefixBytes() { + public com.google.protobuf.ByteString + getOutputUriPrefixBytes() { java.lang.Object ref = outputUriPrefix_; 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); outputUriPrefix_ = b; return b; } else { @@ -169,7 +146,6 @@ public com.google.protobuf.ByteString getOutputUriPrefixBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -181,8 +157,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getOutputUriPrefixBytes().isEmpty()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputUriPrefix_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, outputUriPrefix_); } unknownFields.writeTo(output); @@ -194,7 +171,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getOutputUriPrefixBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputUriPrefix_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, outputUriPrefix_); } size += unknownFields.getSerializedSize(); @@ -205,15 +182,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.cloud.translate.v3.GcsDestination)) { return super.equals(obj); } - com.google.cloud.translate.v3.GcsDestination other = - (com.google.cloud.translate.v3.GcsDestination) obj; + com.google.cloud.translate.v3.GcsDestination other = (com.google.cloud.translate.v3.GcsDestination) obj; - if (!getOutputUriPrefix().equals(other.getOutputUriPrefix())) return false; + if (!getOutputUriPrefix() + .equals(other.getOutputUriPrefix())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -232,127 +209,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.translate.v3.GcsDestination parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.translate.v3.GcsDestination parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.GcsDestination 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.cloud.translate.v3.GcsDestination parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.GcsDestination 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.cloud.translate.v3.GcsDestination parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.GcsDestination 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.cloud.translate.v3.GcsDestination 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.cloud.translate.v3.GcsDestination 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.cloud.translate.v3.GcsDestination parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.GcsDestination parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.GcsDestination 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.cloud.translate.v3.GcsDestination 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.cloud.translate.v3.GcsDestination 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.cloud.translate.v3.GcsDestination 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 Google Cloud Storage location for the output content.
    * 
* * Protobuf type {@code google.cloud.translation.v3.GcsDestination} */ - 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.translation.v3.GcsDestination) com.google.cloud.translate.v3.GcsDestinationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_GcsDestination_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GcsDestination_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_GcsDestination_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GcsDestination_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.GcsDestination.class, - com.google.cloud.translate.v3.GcsDestination.Builder.class); + com.google.cloud.translate.v3.GcsDestination.class, com.google.cloud.translate.v3.GcsDestination.Builder.class); } // Construct using com.google.cloud.translate.v3.GcsDestination.newBuilder() @@ -360,15 +328,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -378,9 +347,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_GcsDestination_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GcsDestination_descriptor; } @java.lang.Override @@ -399,8 +368,7 @@ public com.google.cloud.translate.v3.GcsDestination build() { @java.lang.Override public com.google.cloud.translate.v3.GcsDestination buildPartial() { - com.google.cloud.translate.v3.GcsDestination result = - new com.google.cloud.translate.v3.GcsDestination(this); + com.google.cloud.translate.v3.GcsDestination result = new com.google.cloud.translate.v3.GcsDestination(this); result.outputUriPrefix_ = outputUriPrefix_; onBuilt(); return result; @@ -410,39 +378,38 @@ public com.google.cloud.translate.v3.GcsDestination 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.cloud.translate.v3.GcsDestination) { - return mergeFrom((com.google.cloud.translate.v3.GcsDestination) other); + return mergeFrom((com.google.cloud.translate.v3.GcsDestination)other); } else { super.mergeFrom(other); return this; @@ -486,8 +453,6 @@ public Builder mergeFrom( private java.lang.Object outputUriPrefix_ = ""; /** - * - * *
      * Required. The bucket used in 'output_uri_prefix' must exist and there must
      * be no files under 'output_uri_prefix'. 'output_uri_prefix' must end with
@@ -497,13 +462,13 @@ public Builder mergeFrom(
      * 
* * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The outputUriPrefix. */ public java.lang.String getOutputUriPrefix() { java.lang.Object ref = outputUriPrefix_; 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(); outputUriPrefix_ = s; return s; @@ -512,8 +477,6 @@ public java.lang.String getOutputUriPrefix() { } } /** - * - * *
      * Required. The bucket used in 'output_uri_prefix' must exist and there must
      * be no files under 'output_uri_prefix'. 'output_uri_prefix' must end with
@@ -523,14 +486,15 @@ public java.lang.String getOutputUriPrefix() {
      * 
* * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for outputUriPrefix. */ - public com.google.protobuf.ByteString getOutputUriPrefixBytes() { + public com.google.protobuf.ByteString + getOutputUriPrefixBytes() { java.lang.Object ref = outputUriPrefix_; 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); outputUriPrefix_ = b; return b; } else { @@ -538,8 +502,6 @@ public com.google.protobuf.ByteString getOutputUriPrefixBytes() { } } /** - * - * *
      * Required. The bucket used in 'output_uri_prefix' must exist and there must
      * be no files under 'output_uri_prefix'. 'output_uri_prefix' must end with
@@ -549,22 +511,20 @@ public com.google.protobuf.ByteString getOutputUriPrefixBytes() {
      * 
* * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The outputUriPrefix to set. * @return This builder for chaining. */ - public Builder setOutputUriPrefix(java.lang.String value) { + public Builder setOutputUriPrefix( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + outputUriPrefix_ = value; onChanged(); return this; } /** - * - * *
      * Required. The bucket used in 'output_uri_prefix' must exist and there must
      * be no files under 'output_uri_prefix'. 'output_uri_prefix' must end with
@@ -574,18 +534,15 @@ public Builder setOutputUriPrefix(java.lang.String value) {
      * 
* * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearOutputUriPrefix() { - + outputUriPrefix_ = getDefaultInstance().getOutputUriPrefix(); onChanged(); return this; } /** - * - * *
      * Required. The bucket used in 'output_uri_prefix' must exist and there must
      * be no files under 'output_uri_prefix'. 'output_uri_prefix' must end with
@@ -595,23 +552,23 @@ public Builder clearOutputUriPrefix() {
      * 
* * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for outputUriPrefix to set. * @return This builder for chaining. */ - public Builder setOutputUriPrefixBytes(com.google.protobuf.ByteString value) { + public Builder setOutputUriPrefixBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + outputUriPrefix_ = value; 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); } @@ -621,12 +578,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.GcsDestination) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.GcsDestination) private static final com.google.cloud.translate.v3.GcsDestination DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.GcsDestination(); } @@ -635,16 +592,16 @@ public static com.google.cloud.translate.v3.GcsDestination getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GcsDestination parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GcsDestination(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcsDestination parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GcsDestination(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -659,4 +616,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.GcsDestination getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsDestinationOrBuilder.java b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsDestinationOrBuilder.java similarity index 64% rename from proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsDestinationOrBuilder.java rename to owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsDestinationOrBuilder.java index 623f945b..70032240 100644 --- a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsDestinationOrBuilder.java +++ b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsDestinationOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 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/translate/v3/translation_service.proto package com.google.cloud.translate.v3; -public interface GcsDestinationOrBuilder - extends +public interface GcsDestinationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.GcsDestination) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The bucket used in 'output_uri_prefix' must exist and there must
    * be no files under 'output_uri_prefix'. 'output_uri_prefix' must end with
@@ -35,13 +17,10 @@ public interface GcsDestinationOrBuilder
    * 
* * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The outputUriPrefix. */ java.lang.String getOutputUriPrefix(); /** - * - * *
    * Required. The bucket used in 'output_uri_prefix' must exist and there must
    * be no files under 'output_uri_prefix'. 'output_uri_prefix' must end with
@@ -51,8 +30,8 @@ public interface GcsDestinationOrBuilder
    * 
* * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for outputUriPrefix. */ - com.google.protobuf.ByteString getOutputUriPrefixBytes(); + com.google.protobuf.ByteString + getOutputUriPrefixBytes(); } diff --git a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsSource.java b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsSource.java similarity index 70% rename from proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsSource.java rename to owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsSource.java index 5bbedccb..eb01c016 100644 --- a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsSource.java +++ b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsSource.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 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/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** - * - * *
  * The Google Cloud Storage location for the input content.
  * 
* * Protobuf type {@code google.cloud.translation.v3.GcsSource} */ -public final class GcsSource extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GcsSource extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.GcsSource) GcsSourceOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GcsSource.newBuilder() to construct. private GcsSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GcsSource() { inputUri_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GcsSource(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GcsSource( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,58 +53,52 @@ private GcsSource( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - inputUri_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + inputUri_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_GcsSource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GcsSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_GcsSource_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GcsSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.GcsSource.class, - com.google.cloud.translate.v3.GcsSource.Builder.class); + com.google.cloud.translate.v3.GcsSource.class, com.google.cloud.translate.v3.GcsSource.Builder.class); } public static final int INPUT_URI_FIELD_NUMBER = 1; private volatile java.lang.Object inputUri_; /** - * - * *
    * Required. Source data URI. For example, `gs://my_bucket/my_object`.
    * 
* * string input_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The inputUri. */ @java.lang.Override @@ -130,29 +107,29 @@ public java.lang.String getInputUri() { 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(); inputUri_ = s; return s; } } /** - * - * *
    * Required. Source data URI. For example, `gs://my_bucket/my_object`.
    * 
* * string input_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for inputUri. */ @java.lang.Override - public com.google.protobuf.ByteString getInputUriBytes() { + public com.google.protobuf.ByteString + getInputUriBytes() { java.lang.Object ref = inputUri_; 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); inputUri_ = b; return b; } else { @@ -161,7 +138,6 @@ public com.google.protobuf.ByteString getInputUriBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -173,8 +149,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getInputUriBytes().isEmpty()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(inputUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, inputUri_); } unknownFields.writeTo(output); @@ -186,7 +163,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getInputUriBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(inputUri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, inputUri_); } size += unknownFields.getSerializedSize(); @@ -197,14 +174,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.cloud.translate.v3.GcsSource)) { return super.equals(obj); } com.google.cloud.translate.v3.GcsSource other = (com.google.cloud.translate.v3.GcsSource) obj; - if (!getInputUri().equals(other.getInputUri())) return false; + if (!getInputUri() + .equals(other.getInputUri())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -223,127 +201,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.translate.v3.GcsSource parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.translate.v3.GcsSource parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.GcsSource 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.cloud.translate.v3.GcsSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.GcsSource 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.cloud.translate.v3.GcsSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.GcsSource 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.cloud.translate.v3.GcsSource 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.cloud.translate.v3.GcsSource 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.cloud.translate.v3.GcsSource parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.GcsSource parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.GcsSource 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.cloud.translate.v3.GcsSource 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.cloud.translate.v3.GcsSource 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.cloud.translate.v3.GcsSource 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 Google Cloud Storage location for the input content.
    * 
* * Protobuf type {@code google.cloud.translation.v3.GcsSource} */ - 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.translation.v3.GcsSource) com.google.cloud.translate.v3.GcsSourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_GcsSource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GcsSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_GcsSource_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GcsSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.GcsSource.class, - com.google.cloud.translate.v3.GcsSource.Builder.class); + com.google.cloud.translate.v3.GcsSource.class, com.google.cloud.translate.v3.GcsSource.Builder.class); } // Construct using com.google.cloud.translate.v3.GcsSource.newBuilder() @@ -351,15 +320,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -369,9 +339,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_GcsSource_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GcsSource_descriptor; } @java.lang.Override @@ -390,8 +360,7 @@ public com.google.cloud.translate.v3.GcsSource build() { @java.lang.Override public com.google.cloud.translate.v3.GcsSource buildPartial() { - com.google.cloud.translate.v3.GcsSource result = - new com.google.cloud.translate.v3.GcsSource(this); + com.google.cloud.translate.v3.GcsSource result = new com.google.cloud.translate.v3.GcsSource(this); result.inputUri_ = inputUri_; onBuilt(); return result; @@ -401,39 +370,38 @@ public com.google.cloud.translate.v3.GcsSource 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.cloud.translate.v3.GcsSource) { - return mergeFrom((com.google.cloud.translate.v3.GcsSource) other); + return mergeFrom((com.google.cloud.translate.v3.GcsSource)other); } else { super.mergeFrom(other); return this; @@ -477,20 +445,18 @@ public Builder mergeFrom( private java.lang.Object inputUri_ = ""; /** - * - * *
      * Required. Source data URI. For example, `gs://my_bucket/my_object`.
      * 
* * string input_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The inputUri. */ public java.lang.String getInputUri() { java.lang.Object ref = inputUri_; 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(); inputUri_ = s; return s; @@ -499,21 +465,20 @@ public java.lang.String getInputUri() { } } /** - * - * *
      * Required. Source data URI. For example, `gs://my_bucket/my_object`.
      * 
* * string input_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for inputUri. */ - public com.google.protobuf.ByteString getInputUriBytes() { + public com.google.protobuf.ByteString + getInputUriBytes() { java.lang.Object ref = inputUri_; 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); inputUri_ = b; return b; } else { @@ -521,68 +486,61 @@ public com.google.protobuf.ByteString getInputUriBytes() { } } /** - * - * *
      * Required. Source data URI. For example, `gs://my_bucket/my_object`.
      * 
* * string input_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The inputUri to set. * @return This builder for chaining. */ - public Builder setInputUri(java.lang.String value) { + public Builder setInputUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + inputUri_ = value; onChanged(); return this; } /** - * - * *
      * Required. Source data URI. For example, `gs://my_bucket/my_object`.
      * 
* * string input_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearInputUri() { - + inputUri_ = getDefaultInstance().getInputUri(); onChanged(); return this; } /** - * - * *
      * Required. Source data URI. For example, `gs://my_bucket/my_object`.
      * 
* * string input_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for inputUri to set. * @return This builder for chaining. */ - public Builder setInputUriBytes(com.google.protobuf.ByteString value) { + public Builder setInputUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + inputUri_ = value; 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); } @@ -592,12 +550,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.GcsSource) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.GcsSource) private static final com.google.cloud.translate.v3.GcsSource DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.GcsSource(); } @@ -606,16 +564,16 @@ public static com.google.cloud.translate.v3.GcsSource getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GcsSource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GcsSource(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcsSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GcsSource(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -630,4 +588,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.GcsSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsSourceOrBuilder.java b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsSourceOrBuilder.java similarity index 52% rename from proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsSourceOrBuilder.java rename to owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsSourceOrBuilder.java index dd91af19..d2e2d20e 100644 --- a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsSourceOrBuilder.java +++ b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsSourceOrBuilder.java @@ -1,50 +1,29 @@ -/* - * Copyright 2020 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/translate/v3/translation_service.proto package com.google.cloud.translate.v3; -public interface GcsSourceOrBuilder - extends +public interface GcsSourceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.GcsSource) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Source data URI. For example, `gs://my_bucket/my_object`.
    * 
* * string input_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The inputUri. */ java.lang.String getInputUri(); /** - * - * *
    * Required. Source data URI. For example, `gs://my_bucket/my_object`.
    * 
* * string input_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for inputUri. */ - com.google.protobuf.ByteString getInputUriBytes(); + com.google.protobuf.ByteString + getInputUriBytes(); } diff --git a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetGlossaryRequest.java b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetGlossaryRequest.java similarity index 65% rename from proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetGlossaryRequest.java rename to owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetGlossaryRequest.java index b472231c..28b72e6b 100644 --- a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetGlossaryRequest.java +++ b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetGlossaryRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 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/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** - * - * *
  * Request message for GetGlossary.
  * 
* * Protobuf type {@code google.cloud.translation.v3.GetGlossaryRequest} */ -public final class GetGlossaryRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetGlossaryRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.GetGlossaryRequest) GetGlossaryRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetGlossaryRequest.newBuilder() to construct. private GetGlossaryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetGlossaryRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetGlossaryRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetGlossaryRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,60 +53,52 @@ private GetGlossaryRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_GetGlossaryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GetGlossaryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_GetGlossaryRequest_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GetGlossaryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.GetGlossaryRequest.class, - com.google.cloud.translate.v3.GetGlossaryRequest.Builder.class); + com.google.cloud.translate.v3.GetGlossaryRequest.class, com.google.cloud.translate.v3.GetGlossaryRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The name of the glossary to retrieve.
    * 
* - * - * 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 @@ -132,31 +107,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; } } /** - * - * *
    * Required. The name of the glossary to retrieve.
    * 
* - * - * 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 { @@ -165,7 +138,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -177,8 +149,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + 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_); } unknownFields.writeTo(output); @@ -190,7 +163,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } size += unknownFields.getSerializedSize(); @@ -201,15 +174,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.cloud.translate.v3.GetGlossaryRequest)) { return super.equals(obj); } - com.google.cloud.translate.v3.GetGlossaryRequest other = - (com.google.cloud.translate.v3.GetGlossaryRequest) obj; + com.google.cloud.translate.v3.GetGlossaryRequest other = (com.google.cloud.translate.v3.GetGlossaryRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -228,127 +201,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.translate.v3.GetGlossaryRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.translate.v3.GetGlossaryRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.GetGlossaryRequest 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.cloud.translate.v3.GetGlossaryRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.GetGlossaryRequest 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.cloud.translate.v3.GetGlossaryRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.GetGlossaryRequest 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.cloud.translate.v3.GetGlossaryRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.GetGlossaryRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.GetGlossaryRequest 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.cloud.translate.v3.GetGlossaryRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.GetGlossaryRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.GetGlossaryRequest 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.cloud.translate.v3.GetGlossaryRequest 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.cloud.translate.v3.GetGlossaryRequest 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.cloud.translate.v3.GetGlossaryRequest 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; } /** - * - * *
    * Request message for GetGlossary.
    * 
* * Protobuf type {@code google.cloud.translation.v3.GetGlossaryRequest} */ - 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.translation.v3.GetGlossaryRequest) com.google.cloud.translate.v3.GetGlossaryRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_GetGlossaryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GetGlossaryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_GetGlossaryRequest_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GetGlossaryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.GetGlossaryRequest.class, - com.google.cloud.translate.v3.GetGlossaryRequest.Builder.class); + com.google.cloud.translate.v3.GetGlossaryRequest.class, com.google.cloud.translate.v3.GetGlossaryRequest.Builder.class); } // Construct using com.google.cloud.translate.v3.GetGlossaryRequest.newBuilder() @@ -356,15 +320,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -374,9 +339,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_GetGlossaryRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GetGlossaryRequest_descriptor; } @java.lang.Override @@ -395,8 +360,7 @@ public com.google.cloud.translate.v3.GetGlossaryRequest build() { @java.lang.Override public com.google.cloud.translate.v3.GetGlossaryRequest buildPartial() { - com.google.cloud.translate.v3.GetGlossaryRequest result = - new com.google.cloud.translate.v3.GetGlossaryRequest(this); + com.google.cloud.translate.v3.GetGlossaryRequest result = new com.google.cloud.translate.v3.GetGlossaryRequest(this); result.name_ = name_; onBuilt(); return result; @@ -406,39 +370,38 @@ public com.google.cloud.translate.v3.GetGlossaryRequest 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.cloud.translate.v3.GetGlossaryRequest) { - return mergeFrom((com.google.cloud.translate.v3.GetGlossaryRequest) other); + return mergeFrom((com.google.cloud.translate.v3.GetGlossaryRequest)other); } else { super.mergeFrom(other); return this; @@ -446,8 +409,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.GetGlossaryRequest other) { - if (other == com.google.cloud.translate.v3.GetGlossaryRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3.GetGlossaryRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -483,22 +445,18 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the glossary to retrieve.
      * 
* - * - * 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; @@ -507,23 +465,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the glossary to retrieve.
      * 
* - * - * 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 { @@ -531,74 +486,61 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the glossary to retrieve.
      * 
* - * - * 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) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The name of the glossary to retrieve.
      * 
* - * - * 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() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The name of the glossary to retrieve.
      * 
* - * - * 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) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; 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); } @@ -608,12 +550,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.GetGlossaryRequest) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.GetGlossaryRequest) private static final com.google.cloud.translate.v3.GetGlossaryRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.GetGlossaryRequest(); } @@ -622,16 +564,16 @@ public static com.google.cloud.translate.v3.GetGlossaryRequest getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetGlossaryRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetGlossaryRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetGlossaryRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetGlossaryRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -646,4 +588,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.GetGlossaryRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetGlossaryRequestOrBuilder.java b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetGlossaryRequestOrBuilder.java new file mode 100644 index 00000000..741637e2 --- /dev/null +++ b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetGlossaryRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/translate/v3/translation_service.proto + +package com.google.cloud.translate.v3; + +public interface GetGlossaryRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.GetGlossaryRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the glossary to retrieve.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The name of the glossary to retrieve.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetSupportedLanguagesRequest.java b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetSupportedLanguagesRequest.java similarity index 73% rename from proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetSupportedLanguagesRequest.java rename to owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetSupportedLanguagesRequest.java index d2ee8484..de9521a8 100644 --- a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetSupportedLanguagesRequest.java +++ b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetSupportedLanguagesRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 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/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** - * - * *
  * The request message for discovering supported languages.
  * 
* * Protobuf type {@code google.cloud.translation.v3.GetSupportedLanguagesRequest} */ -public final class GetSupportedLanguagesRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetSupportedLanguagesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.GetSupportedLanguagesRequest) GetSupportedLanguagesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetSupportedLanguagesRequest.newBuilder() to construct. private GetSupportedLanguagesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetSupportedLanguagesRequest() { parent_ = ""; displayLanguageCode_ = ""; @@ -45,15 +27,16 @@ private GetSupportedLanguagesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetSupportedLanguagesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetSupportedLanguagesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,66 +55,59 @@ private GetSupportedLanguagesRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - displayLanguageCode_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + displayLanguageCode_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - model_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + model_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + parent_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_GetSupportedLanguagesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GetSupportedLanguagesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_GetSupportedLanguagesRequest_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GetSupportedLanguagesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.GetSupportedLanguagesRequest.class, - com.google.cloud.translate.v3.GetSupportedLanguagesRequest.Builder.class); + com.google.cloud.translate.v3.GetSupportedLanguagesRequest.class, com.google.cloud.translate.v3.GetSupportedLanguagesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 3; private volatile java.lang.Object parent_; /** - * - * *
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -144,10 +120,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -156,15 +129,14 @@ 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. Project or location to make a call. Must refer to a caller's
    * project.
@@ -177,18 +149,17 @@ public java.lang.String getParent() {
    * otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 3 [(.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 { @@ -199,8 +170,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int DISPLAY_LANGUAGE_CODE_FIELD_NUMBER = 1; private volatile java.lang.Object displayLanguageCode_; /** - * - * *
    * Optional. The language to use to return localized, human readable names
    * of supported languages. If missing, then display names are not returned
@@ -208,7 +177,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string display_language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The displayLanguageCode. */ @java.lang.Override @@ -217,15 +185,14 @@ public java.lang.String getDisplayLanguageCode() { 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(); displayLanguageCode_ = s; return s; } } /** - * - * *
    * Optional. The language to use to return localized, human readable names
    * of supported languages. If missing, then display names are not returned
@@ -233,15 +200,16 @@ public java.lang.String getDisplayLanguageCode() {
    * 
* * string display_language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for displayLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getDisplayLanguageCodeBytes() { + public com.google.protobuf.ByteString + getDisplayLanguageCodeBytes() { java.lang.Object ref = displayLanguageCode_; 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); displayLanguageCode_ = b; return b; } else { @@ -252,8 +220,6 @@ public com.google.protobuf.ByteString getDisplayLanguageCodeBytes() { public static final int MODEL_FIELD_NUMBER = 2; private volatile java.lang.Object model_; /** - * - * *
    * Optional. Get supported languages of this model.
    * The format depends on model type:
@@ -266,7 +232,6 @@ public com.google.protobuf.ByteString getDisplayLanguageCodeBytes() {
    * 
* * string model = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The model. */ @java.lang.Override @@ -275,15 +240,14 @@ public java.lang.String getModel() { 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(); model_ = s; return s; } } /** - * - * *
    * Optional. Get supported languages of this model.
    * The format depends on model type:
@@ -296,15 +260,16 @@ public java.lang.String getModel() {
    * 
* * string model = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for model. */ @java.lang.Override - public com.google.protobuf.ByteString getModelBytes() { + public com.google.protobuf.ByteString + getModelBytes() { java.lang.Object ref = model_; 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); model_ = b; return b; } else { @@ -313,7 +278,6 @@ public com.google.protobuf.ByteString getModelBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -325,14 +289,15 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getDisplayLanguageCodeBytes().isEmpty()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayLanguageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, displayLanguageCode_); } - if (!getModelBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(model_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, model_); } - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, parent_); } unknownFields.writeTo(output); @@ -344,13 +309,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getDisplayLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayLanguageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, displayLanguageCode_); } - if (!getModelBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(model_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, model_); } - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, parent_); } size += unknownFields.getSerializedSize(); @@ -361,17 +326,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.cloud.translate.v3.GetSupportedLanguagesRequest)) { return super.equals(obj); } - com.google.cloud.translate.v3.GetSupportedLanguagesRequest other = - (com.google.cloud.translate.v3.GetSupportedLanguagesRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (!getDisplayLanguageCode().equals(other.getDisplayLanguageCode())) return false; - if (!getModel().equals(other.getModel())) return false; + com.google.cloud.translate.v3.GetSupportedLanguagesRequest other = (com.google.cloud.translate.v3.GetSupportedLanguagesRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (!getDisplayLanguageCode() + .equals(other.getDisplayLanguageCode())) return false; + if (!getModel() + .equals(other.getModel())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -395,127 +362,117 @@ public int hashCode() { } public static com.google.cloud.translate.v3.GetSupportedLanguagesRequest 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.cloud.translate.v3.GetSupportedLanguagesRequest 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.cloud.translate.v3.GetSupportedLanguagesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.GetSupportedLanguagesRequest 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.cloud.translate.v3.GetSupportedLanguagesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.GetSupportedLanguagesRequest 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.cloud.translate.v3.GetSupportedLanguagesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.GetSupportedLanguagesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.GetSupportedLanguagesRequest 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.cloud.translate.v3.GetSupportedLanguagesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.GetSupportedLanguagesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.GetSupportedLanguagesRequest 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.cloud.translate.v3.GetSupportedLanguagesRequest 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.cloud.translate.v3.GetSupportedLanguagesRequest 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.cloud.translate.v3.GetSupportedLanguagesRequest prototype) { + public static Builder newBuilder(com.google.cloud.translate.v3.GetSupportedLanguagesRequest 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 for discovering supported languages.
    * 
* * Protobuf type {@code google.cloud.translation.v3.GetSupportedLanguagesRequest} */ - 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.translation.v3.GetSupportedLanguagesRequest) com.google.cloud.translate.v3.GetSupportedLanguagesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_GetSupportedLanguagesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GetSupportedLanguagesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_GetSupportedLanguagesRequest_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GetSupportedLanguagesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.GetSupportedLanguagesRequest.class, - com.google.cloud.translate.v3.GetSupportedLanguagesRequest.Builder.class); + com.google.cloud.translate.v3.GetSupportedLanguagesRequest.class, com.google.cloud.translate.v3.GetSupportedLanguagesRequest.Builder.class); } // Construct using com.google.cloud.translate.v3.GetSupportedLanguagesRequest.newBuilder() @@ -523,15 +480,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -545,9 +503,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_GetSupportedLanguagesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GetSupportedLanguagesRequest_descriptor; } @java.lang.Override @@ -566,8 +524,7 @@ public com.google.cloud.translate.v3.GetSupportedLanguagesRequest build() { @java.lang.Override public com.google.cloud.translate.v3.GetSupportedLanguagesRequest buildPartial() { - com.google.cloud.translate.v3.GetSupportedLanguagesRequest result = - new com.google.cloud.translate.v3.GetSupportedLanguagesRequest(this); + com.google.cloud.translate.v3.GetSupportedLanguagesRequest result = new com.google.cloud.translate.v3.GetSupportedLanguagesRequest(this); result.parent_ = parent_; result.displayLanguageCode_ = displayLanguageCode_; result.model_ = model_; @@ -579,39 +536,38 @@ public com.google.cloud.translate.v3.GetSupportedLanguagesRequest 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.cloud.translate.v3.GetSupportedLanguagesRequest) { - return mergeFrom((com.google.cloud.translate.v3.GetSupportedLanguagesRequest) other); + return mergeFrom((com.google.cloud.translate.v3.GetSupportedLanguagesRequest)other); } else { super.mergeFrom(other); return this; @@ -619,8 +575,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.GetSupportedLanguagesRequest other) { - if (other == com.google.cloud.translate.v3.GetSupportedLanguagesRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3.GetSupportedLanguagesRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -652,8 +607,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.translate.v3.GetSupportedLanguagesRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.translate.v3.GetSupportedLanguagesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -665,8 +619,6 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -679,16 +631,14 @@ public Builder mergeFrom(
      * otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 3 [(.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; @@ -697,8 +647,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -711,17 +659,16 @@ public java.lang.String getParent() {
      * otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 3 [(.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 { @@ -729,8 +676,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -743,25 +688,21 @@ public com.google.protobuf.ByteString getParentBytes() {
      * otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 3 [(.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) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -774,21 +715,16 @@ public Builder setParent(java.lang.String value) {
      * otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -801,19 +737,17 @@ public Builder clearParent() {
      * otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 3 [(.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) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -821,8 +755,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object displayLanguageCode_ = ""; /** - * - * *
      * Optional. The language to use to return localized, human readable names
      * of supported languages. If missing, then display names are not returned
@@ -830,13 +762,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string display_language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The displayLanguageCode. */ public java.lang.String getDisplayLanguageCode() { java.lang.Object ref = displayLanguageCode_; 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(); displayLanguageCode_ = s; return s; @@ -845,8 +777,6 @@ public java.lang.String getDisplayLanguageCode() { } } /** - * - * *
      * Optional. The language to use to return localized, human readable names
      * of supported languages. If missing, then display names are not returned
@@ -854,14 +784,15 @@ public java.lang.String getDisplayLanguageCode() {
      * 
* * string display_language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for displayLanguageCode. */ - public com.google.protobuf.ByteString getDisplayLanguageCodeBytes() { + public com.google.protobuf.ByteString + getDisplayLanguageCodeBytes() { java.lang.Object ref = displayLanguageCode_; 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); displayLanguageCode_ = b; return b; } else { @@ -869,8 +800,6 @@ public com.google.protobuf.ByteString getDisplayLanguageCodeBytes() { } } /** - * - * *
      * Optional. The language to use to return localized, human readable names
      * of supported languages. If missing, then display names are not returned
@@ -878,22 +807,20 @@ public com.google.protobuf.ByteString getDisplayLanguageCodeBytes() {
      * 
* * string display_language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The displayLanguageCode to set. * @return This builder for chaining. */ - public Builder setDisplayLanguageCode(java.lang.String value) { + public Builder setDisplayLanguageCode( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayLanguageCode_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The language to use to return localized, human readable names
      * of supported languages. If missing, then display names are not returned
@@ -901,18 +828,15 @@ public Builder setDisplayLanguageCode(java.lang.String value) {
      * 
* * string display_language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearDisplayLanguageCode() { - + displayLanguageCode_ = getDefaultInstance().getDisplayLanguageCode(); onChanged(); return this; } /** - * - * *
      * Optional. The language to use to return localized, human readable names
      * of supported languages. If missing, then display names are not returned
@@ -920,16 +844,16 @@ public Builder clearDisplayLanguageCode() {
      * 
* * string display_language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for displayLanguageCode to set. * @return This builder for chaining. */ - public Builder setDisplayLanguageCodeBytes(com.google.protobuf.ByteString value) { + public Builder setDisplayLanguageCodeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayLanguageCode_ = value; onChanged(); return this; @@ -937,8 +861,6 @@ public Builder setDisplayLanguageCodeBytes(com.google.protobuf.ByteString value) private java.lang.Object model_ = ""; /** - * - * *
      * Optional. Get supported languages of this model.
      * The format depends on model type:
@@ -951,13 +873,13 @@ public Builder setDisplayLanguageCodeBytes(com.google.protobuf.ByteString value)
      * 
* * string model = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; 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(); model_ = s; return s; @@ -966,8 +888,6 @@ public java.lang.String getModel() { } } /** - * - * *
      * Optional. Get supported languages of this model.
      * The format depends on model type:
@@ -980,14 +900,15 @@ public java.lang.String getModel() {
      * 
* * string model = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for model. */ - public com.google.protobuf.ByteString getModelBytes() { + public com.google.protobuf.ByteString + getModelBytes() { java.lang.Object ref = model_; 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); model_ = b; return b; } else { @@ -995,8 +916,6 @@ public com.google.protobuf.ByteString getModelBytes() { } } /** - * - * *
      * Optional. Get supported languages of this model.
      * The format depends on model type:
@@ -1009,22 +928,20 @@ public com.google.protobuf.ByteString getModelBytes() {
      * 
* * string model = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The model to set. * @return This builder for chaining. */ - public Builder setModel(java.lang.String value) { + public Builder setModel( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + model_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Get supported languages of this model.
      * The format depends on model type:
@@ -1037,18 +954,15 @@ public Builder setModel(java.lang.String value) {
      * 
* * string model = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearModel() { - + model_ = getDefaultInstance().getModel(); onChanged(); return this; } /** - * - * *
      * Optional. Get supported languages of this model.
      * The format depends on model type:
@@ -1061,23 +975,23 @@ public Builder clearModel() {
      * 
* * string model = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for model to set. * @return This builder for chaining. */ - public Builder setModelBytes(com.google.protobuf.ByteString value) { + public Builder setModelBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + model_ = value; 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); } @@ -1087,12 +1001,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.GetSupportedLanguagesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.GetSupportedLanguagesRequest) private static final com.google.cloud.translate.v3.GetSupportedLanguagesRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.GetSupportedLanguagesRequest(); } @@ -1101,16 +1015,16 @@ public static com.google.cloud.translate.v3.GetSupportedLanguagesRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetSupportedLanguagesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetSupportedLanguagesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetSupportedLanguagesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetSupportedLanguagesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1125,4 +1039,6 @@ public com.google.protobuf.Parser getParserForType public com.google.cloud.translate.v3.GetSupportedLanguagesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetSupportedLanguagesRequestOrBuilder.java b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetSupportedLanguagesRequestOrBuilder.java similarity index 74% rename from proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetSupportedLanguagesRequestOrBuilder.java rename to owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetSupportedLanguagesRequestOrBuilder.java index bcf4d1f7..38a02a92 100644 --- a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetSupportedLanguagesRequestOrBuilder.java +++ b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetSupportedLanguagesRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 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/translate/v3/translation_service.proto package com.google.cloud.translate.v3; -public interface GetSupportedLanguagesRequestOrBuilder - extends +public interface GetSupportedLanguagesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.GetSupportedLanguagesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -38,16 +20,11 @@ public interface GetSupportedLanguagesRequestOrBuilder
    * otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -60,17 +37,13 @@ public interface GetSupportedLanguagesRequestOrBuilder
    * otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 3 [(.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 language to use to return localized, human readable names
    * of supported languages. If missing, then display names are not returned
@@ -78,13 +51,10 @@ public interface GetSupportedLanguagesRequestOrBuilder
    * 
* * string display_language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The displayLanguageCode. */ java.lang.String getDisplayLanguageCode(); /** - * - * *
    * Optional. The language to use to return localized, human readable names
    * of supported languages. If missing, then display names are not returned
@@ -92,14 +62,12 @@ public interface GetSupportedLanguagesRequestOrBuilder
    * 
* * string display_language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for displayLanguageCode. */ - com.google.protobuf.ByteString getDisplayLanguageCodeBytes(); + com.google.protobuf.ByteString + getDisplayLanguageCodeBytes(); /** - * - * *
    * Optional. Get supported languages of this model.
    * The format depends on model type:
@@ -112,13 +80,10 @@ public interface GetSupportedLanguagesRequestOrBuilder
    * 
* * string model = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The model. */ java.lang.String getModel(); /** - * - * *
    * Optional. Get supported languages of this model.
    * The format depends on model type:
@@ -131,8 +96,8 @@ public interface GetSupportedLanguagesRequestOrBuilder
    * 
* * string model = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for model. */ - com.google.protobuf.ByteString getModelBytes(); + com.google.protobuf.ByteString + getModelBytes(); } diff --git a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/Glossary.java b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/Glossary.java similarity index 73% rename from proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/Glossary.java rename to owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/Glossary.java index f4a24008..8f7c2fbe 100644 --- a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/Glossary.java +++ b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/Glossary.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 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/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** - * - * *
  * Represents a glossary built from user provided data.
  * 
* * Protobuf type {@code google.cloud.translation.v3.Glossary} */ -public final class Glossary extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Glossary extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.Glossary) GlossaryOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Glossary.newBuilder() to construct. private Glossary(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Glossary() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Glossary(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Glossary( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,217 +53,180 @@ private Glossary( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; + name_ = s; + break; + } + case 26: { + com.google.cloud.translate.v3.Glossary.LanguageCodePair.Builder subBuilder = null; + if (languagesCase_ == 3) { + subBuilder = ((com.google.cloud.translate.v3.Glossary.LanguageCodePair) languages_).toBuilder(); } - case 26: - { - com.google.cloud.translate.v3.Glossary.LanguageCodePair.Builder subBuilder = null; - if (languagesCase_ == 3) { - subBuilder = - ((com.google.cloud.translate.v3.Glossary.LanguageCodePair) languages_) - .toBuilder(); - } - languages_ = - input.readMessage( - com.google.cloud.translate.v3.Glossary.LanguageCodePair.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.translate.v3.Glossary.LanguageCodePair) languages_); - languages_ = subBuilder.buildPartial(); - } - languagesCase_ = 3; - break; + languages_ = + input.readMessage(com.google.cloud.translate.v3.Glossary.LanguageCodePair.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.translate.v3.Glossary.LanguageCodePair) languages_); + languages_ = subBuilder.buildPartial(); } - case 34: - { - com.google.cloud.translate.v3.Glossary.LanguageCodesSet.Builder subBuilder = null; - if (languagesCase_ == 4) { - subBuilder = - ((com.google.cloud.translate.v3.Glossary.LanguageCodesSet) languages_) - .toBuilder(); - } - languages_ = - input.readMessage( - com.google.cloud.translate.v3.Glossary.LanguageCodesSet.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.translate.v3.Glossary.LanguageCodesSet) languages_); - languages_ = subBuilder.buildPartial(); - } - languagesCase_ = 4; - break; + languagesCase_ = 3; + break; + } + case 34: { + com.google.cloud.translate.v3.Glossary.LanguageCodesSet.Builder subBuilder = null; + if (languagesCase_ == 4) { + subBuilder = ((com.google.cloud.translate.v3.Glossary.LanguageCodesSet) languages_).toBuilder(); } - case 42: - { - com.google.cloud.translate.v3.GlossaryInputConfig.Builder subBuilder = null; - if (inputConfig_ != null) { - subBuilder = inputConfig_.toBuilder(); - } - inputConfig_ = - input.readMessage( - com.google.cloud.translate.v3.GlossaryInputConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(inputConfig_); - inputConfig_ = subBuilder.buildPartial(); - } - - break; + languages_ = + input.readMessage(com.google.cloud.translate.v3.Glossary.LanguageCodesSet.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.translate.v3.Glossary.LanguageCodesSet) languages_); + languages_ = subBuilder.buildPartial(); } - case 48: - { - entryCount_ = input.readInt32(); - break; + languagesCase_ = 4; + break; + } + case 42: { + com.google.cloud.translate.v3.GlossaryInputConfig.Builder subBuilder = null; + if (inputConfig_ != null) { + subBuilder = inputConfig_.toBuilder(); + } + inputConfig_ = input.readMessage(com.google.cloud.translate.v3.GlossaryInputConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(inputConfig_); + inputConfig_ = subBuilder.buildPartial(); } - case 58: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (submitTime_ != null) { - subBuilder = submitTime_.toBuilder(); - } - submitTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(submitTime_); - submitTime_ = subBuilder.buildPartial(); - } - break; + break; + } + case 48: { + + entryCount_ = input.readInt32(); + break; + } + case 58: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (submitTime_ != null) { + subBuilder = submitTime_.toBuilder(); + } + submitTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(submitTime_); + submitTime_ = subBuilder.buildPartial(); } - case 66: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (endTime_ != null) { - subBuilder = endTime_.toBuilder(); - } - endTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(endTime_); - endTime_ = subBuilder.buildPartial(); - } - break; + break; + } + case 66: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (endTime_ != null) { + subBuilder = endTime_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + endTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(endTime_); + endTime_ = subBuilder.buildPartial(); } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_Glossary_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_Glossary_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_Glossary_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_Glossary_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.Glossary.class, - com.google.cloud.translate.v3.Glossary.Builder.class); + com.google.cloud.translate.v3.Glossary.class, com.google.cloud.translate.v3.Glossary.Builder.class); } - public interface LanguageCodePairOrBuilder - extends + public interface LanguageCodePairOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.Glossary.LanguageCodePair) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Required. The BCP-47 language code of the input text, for example,
      * "en-US". Expected to be an exact match for GlossaryTerm.language_code.
      * 
* * string source_language_code = 1; - * * @return The sourceLanguageCode. */ java.lang.String getSourceLanguageCode(); /** - * - * *
      * Required. The BCP-47 language code of the input text, for example,
      * "en-US". Expected to be an exact match for GlossaryTerm.language_code.
      * 
* * string source_language_code = 1; - * * @return The bytes for sourceLanguageCode. */ - com.google.protobuf.ByteString getSourceLanguageCodeBytes(); + com.google.protobuf.ByteString + getSourceLanguageCodeBytes(); /** - * - * *
      * Required. The BCP-47 language code for translation output, for example,
      * "zh-CN". Expected to be an exact match for GlossaryTerm.language_code.
      * 
* * string target_language_code = 2; - * * @return The targetLanguageCode. */ java.lang.String getTargetLanguageCode(); /** - * - * *
      * Required. The BCP-47 language code for translation output, for example,
      * "zh-CN". Expected to be an exact match for GlossaryTerm.language_code.
      * 
* * string target_language_code = 2; - * * @return The bytes for targetLanguageCode. */ - com.google.protobuf.ByteString getTargetLanguageCodeBytes(); + com.google.protobuf.ByteString + getTargetLanguageCodeBytes(); } /** - * - * *
    * Used with unidirectional glossaries.
    * 
* * Protobuf type {@code google.cloud.translation.v3.Glossary.LanguageCodePair} */ - public static final class LanguageCodePair extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class LanguageCodePair extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.Glossary.LanguageCodePair) LanguageCodePairOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use LanguageCodePair.newBuilder() to construct. private LanguageCodePair(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private LanguageCodePair() { sourceLanguageCode_ = ""; targetLanguageCode_ = ""; @@ -288,15 +234,16 @@ private LanguageCodePair() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new LanguageCodePair(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private LanguageCodePair( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -315,66 +262,59 @@ private LanguageCodePair( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - sourceLanguageCode_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + sourceLanguageCode_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - targetLanguageCode_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + targetLanguageCode_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_Glossary_LanguageCodePair_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_Glossary_LanguageCodePair_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_Glossary_LanguageCodePair_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_Glossary_LanguageCodePair_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.Glossary.LanguageCodePair.class, - com.google.cloud.translate.v3.Glossary.LanguageCodePair.Builder.class); + com.google.cloud.translate.v3.Glossary.LanguageCodePair.class, com.google.cloud.translate.v3.Glossary.LanguageCodePair.Builder.class); } public static final int SOURCE_LANGUAGE_CODE_FIELD_NUMBER = 1; private volatile java.lang.Object sourceLanguageCode_; /** - * - * *
      * Required. The BCP-47 language code of the input text, for example,
      * "en-US". Expected to be an exact match for GlossaryTerm.language_code.
      * 
* * string source_language_code = 1; - * * @return The sourceLanguageCode. */ @java.lang.Override @@ -383,30 +323,30 @@ public java.lang.String getSourceLanguageCode() { 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(); sourceLanguageCode_ = s; return s; } } /** - * - * *
      * Required. The BCP-47 language code of the input text, for example,
      * "en-US". Expected to be an exact match for GlossaryTerm.language_code.
      * 
* * string source_language_code = 1; - * * @return The bytes for sourceLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { + public com.google.protobuf.ByteString + getSourceLanguageCodeBytes() { java.lang.Object ref = sourceLanguageCode_; 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); sourceLanguageCode_ = b; return b; } else { @@ -417,15 +357,12 @@ public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { public static final int TARGET_LANGUAGE_CODE_FIELD_NUMBER = 2; private volatile java.lang.Object targetLanguageCode_; /** - * - * *
      * Required. The BCP-47 language code for translation output, for example,
      * "zh-CN". Expected to be an exact match for GlossaryTerm.language_code.
      * 
* * string target_language_code = 2; - * * @return The targetLanguageCode. */ @java.lang.Override @@ -434,30 +371,30 @@ public java.lang.String getTargetLanguageCode() { 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(); targetLanguageCode_ = s; return s; } } /** - * - * *
      * Required. The BCP-47 language code for translation output, for example,
      * "zh-CN". Expected to be an exact match for GlossaryTerm.language_code.
      * 
* * string target_language_code = 2; - * * @return The bytes for targetLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { + public com.google.protobuf.ByteString + getTargetLanguageCodeBytes() { java.lang.Object ref = targetLanguageCode_; 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); targetLanguageCode_ = b; return b; } else { @@ -466,7 +403,6 @@ public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -478,11 +414,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getSourceLanguageCodeBytes().isEmpty()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceLanguageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sourceLanguageCode_); } - if (!getTargetLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetLanguageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, targetLanguageCode_); } unknownFields.writeTo(output); @@ -494,10 +431,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getSourceLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceLanguageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, sourceLanguageCode_); } - if (!getTargetLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetLanguageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, targetLanguageCode_); } size += unknownFields.getSerializedSize(); @@ -508,16 +445,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.cloud.translate.v3.Glossary.LanguageCodePair)) { return super.equals(obj); } - com.google.cloud.translate.v3.Glossary.LanguageCodePair other = - (com.google.cloud.translate.v3.Glossary.LanguageCodePair) obj; + com.google.cloud.translate.v3.Glossary.LanguageCodePair other = (com.google.cloud.translate.v3.Glossary.LanguageCodePair) obj; - if (!getSourceLanguageCode().equals(other.getSourceLanguageCode())) return false; - if (!getTargetLanguageCode().equals(other.getTargetLanguageCode())) return false; + if (!getSourceLanguageCode() + .equals(other.getSourceLanguageCode())) return false; + if (!getTargetLanguageCode() + .equals(other.getTargetLanguageCode())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -539,94 +477,87 @@ public int hashCode() { } public static com.google.cloud.translate.v3.Glossary.LanguageCodePair 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.cloud.translate.v3.Glossary.LanguageCodePair 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.cloud.translate.v3.Glossary.LanguageCodePair parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.Glossary.LanguageCodePair 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.cloud.translate.v3.Glossary.LanguageCodePair parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.Glossary.LanguageCodePair 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.cloud.translate.v3.Glossary.LanguageCodePair parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.Glossary.LanguageCodePair parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.Glossary.LanguageCodePair 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.cloud.translate.v3.Glossary.LanguageCodePair parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.Glossary.LanguageCodePair parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.Glossary.LanguageCodePair 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.cloud.translate.v3.Glossary.LanguageCodePair 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.cloud.translate.v3.Glossary.LanguageCodePair 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.cloud.translate.v3.Glossary.LanguageCodePair prototype) { + public static Builder newBuilder(com.google.cloud.translate.v3.Glossary.LanguageCodePair 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 @@ -636,32 +567,27 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Used with unidirectional glossaries.
      * 
* * Protobuf type {@code google.cloud.translation.v3.Glossary.LanguageCodePair} */ - 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.translation.v3.Glossary.LanguageCodePair) com.google.cloud.translate.v3.Glossary.LanguageCodePairOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_Glossary_LanguageCodePair_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_Glossary_LanguageCodePair_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_Glossary_LanguageCodePair_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_Glossary_LanguageCodePair_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.Glossary.LanguageCodePair.class, - com.google.cloud.translate.v3.Glossary.LanguageCodePair.Builder.class); + com.google.cloud.translate.v3.Glossary.LanguageCodePair.class, com.google.cloud.translate.v3.Glossary.LanguageCodePair.Builder.class); } // Construct using com.google.cloud.translate.v3.Glossary.LanguageCodePair.newBuilder() @@ -669,15 +595,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -689,9 +616,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_Glossary_LanguageCodePair_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_Glossary_LanguageCodePair_descriptor; } @java.lang.Override @@ -710,8 +637,7 @@ public com.google.cloud.translate.v3.Glossary.LanguageCodePair build() { @java.lang.Override public com.google.cloud.translate.v3.Glossary.LanguageCodePair buildPartial() { - com.google.cloud.translate.v3.Glossary.LanguageCodePair result = - new com.google.cloud.translate.v3.Glossary.LanguageCodePair(this); + com.google.cloud.translate.v3.Glossary.LanguageCodePair result = new com.google.cloud.translate.v3.Glossary.LanguageCodePair(this); result.sourceLanguageCode_ = sourceLanguageCode_; result.targetLanguageCode_ = targetLanguageCode_; onBuilt(); @@ -722,41 +648,38 @@ public com.google.cloud.translate.v3.Glossary.LanguageCodePair 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.cloud.translate.v3.Glossary.LanguageCodePair) { - return mergeFrom((com.google.cloud.translate.v3.Glossary.LanguageCodePair) other); + return mergeFrom((com.google.cloud.translate.v3.Glossary.LanguageCodePair)other); } else { super.mergeFrom(other); return this; @@ -764,8 +687,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.Glossary.LanguageCodePair other) { - if (other == com.google.cloud.translate.v3.Glossary.LanguageCodePair.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3.Glossary.LanguageCodePair.getDefaultInstance()) return this; if (!other.getSourceLanguageCode().isEmpty()) { sourceLanguageCode_ = other.sourceLanguageCode_; onChanged(); @@ -793,8 +715,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.translate.v3.Glossary.LanguageCodePair) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.translate.v3.Glossary.LanguageCodePair) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -806,21 +727,19 @@ public Builder mergeFrom( private java.lang.Object sourceLanguageCode_ = ""; /** - * - * *
        * Required. The BCP-47 language code of the input text, for example,
        * "en-US". Expected to be an exact match for GlossaryTerm.language_code.
        * 
* * string source_language_code = 1; - * * @return The sourceLanguageCode. */ public java.lang.String getSourceLanguageCode() { java.lang.Object ref = sourceLanguageCode_; 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(); sourceLanguageCode_ = s; return s; @@ -829,22 +748,21 @@ public java.lang.String getSourceLanguageCode() { } } /** - * - * *
        * Required. The BCP-47 language code of the input text, for example,
        * "en-US". Expected to be an exact match for GlossaryTerm.language_code.
        * 
* * string source_language_code = 1; - * * @return The bytes for sourceLanguageCode. */ - public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { + public com.google.protobuf.ByteString + getSourceLanguageCodeBytes() { java.lang.Object ref = sourceLanguageCode_; 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); sourceLanguageCode_ = b; return b; } else { @@ -852,64 +770,57 @@ public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { } } /** - * - * *
        * Required. The BCP-47 language code of the input text, for example,
        * "en-US". Expected to be an exact match for GlossaryTerm.language_code.
        * 
* * string source_language_code = 1; - * * @param value The sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCode(java.lang.String value) { + public Builder setSourceLanguageCode( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + sourceLanguageCode_ = value; onChanged(); return this; } /** - * - * *
        * Required. The BCP-47 language code of the input text, for example,
        * "en-US". Expected to be an exact match for GlossaryTerm.language_code.
        * 
* * string source_language_code = 1; - * * @return This builder for chaining. */ public Builder clearSourceLanguageCode() { - + sourceLanguageCode_ = getDefaultInstance().getSourceLanguageCode(); onChanged(); return this; } /** - * - * *
        * Required. The BCP-47 language code of the input text, for example,
        * "en-US". Expected to be an exact match for GlossaryTerm.language_code.
        * 
* * string source_language_code = 1; - * * @param value The bytes for sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCodeBytes(com.google.protobuf.ByteString value) { + public Builder setSourceLanguageCodeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceLanguageCode_ = value; onChanged(); return this; @@ -917,21 +828,19 @@ public Builder setSourceLanguageCodeBytes(com.google.protobuf.ByteString value) private java.lang.Object targetLanguageCode_ = ""; /** - * - * *
        * Required. The BCP-47 language code for translation output, for example,
        * "zh-CN". Expected to be an exact match for GlossaryTerm.language_code.
        * 
* * string target_language_code = 2; - * * @return The targetLanguageCode. */ public java.lang.String getTargetLanguageCode() { java.lang.Object ref = targetLanguageCode_; 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(); targetLanguageCode_ = s; return s; @@ -940,22 +849,21 @@ public java.lang.String getTargetLanguageCode() { } } /** - * - * *
        * Required. The BCP-47 language code for translation output, for example,
        * "zh-CN". Expected to be an exact match for GlossaryTerm.language_code.
        * 
* * string target_language_code = 2; - * * @return The bytes for targetLanguageCode. */ - public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { + public com.google.protobuf.ByteString + getTargetLanguageCodeBytes() { java.lang.Object ref = targetLanguageCode_; 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); targetLanguageCode_ = b; return b; } else { @@ -963,69 +871,61 @@ public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { } } /** - * - * *
        * Required. The BCP-47 language code for translation output, for example,
        * "zh-CN". Expected to be an exact match for GlossaryTerm.language_code.
        * 
* * string target_language_code = 2; - * * @param value The targetLanguageCode to set. * @return This builder for chaining. */ - public Builder setTargetLanguageCode(java.lang.String value) { + public Builder setTargetLanguageCode( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + targetLanguageCode_ = value; onChanged(); return this; } /** - * - * *
        * Required. The BCP-47 language code for translation output, for example,
        * "zh-CN". Expected to be an exact match for GlossaryTerm.language_code.
        * 
* * string target_language_code = 2; - * * @return This builder for chaining. */ public Builder clearTargetLanguageCode() { - + targetLanguageCode_ = getDefaultInstance().getTargetLanguageCode(); onChanged(); return this; } /** - * - * *
        * Required. The BCP-47 language code for translation output, for example,
        * "zh-CN". Expected to be an exact match for GlossaryTerm.language_code.
        * 
* * string target_language_code = 2; - * * @param value The bytes for targetLanguageCode to set. * @return This builder for chaining. */ - public Builder setTargetLanguageCodeBytes(com.google.protobuf.ByteString value) { + public Builder setTargetLanguageCodeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + targetLanguageCode_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1038,12 +938,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.Glossary.LanguageCodePair) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.Glossary.LanguageCodePair) private static final com.google.cloud.translate.v3.Glossary.LanguageCodePair DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.Glossary.LanguageCodePair(); } @@ -1052,16 +952,16 @@ public static com.google.cloud.translate.v3.Glossary.LanguageCodePair getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LanguageCodePair parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LanguageCodePair(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LanguageCodePair parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LanguageCodePair(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1076,16 +976,14 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.Glossary.LanguageCodePair getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface LanguageCodesSetOrBuilder - extends + public interface LanguageCodesSetOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.Glossary.LanguageCodesSet) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * The BCP-47 language code(s) for terms defined in the glossary.
      * All entries are unique. The list contains at least two entries.
@@ -1093,13 +991,11 @@ public interface LanguageCodesSetOrBuilder
      * 
* * repeated string language_codes = 1; - * * @return A list containing the languageCodes. */ - java.util.List getLanguageCodesList(); + java.util.List + getLanguageCodesList(); /** - * - * *
      * The BCP-47 language code(s) for terms defined in the glossary.
      * All entries are unique. The list contains at least two entries.
@@ -1107,13 +1003,10 @@ public interface LanguageCodesSetOrBuilder
      * 
* * repeated string language_codes = 1; - * * @return The count of languageCodes. */ int getLanguageCodesCount(); /** - * - * *
      * The BCP-47 language code(s) for terms defined in the glossary.
      * All entries are unique. The list contains at least two entries.
@@ -1121,14 +1014,11 @@ public interface LanguageCodesSetOrBuilder
      * 
* * repeated string language_codes = 1; - * * @param index The index of the element to return. * @return The languageCodes at the given index. */ java.lang.String getLanguageCodes(int index); /** - * - * *
      * The BCP-47 language code(s) for terms defined in the glossary.
      * All entries are unique. The list contains at least two entries.
@@ -1136,46 +1026,44 @@ public interface LanguageCodesSetOrBuilder
      * 
* * repeated string language_codes = 1; - * * @param index The index of the value to return. * @return The bytes of the languageCodes at the given index. */ - com.google.protobuf.ByteString getLanguageCodesBytes(int index); + com.google.protobuf.ByteString + getLanguageCodesBytes(int index); } /** - * - * *
    * Used with equivalent term set glossaries.
    * 
* * Protobuf type {@code google.cloud.translation.v3.Glossary.LanguageCodesSet} */ - public static final class LanguageCodesSet extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class LanguageCodesSet extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.Glossary.LanguageCodesSet) LanguageCodesSetOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use LanguageCodesSet.newBuilder() to construct. private LanguageCodesSet(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private LanguageCodesSet() { languageCodes_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new LanguageCodesSet(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private LanguageCodesSet( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1195,29 +1083,29 @@ private LanguageCodesSet( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - languageCodes_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - languageCodes_.add(s); - break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + languageCodes_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + languageCodes_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { languageCodes_ = languageCodes_.getUnmodifiableView(); @@ -1226,27 +1114,22 @@ private LanguageCodesSet( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_Glossary_LanguageCodesSet_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_Glossary_LanguageCodesSet_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_Glossary_LanguageCodesSet_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_Glossary_LanguageCodesSet_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.Glossary.LanguageCodesSet.class, - com.google.cloud.translate.v3.Glossary.LanguageCodesSet.Builder.class); + com.google.cloud.translate.v3.Glossary.LanguageCodesSet.class, com.google.cloud.translate.v3.Glossary.LanguageCodesSet.Builder.class); } public static final int LANGUAGE_CODES_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList languageCodes_; /** - * - * *
      * The BCP-47 language code(s) for terms defined in the glossary.
      * All entries are unique. The list contains at least two entries.
@@ -1254,15 +1137,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * 
* * repeated string language_codes = 1; - * * @return A list containing the languageCodes. */ - public com.google.protobuf.ProtocolStringList getLanguageCodesList() { + public com.google.protobuf.ProtocolStringList + getLanguageCodesList() { return languageCodes_; } /** - * - * *
      * The BCP-47 language code(s) for terms defined in the glossary.
      * All entries are unique. The list contains at least two entries.
@@ -1270,15 +1151,12 @@ public com.google.protobuf.ProtocolStringList getLanguageCodesList() {
      * 
* * repeated string language_codes = 1; - * * @return The count of languageCodes. */ public int getLanguageCodesCount() { return languageCodes_.size(); } /** - * - * *
      * The BCP-47 language code(s) for terms defined in the glossary.
      * All entries are unique. The list contains at least two entries.
@@ -1286,7 +1164,6 @@ public int getLanguageCodesCount() {
      * 
* * repeated string language_codes = 1; - * * @param index The index of the element to return. * @return The languageCodes at the given index. */ @@ -1294,8 +1171,6 @@ public java.lang.String getLanguageCodes(int index) { return languageCodes_.get(index); } /** - * - * *
      * The BCP-47 language code(s) for terms defined in the glossary.
      * All entries are unique. The list contains at least two entries.
@@ -1303,16 +1178,15 @@ public java.lang.String getLanguageCodes(int index) {
      * 
* * repeated string language_codes = 1; - * * @param index The index of the value to return. * @return The bytes of the languageCodes at the given index. */ - public com.google.protobuf.ByteString getLanguageCodesBytes(int index) { + public com.google.protobuf.ByteString + getLanguageCodesBytes(int index) { return languageCodes_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1324,7 +1198,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 < languageCodes_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, languageCodes_.getRaw(i)); } @@ -1353,15 +1228,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.cloud.translate.v3.Glossary.LanguageCodesSet)) { return super.equals(obj); } - com.google.cloud.translate.v3.Glossary.LanguageCodesSet other = - (com.google.cloud.translate.v3.Glossary.LanguageCodesSet) obj; + com.google.cloud.translate.v3.Glossary.LanguageCodesSet other = (com.google.cloud.translate.v3.Glossary.LanguageCodesSet) obj; - if (!getLanguageCodesList().equals(other.getLanguageCodesList())) return false; + if (!getLanguageCodesList() + .equals(other.getLanguageCodesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1383,94 +1258,87 @@ public int hashCode() { } public static com.google.cloud.translate.v3.Glossary.LanguageCodesSet 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.cloud.translate.v3.Glossary.LanguageCodesSet 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.cloud.translate.v3.Glossary.LanguageCodesSet parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.Glossary.LanguageCodesSet 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.cloud.translate.v3.Glossary.LanguageCodesSet parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.Glossary.LanguageCodesSet 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.cloud.translate.v3.Glossary.LanguageCodesSet parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.Glossary.LanguageCodesSet parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.Glossary.LanguageCodesSet 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.cloud.translate.v3.Glossary.LanguageCodesSet parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.Glossary.LanguageCodesSet parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.Glossary.LanguageCodesSet 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.cloud.translate.v3.Glossary.LanguageCodesSet 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.cloud.translate.v3.Glossary.LanguageCodesSet 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.cloud.translate.v3.Glossary.LanguageCodesSet prototype) { + public static Builder newBuilder(com.google.cloud.translate.v3.Glossary.LanguageCodesSet 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 @@ -1480,32 +1348,27 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Used with equivalent term set glossaries.
      * 
* * Protobuf type {@code google.cloud.translation.v3.Glossary.LanguageCodesSet} */ - 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.translation.v3.Glossary.LanguageCodesSet) com.google.cloud.translate.v3.Glossary.LanguageCodesSetOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_Glossary_LanguageCodesSet_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_Glossary_LanguageCodesSet_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_Glossary_LanguageCodesSet_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_Glossary_LanguageCodesSet_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.Glossary.LanguageCodesSet.class, - com.google.cloud.translate.v3.Glossary.LanguageCodesSet.Builder.class); + com.google.cloud.translate.v3.Glossary.LanguageCodesSet.class, com.google.cloud.translate.v3.Glossary.LanguageCodesSet.Builder.class); } // Construct using com.google.cloud.translate.v3.Glossary.LanguageCodesSet.newBuilder() @@ -1513,15 +1376,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1531,9 +1395,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_Glossary_LanguageCodesSet_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_Glossary_LanguageCodesSet_descriptor; } @java.lang.Override @@ -1552,8 +1416,7 @@ public com.google.cloud.translate.v3.Glossary.LanguageCodesSet build() { @java.lang.Override public com.google.cloud.translate.v3.Glossary.LanguageCodesSet buildPartial() { - com.google.cloud.translate.v3.Glossary.LanguageCodesSet result = - new com.google.cloud.translate.v3.Glossary.LanguageCodesSet(this); + com.google.cloud.translate.v3.Glossary.LanguageCodesSet result = new com.google.cloud.translate.v3.Glossary.LanguageCodesSet(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { languageCodes_ = languageCodes_.getUnmodifiableView(); @@ -1568,41 +1431,38 @@ public com.google.cloud.translate.v3.Glossary.LanguageCodesSet 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.cloud.translate.v3.Glossary.LanguageCodesSet) { - return mergeFrom((com.google.cloud.translate.v3.Glossary.LanguageCodesSet) other); + return mergeFrom((com.google.cloud.translate.v3.Glossary.LanguageCodesSet)other); } else { super.mergeFrom(other); return this; @@ -1610,8 +1470,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.Glossary.LanguageCodesSet other) { - if (other == com.google.cloud.translate.v3.Glossary.LanguageCodesSet.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3.Glossary.LanguageCodesSet.getDefaultInstance()) return this; if (!other.languageCodes_.isEmpty()) { if (languageCodes_.isEmpty()) { languageCodes_ = other.languageCodes_; @@ -1641,8 +1500,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.translate.v3.Glossary.LanguageCodesSet) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.translate.v3.Glossary.LanguageCodesSet) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1651,21 +1509,16 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private com.google.protobuf.LazyStringList languageCodes_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList languageCodes_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureLanguageCodesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { languageCodes_ = new com.google.protobuf.LazyStringArrayList(languageCodes_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
        * The BCP-47 language code(s) for terms defined in the glossary.
        * All entries are unique. The list contains at least two entries.
@@ -1673,15 +1526,13 @@ private void ensureLanguageCodesIsMutable() {
        * 
* * repeated string language_codes = 1; - * * @return A list containing the languageCodes. */ - public com.google.protobuf.ProtocolStringList getLanguageCodesList() { + public com.google.protobuf.ProtocolStringList + getLanguageCodesList() { return languageCodes_.getUnmodifiableView(); } /** - * - * *
        * The BCP-47 language code(s) for terms defined in the glossary.
        * All entries are unique. The list contains at least two entries.
@@ -1689,15 +1540,12 @@ public com.google.protobuf.ProtocolStringList getLanguageCodesList() {
        * 
* * repeated string language_codes = 1; - * * @return The count of languageCodes. */ public int getLanguageCodesCount() { return languageCodes_.size(); } /** - * - * *
        * The BCP-47 language code(s) for terms defined in the glossary.
        * All entries are unique. The list contains at least two entries.
@@ -1705,7 +1553,6 @@ public int getLanguageCodesCount() {
        * 
* * repeated string language_codes = 1; - * * @param index The index of the element to return. * @return The languageCodes at the given index. */ @@ -1713,8 +1560,6 @@ public java.lang.String getLanguageCodes(int index) { return languageCodes_.get(index); } /** - * - * *
        * The BCP-47 language code(s) for terms defined in the glossary.
        * All entries are unique. The list contains at least two entries.
@@ -1722,16 +1567,14 @@ public java.lang.String getLanguageCodes(int index) {
        * 
* * repeated string language_codes = 1; - * * @param index The index of the value to return. * @return The bytes of the languageCodes at the given index. */ - public com.google.protobuf.ByteString getLanguageCodesBytes(int index) { + public com.google.protobuf.ByteString + getLanguageCodesBytes(int index) { return languageCodes_.getByteString(index); } /** - * - * *
        * The BCP-47 language code(s) for terms defined in the glossary.
        * All entries are unique. The list contains at least two entries.
@@ -1739,23 +1582,21 @@ public com.google.protobuf.ByteString getLanguageCodesBytes(int index) {
        * 
* * repeated string language_codes = 1; - * * @param index The index to set the value at. * @param value The languageCodes to set. * @return This builder for chaining. */ - public Builder setLanguageCodes(int index, java.lang.String value) { + public Builder setLanguageCodes( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureLanguageCodesIsMutable(); + throw new NullPointerException(); + } + ensureLanguageCodesIsMutable(); languageCodes_.set(index, value); onChanged(); return this; } /** - * - * *
        * The BCP-47 language code(s) for terms defined in the glossary.
        * All entries are unique. The list contains at least two entries.
@@ -1763,22 +1604,20 @@ public Builder setLanguageCodes(int index, java.lang.String value) {
        * 
* * repeated string language_codes = 1; - * * @param value The languageCodes to add. * @return This builder for chaining. */ - public Builder addLanguageCodes(java.lang.String value) { + public Builder addLanguageCodes( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureLanguageCodesIsMutable(); + throw new NullPointerException(); + } + ensureLanguageCodesIsMutable(); languageCodes_.add(value); onChanged(); return this; } /** - * - * *
        * The BCP-47 language code(s) for terms defined in the glossary.
        * All entries are unique. The list contains at least two entries.
@@ -1786,19 +1625,18 @@ public Builder addLanguageCodes(java.lang.String value) {
        * 
* * repeated string language_codes = 1; - * * @param values The languageCodes to add. * @return This builder for chaining. */ - public Builder addAllLanguageCodes(java.lang.Iterable values) { + public Builder addAllLanguageCodes( + java.lang.Iterable values) { ensureLanguageCodesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, languageCodes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, languageCodes_); onChanged(); return this; } /** - * - * *
        * The BCP-47 language code(s) for terms defined in the glossary.
        * All entries are unique. The list contains at least two entries.
@@ -1806,7 +1644,6 @@ public Builder addAllLanguageCodes(java.lang.Iterable values)
        * 
* * repeated string language_codes = 1; - * * @return This builder for chaining. */ public Builder clearLanguageCodes() { @@ -1816,8 +1653,6 @@ public Builder clearLanguageCodes() { return this; } /** - * - * *
        * The BCP-47 language code(s) for terms defined in the glossary.
        * All entries are unique. The list contains at least two entries.
@@ -1825,21 +1660,20 @@ public Builder clearLanguageCodes() {
        * 
* * repeated string language_codes = 1; - * * @param value The bytes of the languageCodes to add. * @return This builder for chaining. */ - public Builder addLanguageCodesBytes(com.google.protobuf.ByteString value) { + public Builder addLanguageCodesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureLanguageCodesIsMutable(); languageCodes_.add(value); onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1852,12 +1686,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.Glossary.LanguageCodesSet) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.Glossary.LanguageCodesSet) private static final com.google.cloud.translate.v3.Glossary.LanguageCodesSet DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.Glossary.LanguageCodesSet(); } @@ -1866,16 +1700,16 @@ public static com.google.cloud.translate.v3.Glossary.LanguageCodesSet getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LanguageCodesSet parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LanguageCodesSet(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LanguageCodesSet parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LanguageCodesSet(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1890,20 +1724,18 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.Glossary.LanguageCodesSet getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } private int languagesCase_ = 0; private java.lang.Object languages_; - public enum LanguagesCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { LANGUAGE_PAIR(3), LANGUAGE_CODES_SET(4), LANGUAGES_NOT_SET(0); private final int value; - private LanguagesCase(int value) { this.value = value; } @@ -1919,38 +1751,32 @@ public static LanguagesCase valueOf(int value) { public static LanguagesCase forNumber(int value) { switch (value) { - case 3: - return LANGUAGE_PAIR; - case 4: - return LANGUAGE_CODES_SET; - case 0: - return LANGUAGES_NOT_SET; - default: - return null; + case 3: return LANGUAGE_PAIR; + case 4: return LANGUAGE_CODES_SET; + case 0: return LANGUAGES_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public LanguagesCase getLanguagesCase() { - return LanguagesCase.forNumber(languagesCase_); + public LanguagesCase + getLanguagesCase() { + return LanguagesCase.forNumber( + languagesCase_); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The resource name of the glossary. Glossary names have the form
    * `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ @java.lang.Override @@ -1959,30 +1785,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 glossary. Glossary names have the form
    * `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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 { @@ -1992,14 +1818,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int LANGUAGE_PAIR_FIELD_NUMBER = 3; /** - * - * *
    * Used with unidirectional glossaries.
    * 
* * .google.cloud.translation.v3.Glossary.LanguageCodePair language_pair = 3; - * * @return Whether the languagePair field is set. */ @java.lang.Override @@ -2007,26 +1830,21 @@ public boolean hasLanguagePair() { return languagesCase_ == 3; } /** - * - * *
    * Used with unidirectional glossaries.
    * 
* * .google.cloud.translation.v3.Glossary.LanguageCodePair language_pair = 3; - * * @return The languagePair. */ @java.lang.Override public com.google.cloud.translate.v3.Glossary.LanguageCodePair getLanguagePair() { if (languagesCase_ == 3) { - return (com.google.cloud.translate.v3.Glossary.LanguageCodePair) languages_; + return (com.google.cloud.translate.v3.Glossary.LanguageCodePair) languages_; } return com.google.cloud.translate.v3.Glossary.LanguageCodePair.getDefaultInstance(); } /** - * - * *
    * Used with unidirectional glossaries.
    * 
@@ -2034,24 +1852,20 @@ public com.google.cloud.translate.v3.Glossary.LanguageCodePair getLanguagePair() * .google.cloud.translation.v3.Glossary.LanguageCodePair language_pair = 3; */ @java.lang.Override - public com.google.cloud.translate.v3.Glossary.LanguageCodePairOrBuilder - getLanguagePairOrBuilder() { + public com.google.cloud.translate.v3.Glossary.LanguageCodePairOrBuilder getLanguagePairOrBuilder() { if (languagesCase_ == 3) { - return (com.google.cloud.translate.v3.Glossary.LanguageCodePair) languages_; + return (com.google.cloud.translate.v3.Glossary.LanguageCodePair) languages_; } return com.google.cloud.translate.v3.Glossary.LanguageCodePair.getDefaultInstance(); } public static final int LANGUAGE_CODES_SET_FIELD_NUMBER = 4; /** - * - * *
    * Used with equivalent term set glossaries.
    * 
* * .google.cloud.translation.v3.Glossary.LanguageCodesSet language_codes_set = 4; - * * @return Whether the languageCodesSet field is set. */ @java.lang.Override @@ -2059,26 +1873,21 @@ public boolean hasLanguageCodesSet() { return languagesCase_ == 4; } /** - * - * *
    * Used with equivalent term set glossaries.
    * 
* * .google.cloud.translation.v3.Glossary.LanguageCodesSet language_codes_set = 4; - * * @return The languageCodesSet. */ @java.lang.Override public com.google.cloud.translate.v3.Glossary.LanguageCodesSet getLanguageCodesSet() { if (languagesCase_ == 4) { - return (com.google.cloud.translate.v3.Glossary.LanguageCodesSet) languages_; + return (com.google.cloud.translate.v3.Glossary.LanguageCodesSet) languages_; } return com.google.cloud.translate.v3.Glossary.LanguageCodesSet.getDefaultInstance(); } /** - * - * *
    * Used with equivalent term set glossaries.
    * 
@@ -2086,10 +1895,9 @@ public com.google.cloud.translate.v3.Glossary.LanguageCodesSet getLanguageCodesS * .google.cloud.translation.v3.Glossary.LanguageCodesSet language_codes_set = 4; */ @java.lang.Override - public com.google.cloud.translate.v3.Glossary.LanguageCodesSetOrBuilder - getLanguageCodesSetOrBuilder() { + public com.google.cloud.translate.v3.Glossary.LanguageCodesSetOrBuilder getLanguageCodesSetOrBuilder() { if (languagesCase_ == 4) { - return (com.google.cloud.translate.v3.Glossary.LanguageCodesSet) languages_; + return (com.google.cloud.translate.v3.Glossary.LanguageCodesSet) languages_; } return com.google.cloud.translate.v3.Glossary.LanguageCodesSet.getDefaultInstance(); } @@ -2097,15 +1905,12 @@ public com.google.cloud.translate.v3.Glossary.LanguageCodesSet getLanguageCodesS public static final int INPUT_CONFIG_FIELD_NUMBER = 5; private com.google.cloud.translate.v3.GlossaryInputConfig inputConfig_; /** - * - * *
    * Required. Provides examples to build the glossary from.
    * Total glossary must not exceed 10M Unicode codepoints.
    * 
* * .google.cloud.translation.v3.GlossaryInputConfig input_config = 5; - * * @return Whether the inputConfig field is set. */ @java.lang.Override @@ -2113,26 +1918,19 @@ public boolean hasInputConfig() { return inputConfig_ != null; } /** - * - * *
    * Required. Provides examples to build the glossary from.
    * Total glossary must not exceed 10M Unicode codepoints.
    * 
* * .google.cloud.translation.v3.GlossaryInputConfig input_config = 5; - * * @return The inputConfig. */ @java.lang.Override public com.google.cloud.translate.v3.GlossaryInputConfig getInputConfig() { - return inputConfig_ == null - ? com.google.cloud.translate.v3.GlossaryInputConfig.getDefaultInstance() - : inputConfig_; + return inputConfig_ == null ? com.google.cloud.translate.v3.GlossaryInputConfig.getDefaultInstance() : inputConfig_; } /** - * - * *
    * Required. Provides examples to build the glossary from.
    * Total glossary must not exceed 10M Unicode codepoints.
@@ -2148,14 +1946,11 @@ public com.google.cloud.translate.v3.GlossaryInputConfigOrBuilder getInputConfig
   public static final int ENTRY_COUNT_FIELD_NUMBER = 6;
   private int entryCount_;
   /**
-   *
-   *
    * 
    * Output only. The number of entries defined in the glossary.
    * 
* * int32 entry_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The entryCount. */ @java.lang.Override @@ -2166,15 +1961,11 @@ public int getEntryCount() { public static final int SUBMIT_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp submitTime_; /** - * - * *
    * Output only. When CreateGlossary was called.
    * 
* - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the submitTime field is set. */ @java.lang.Override @@ -2182,15 +1973,11 @@ public boolean hasSubmitTime() { return submitTime_ != null; } /** - * - * *
    * Output only. When CreateGlossary was called.
    * 
* - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The submitTime. */ @java.lang.Override @@ -2198,14 +1985,11 @@ public com.google.protobuf.Timestamp getSubmitTime() { return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } /** - * - * *
    * Output only. When CreateGlossary was called.
    * 
* - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { @@ -2215,15 +1999,11 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 8; private com.google.protobuf.Timestamp endTime_; /** - * - * *
    * Output only. When the glossary creation was finished.
    * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ @java.lang.Override @@ -2231,15 +2011,11 @@ public boolean hasEndTime() { return endTime_ != null; } /** - * - * *
    * Output only. When the glossary creation was finished.
    * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ @java.lang.Override @@ -2247,14 +2023,11 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** - * - * *
    * Output only. When the glossary creation was finished.
    * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { @@ -2262,7 +2035,6 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2274,8 +2046,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + 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_); } if (languagesCase_ == 3) { @@ -2305,30 +2078,32 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (languagesCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, (com.google.cloud.translate.v3.Glossary.LanguageCodePair) languages_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (com.google.cloud.translate.v3.Glossary.LanguageCodePair) languages_); } if (languagesCase_ == 4) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 4, (com.google.cloud.translate.v3.Glossary.LanguageCodesSet) languages_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (com.google.cloud.translate.v3.Glossary.LanguageCodesSet) languages_); } if (inputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getInputConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getInputConfig()); } if (entryCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, entryCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(6, entryCount_); } if (submitTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getSubmitTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getSubmitTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getEndTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getEndTime()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2338,34 +2113,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.cloud.translate.v3.Glossary)) { return super.equals(obj); } com.google.cloud.translate.v3.Glossary other = (com.google.cloud.translate.v3.Glossary) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasInputConfig() != other.hasInputConfig()) return false; if (hasInputConfig()) { - if (!getInputConfig().equals(other.getInputConfig())) return false; + if (!getInputConfig() + .equals(other.getInputConfig())) return false; } - if (getEntryCount() != other.getEntryCount()) return false; + if (getEntryCount() + != other.getEntryCount()) return false; if (hasSubmitTime() != other.hasSubmitTime()) return false; if (hasSubmitTime()) { - if (!getSubmitTime().equals(other.getSubmitTime())) return false; + if (!getSubmitTime() + .equals(other.getSubmitTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime().equals(other.getEndTime())) return false; + if (!getEndTime() + .equals(other.getEndTime())) return false; } if (!getLanguagesCase().equals(other.getLanguagesCase())) return false; switch (languagesCase_) { case 3: - if (!getLanguagePair().equals(other.getLanguagePair())) return false; + if (!getLanguagePair() + .equals(other.getLanguagePair())) return false; break; case 4: - if (!getLanguageCodesSet().equals(other.getLanguageCodesSet())) return false; + if (!getLanguageCodesSet() + .equals(other.getLanguageCodesSet())) return false; break; case 0: default: @@ -2414,127 +2196,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.translate.v3.Glossary parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.translate.v3.Glossary parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.Glossary 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.cloud.translate.v3.Glossary parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.Glossary 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.cloud.translate.v3.Glossary parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.Glossary 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.cloud.translate.v3.Glossary 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.cloud.translate.v3.Glossary 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.cloud.translate.v3.Glossary 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.cloud.translate.v3.Glossary 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.cloud.translate.v3.Glossary 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.cloud.translate.v3.Glossary 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.cloud.translate.v3.Glossary 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; } /** - * - * *
    * Represents a glossary built from user provided data.
    * 
* * Protobuf type {@code google.cloud.translation.v3.Glossary} */ - 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.translation.v3.Glossary) com.google.cloud.translate.v3.GlossaryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_Glossary_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_Glossary_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_Glossary_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_Glossary_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.Glossary.class, - com.google.cloud.translate.v3.Glossary.Builder.class); + com.google.cloud.translate.v3.Glossary.class, com.google.cloud.translate.v3.Glossary.Builder.class); } // Construct using com.google.cloud.translate.v3.Glossary.newBuilder() @@ -2542,15 +2315,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -2582,9 +2356,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_Glossary_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_Glossary_descriptor; } @java.lang.Override @@ -2603,8 +2377,7 @@ public com.google.cloud.translate.v3.Glossary build() { @java.lang.Override public com.google.cloud.translate.v3.Glossary buildPartial() { - com.google.cloud.translate.v3.Glossary result = - new com.google.cloud.translate.v3.Glossary(this); + com.google.cloud.translate.v3.Glossary result = new com.google.cloud.translate.v3.Glossary(this); result.name_ = name_; if (languagesCase_ == 3) { if (languagePairBuilder_ == null) { @@ -2645,39 +2418,38 @@ public com.google.cloud.translate.v3.Glossary 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.cloud.translate.v3.Glossary) { - return mergeFrom((com.google.cloud.translate.v3.Glossary) other); + return mergeFrom((com.google.cloud.translate.v3.Glossary)other); } else { super.mergeFrom(other); return this; @@ -2703,20 +2475,17 @@ public Builder mergeFrom(com.google.cloud.translate.v3.Glossary other) { mergeEndTime(other.getEndTime()); } switch (other.getLanguagesCase()) { - case LANGUAGE_PAIR: - { - mergeLanguagePair(other.getLanguagePair()); - break; - } - case LANGUAGE_CODES_SET: - { - mergeLanguageCodesSet(other.getLanguageCodesSet()); - break; - } - case LANGUAGES_NOT_SET: - { - break; - } + case LANGUAGE_PAIR: { + mergeLanguagePair(other.getLanguagePair()); + break; + } + case LANGUAGE_CODES_SET: { + mergeLanguageCodesSet(other.getLanguageCodesSet()); + break; + } + case LANGUAGES_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -2746,12 +2515,12 @@ public Builder mergeFrom( } return this; } - private int languagesCase_ = 0; private java.lang.Object languages_; - - public LanguagesCase getLanguagesCase() { - return LanguagesCase.forNumber(languagesCase_); + public LanguagesCase + getLanguagesCase() { + return LanguagesCase.forNumber( + languagesCase_); } public Builder clearLanguages() { @@ -2761,23 +2530,22 @@ public Builder clearLanguages() { return this; } + private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name of the glossary. Glossary names have the form
      * `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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; @@ -2786,22 +2554,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the glossary. Glossary names have the form
      * `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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 { @@ -2809,83 +2576,70 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the glossary. Glossary names have the form
      * `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the glossary. Glossary names have the form
      * `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The resource name of the glossary. Glossary names have the form
      * `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.Glossary.LanguageCodePair, - com.google.cloud.translate.v3.Glossary.LanguageCodePair.Builder, - com.google.cloud.translate.v3.Glossary.LanguageCodePairOrBuilder> - languagePairBuilder_; + com.google.cloud.translate.v3.Glossary.LanguageCodePair, com.google.cloud.translate.v3.Glossary.LanguageCodePair.Builder, com.google.cloud.translate.v3.Glossary.LanguageCodePairOrBuilder> languagePairBuilder_; /** - * - * *
      * Used with unidirectional glossaries.
      * 
* * .google.cloud.translation.v3.Glossary.LanguageCodePair language_pair = 3; - * * @return Whether the languagePair field is set. */ @java.lang.Override @@ -2893,14 +2647,11 @@ public boolean hasLanguagePair() { return languagesCase_ == 3; } /** - * - * *
      * Used with unidirectional glossaries.
      * 
* * .google.cloud.translation.v3.Glossary.LanguageCodePair language_pair = 3; - * * @return The languagePair. */ @java.lang.Override @@ -2918,8 +2669,6 @@ public com.google.cloud.translate.v3.Glossary.LanguageCodePair getLanguagePair() } } /** - * - * *
      * Used with unidirectional glossaries.
      * 
@@ -2940,8 +2689,6 @@ public Builder setLanguagePair(com.google.cloud.translate.v3.Glossary.LanguageCo return this; } /** - * - * *
      * Used with unidirectional glossaries.
      * 
@@ -2960,25 +2707,18 @@ public Builder setLanguagePair( return this; } /** - * - * *
      * Used with unidirectional glossaries.
      * 
* * .google.cloud.translation.v3.Glossary.LanguageCodePair language_pair = 3; */ - public Builder mergeLanguagePair( - com.google.cloud.translate.v3.Glossary.LanguageCodePair value) { + public Builder mergeLanguagePair(com.google.cloud.translate.v3.Glossary.LanguageCodePair value) { if (languagePairBuilder_ == null) { - if (languagesCase_ == 3 - && languages_ - != com.google.cloud.translate.v3.Glossary.LanguageCodePair.getDefaultInstance()) { - languages_ = - com.google.cloud.translate.v3.Glossary.LanguageCodePair.newBuilder( - (com.google.cloud.translate.v3.Glossary.LanguageCodePair) languages_) - .mergeFrom(value) - .buildPartial(); + if (languagesCase_ == 3 && + languages_ != com.google.cloud.translate.v3.Glossary.LanguageCodePair.getDefaultInstance()) { + languages_ = com.google.cloud.translate.v3.Glossary.LanguageCodePair.newBuilder((com.google.cloud.translate.v3.Glossary.LanguageCodePair) languages_) + .mergeFrom(value).buildPartial(); } else { languages_ = value; } @@ -2993,8 +2733,6 @@ public Builder mergeLanguagePair( return this; } /** - * - * *
      * Used with unidirectional glossaries.
      * 
@@ -3018,21 +2756,16 @@ public Builder clearLanguagePair() { return this; } /** - * - * *
      * Used with unidirectional glossaries.
      * 
* * .google.cloud.translation.v3.Glossary.LanguageCodePair language_pair = 3; */ - public com.google.cloud.translate.v3.Glossary.LanguageCodePair.Builder - getLanguagePairBuilder() { + public com.google.cloud.translate.v3.Glossary.LanguageCodePair.Builder getLanguagePairBuilder() { return getLanguagePairFieldBuilder().getBuilder(); } /** - * - * *
      * Used with unidirectional glossaries.
      * 
@@ -3040,8 +2773,7 @@ public Builder clearLanguagePair() { * .google.cloud.translation.v3.Glossary.LanguageCodePair language_pair = 3; */ @java.lang.Override - public com.google.cloud.translate.v3.Glossary.LanguageCodePairOrBuilder - getLanguagePairOrBuilder() { + public com.google.cloud.translate.v3.Glossary.LanguageCodePairOrBuilder getLanguagePairOrBuilder() { if ((languagesCase_ == 3) && (languagePairBuilder_ != null)) { return languagePairBuilder_.getMessageOrBuilder(); } else { @@ -3052,8 +2784,6 @@ public Builder clearLanguagePair() { } } /** - * - * *
      * Used with unidirectional glossaries.
      * 
@@ -3061,44 +2791,32 @@ public Builder clearLanguagePair() { * .google.cloud.translation.v3.Glossary.LanguageCodePair language_pair = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.Glossary.LanguageCodePair, - com.google.cloud.translate.v3.Glossary.LanguageCodePair.Builder, - com.google.cloud.translate.v3.Glossary.LanguageCodePairOrBuilder> + com.google.cloud.translate.v3.Glossary.LanguageCodePair, com.google.cloud.translate.v3.Glossary.LanguageCodePair.Builder, com.google.cloud.translate.v3.Glossary.LanguageCodePairOrBuilder> getLanguagePairFieldBuilder() { if (languagePairBuilder_ == null) { if (!(languagesCase_ == 3)) { languages_ = com.google.cloud.translate.v3.Glossary.LanguageCodePair.getDefaultInstance(); } - languagePairBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.Glossary.LanguageCodePair, - com.google.cloud.translate.v3.Glossary.LanguageCodePair.Builder, - com.google.cloud.translate.v3.Glossary.LanguageCodePairOrBuilder>( + languagePairBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3.Glossary.LanguageCodePair, com.google.cloud.translate.v3.Glossary.LanguageCodePair.Builder, com.google.cloud.translate.v3.Glossary.LanguageCodePairOrBuilder>( (com.google.cloud.translate.v3.Glossary.LanguageCodePair) languages_, getParentForChildren(), isClean()); languages_ = null; } languagesCase_ = 3; - onChanged(); - ; + onChanged();; return languagePairBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.Glossary.LanguageCodesSet, - com.google.cloud.translate.v3.Glossary.LanguageCodesSet.Builder, - com.google.cloud.translate.v3.Glossary.LanguageCodesSetOrBuilder> - languageCodesSetBuilder_; + com.google.cloud.translate.v3.Glossary.LanguageCodesSet, com.google.cloud.translate.v3.Glossary.LanguageCodesSet.Builder, com.google.cloud.translate.v3.Glossary.LanguageCodesSetOrBuilder> languageCodesSetBuilder_; /** - * - * *
      * Used with equivalent term set glossaries.
      * 
* * .google.cloud.translation.v3.Glossary.LanguageCodesSet language_codes_set = 4; - * * @return Whether the languageCodesSet field is set. */ @java.lang.Override @@ -3106,14 +2824,11 @@ public boolean hasLanguageCodesSet() { return languagesCase_ == 4; } /** - * - * *
      * Used with equivalent term set glossaries.
      * 
* * .google.cloud.translation.v3.Glossary.LanguageCodesSet language_codes_set = 4; - * * @return The languageCodesSet. */ @java.lang.Override @@ -3131,16 +2846,13 @@ public com.google.cloud.translate.v3.Glossary.LanguageCodesSet getLanguageCodesS } } /** - * - * *
      * Used with equivalent term set glossaries.
      * 
* * .google.cloud.translation.v3.Glossary.LanguageCodesSet language_codes_set = 4; */ - public Builder setLanguageCodesSet( - com.google.cloud.translate.v3.Glossary.LanguageCodesSet value) { + public Builder setLanguageCodesSet(com.google.cloud.translate.v3.Glossary.LanguageCodesSet value) { if (languageCodesSetBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3154,8 +2866,6 @@ public Builder setLanguageCodesSet( return this; } /** - * - * *
      * Used with equivalent term set glossaries.
      * 
@@ -3174,25 +2884,18 @@ public Builder setLanguageCodesSet( return this; } /** - * - * *
      * Used with equivalent term set glossaries.
      * 
* * .google.cloud.translation.v3.Glossary.LanguageCodesSet language_codes_set = 4; */ - public Builder mergeLanguageCodesSet( - com.google.cloud.translate.v3.Glossary.LanguageCodesSet value) { + public Builder mergeLanguageCodesSet(com.google.cloud.translate.v3.Glossary.LanguageCodesSet value) { if (languageCodesSetBuilder_ == null) { - if (languagesCase_ == 4 - && languages_ - != com.google.cloud.translate.v3.Glossary.LanguageCodesSet.getDefaultInstance()) { - languages_ = - com.google.cloud.translate.v3.Glossary.LanguageCodesSet.newBuilder( - (com.google.cloud.translate.v3.Glossary.LanguageCodesSet) languages_) - .mergeFrom(value) - .buildPartial(); + if (languagesCase_ == 4 && + languages_ != com.google.cloud.translate.v3.Glossary.LanguageCodesSet.getDefaultInstance()) { + languages_ = com.google.cloud.translate.v3.Glossary.LanguageCodesSet.newBuilder((com.google.cloud.translate.v3.Glossary.LanguageCodesSet) languages_) + .mergeFrom(value).buildPartial(); } else { languages_ = value; } @@ -3207,8 +2910,6 @@ public Builder mergeLanguageCodesSet( return this; } /** - * - * *
      * Used with equivalent term set glossaries.
      * 
@@ -3232,21 +2933,16 @@ public Builder clearLanguageCodesSet() { return this; } /** - * - * *
      * Used with equivalent term set glossaries.
      * 
* * .google.cloud.translation.v3.Glossary.LanguageCodesSet language_codes_set = 4; */ - public com.google.cloud.translate.v3.Glossary.LanguageCodesSet.Builder - getLanguageCodesSetBuilder() { + public com.google.cloud.translate.v3.Glossary.LanguageCodesSet.Builder getLanguageCodesSetBuilder() { return getLanguageCodesSetFieldBuilder().getBuilder(); } /** - * - * *
      * Used with equivalent term set glossaries.
      * 
@@ -3254,8 +2950,7 @@ public Builder clearLanguageCodesSet() { * .google.cloud.translation.v3.Glossary.LanguageCodesSet language_codes_set = 4; */ @java.lang.Override - public com.google.cloud.translate.v3.Glossary.LanguageCodesSetOrBuilder - getLanguageCodesSetOrBuilder() { + public com.google.cloud.translate.v3.Glossary.LanguageCodesSetOrBuilder getLanguageCodesSetOrBuilder() { if ((languagesCase_ == 4) && (languageCodesSetBuilder_ != null)) { return languageCodesSetBuilder_.getMessageOrBuilder(); } else { @@ -3266,8 +2961,6 @@ public Builder clearLanguageCodesSet() { } } /** - * - * *
      * Used with equivalent term set glossaries.
      * 
@@ -3275,75 +2968,56 @@ public Builder clearLanguageCodesSet() { * .google.cloud.translation.v3.Glossary.LanguageCodesSet language_codes_set = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.Glossary.LanguageCodesSet, - com.google.cloud.translate.v3.Glossary.LanguageCodesSet.Builder, - com.google.cloud.translate.v3.Glossary.LanguageCodesSetOrBuilder> + com.google.cloud.translate.v3.Glossary.LanguageCodesSet, com.google.cloud.translate.v3.Glossary.LanguageCodesSet.Builder, com.google.cloud.translate.v3.Glossary.LanguageCodesSetOrBuilder> getLanguageCodesSetFieldBuilder() { if (languageCodesSetBuilder_ == null) { if (!(languagesCase_ == 4)) { languages_ = com.google.cloud.translate.v3.Glossary.LanguageCodesSet.getDefaultInstance(); } - languageCodesSetBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.Glossary.LanguageCodesSet, - com.google.cloud.translate.v3.Glossary.LanguageCodesSet.Builder, - com.google.cloud.translate.v3.Glossary.LanguageCodesSetOrBuilder>( + languageCodesSetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3.Glossary.LanguageCodesSet, com.google.cloud.translate.v3.Glossary.LanguageCodesSet.Builder, com.google.cloud.translate.v3.Glossary.LanguageCodesSetOrBuilder>( (com.google.cloud.translate.v3.Glossary.LanguageCodesSet) languages_, getParentForChildren(), isClean()); languages_ = null; } languagesCase_ = 4; - onChanged(); - ; + onChanged();; return languageCodesSetBuilder_; } private com.google.cloud.translate.v3.GlossaryInputConfig inputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.GlossaryInputConfig, - com.google.cloud.translate.v3.GlossaryInputConfig.Builder, - com.google.cloud.translate.v3.GlossaryInputConfigOrBuilder> - inputConfigBuilder_; + com.google.cloud.translate.v3.GlossaryInputConfig, com.google.cloud.translate.v3.GlossaryInputConfig.Builder, com.google.cloud.translate.v3.GlossaryInputConfigOrBuilder> inputConfigBuilder_; /** - * - * *
      * Required. Provides examples to build the glossary from.
      * Total glossary must not exceed 10M Unicode codepoints.
      * 
* * .google.cloud.translation.v3.GlossaryInputConfig input_config = 5; - * * @return Whether the inputConfig field is set. */ public boolean hasInputConfig() { return inputConfigBuilder_ != null || inputConfig_ != null; } /** - * - * *
      * Required. Provides examples to build the glossary from.
      * Total glossary must not exceed 10M Unicode codepoints.
      * 
* * .google.cloud.translation.v3.GlossaryInputConfig input_config = 5; - * * @return The inputConfig. */ public com.google.cloud.translate.v3.GlossaryInputConfig getInputConfig() { if (inputConfigBuilder_ == null) { - return inputConfig_ == null - ? com.google.cloud.translate.v3.GlossaryInputConfig.getDefaultInstance() - : inputConfig_; + return inputConfig_ == null ? com.google.cloud.translate.v3.GlossaryInputConfig.getDefaultInstance() : inputConfig_; } else { return inputConfigBuilder_.getMessage(); } } /** - * - * *
      * Required. Provides examples to build the glossary from.
      * Total glossary must not exceed 10M Unicode codepoints.
@@ -3365,8 +3039,6 @@ public Builder setInputConfig(com.google.cloud.translate.v3.GlossaryInputConfig
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. Provides examples to build the glossary from.
      * Total glossary must not exceed 10M Unicode codepoints.
@@ -3386,8 +3058,6 @@ public Builder setInputConfig(
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. Provides examples to build the glossary from.
      * Total glossary must not exceed 10M Unicode codepoints.
@@ -3399,9 +3069,7 @@ public Builder mergeInputConfig(com.google.cloud.translate.v3.GlossaryInputConfi
       if (inputConfigBuilder_ == null) {
         if (inputConfig_ != null) {
           inputConfig_ =
-              com.google.cloud.translate.v3.GlossaryInputConfig.newBuilder(inputConfig_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.translate.v3.GlossaryInputConfig.newBuilder(inputConfig_).mergeFrom(value).buildPartial();
         } else {
           inputConfig_ = value;
         }
@@ -3413,8 +3081,6 @@ public Builder mergeInputConfig(com.google.cloud.translate.v3.GlossaryInputConfi
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. Provides examples to build the glossary from.
      * Total glossary must not exceed 10M Unicode codepoints.
@@ -3434,8 +3100,6 @@ public Builder clearInputConfig() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. Provides examples to build the glossary from.
      * Total glossary must not exceed 10M Unicode codepoints.
@@ -3444,13 +3108,11 @@ public Builder clearInputConfig() {
      * .google.cloud.translation.v3.GlossaryInputConfig input_config = 5;
      */
     public com.google.cloud.translate.v3.GlossaryInputConfig.Builder getInputConfigBuilder() {
-
+      
       onChanged();
       return getInputConfigFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Required. Provides examples to build the glossary from.
      * Total glossary must not exceed 10M Unicode codepoints.
@@ -3462,14 +3124,11 @@ public com.google.cloud.translate.v3.GlossaryInputConfigOrBuilder getInputConfig
       if (inputConfigBuilder_ != null) {
         return inputConfigBuilder_.getMessageOrBuilder();
       } else {
-        return inputConfig_ == null
-            ? com.google.cloud.translate.v3.GlossaryInputConfig.getDefaultInstance()
-            : inputConfig_;
+        return inputConfig_ == null ?
+            com.google.cloud.translate.v3.GlossaryInputConfig.getDefaultInstance() : inputConfig_;
       }
     }
     /**
-     *
-     *
      * 
      * Required. Provides examples to build the glossary from.
      * Total glossary must not exceed 10M Unicode codepoints.
@@ -3478,32 +3137,26 @@ public com.google.cloud.translate.v3.GlossaryInputConfigOrBuilder getInputConfig
      * .google.cloud.translation.v3.GlossaryInputConfig input_config = 5;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.translate.v3.GlossaryInputConfig,
-            com.google.cloud.translate.v3.GlossaryInputConfig.Builder,
-            com.google.cloud.translate.v3.GlossaryInputConfigOrBuilder>
+        com.google.cloud.translate.v3.GlossaryInputConfig, com.google.cloud.translate.v3.GlossaryInputConfig.Builder, com.google.cloud.translate.v3.GlossaryInputConfigOrBuilder> 
         getInputConfigFieldBuilder() {
       if (inputConfigBuilder_ == null) {
-        inputConfigBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.translate.v3.GlossaryInputConfig,
-                com.google.cloud.translate.v3.GlossaryInputConfig.Builder,
-                com.google.cloud.translate.v3.GlossaryInputConfigOrBuilder>(
-                getInputConfig(), getParentForChildren(), isClean());
+        inputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.translate.v3.GlossaryInputConfig, com.google.cloud.translate.v3.GlossaryInputConfig.Builder, com.google.cloud.translate.v3.GlossaryInputConfigOrBuilder>(
+                getInputConfig(),
+                getParentForChildren(),
+                isClean());
         inputConfig_ = null;
       }
       return inputConfigBuilder_;
     }
 
-    private int entryCount_;
+    private int entryCount_ ;
     /**
-     *
-     *
      * 
      * Output only. The number of entries defined in the glossary.
      * 
* * int32 entry_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The entryCount. */ @java.lang.Override @@ -3511,36 +3164,30 @@ public int getEntryCount() { return entryCount_; } /** - * - * *
      * Output only. The number of entries defined in the glossary.
      * 
* * int32 entry_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The entryCount to set. * @return This builder for chaining. */ public Builder setEntryCount(int value) { - + entryCount_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The number of entries defined in the glossary.
      * 
* * int32 entry_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearEntryCount() { - + entryCount_ = 0; onChanged(); return this; @@ -3548,58 +3195,39 @@ public Builder clearEntryCount() { private com.google.protobuf.Timestamp submitTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - submitTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> submitTimeBuilder_; /** - * - * *
      * Output only. When CreateGlossary was called.
      * 
* - * - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the submitTime field is set. */ public boolean hasSubmitTime() { return submitTimeBuilder_ != null || submitTime_ != null; } /** - * - * *
      * Output only. When CreateGlossary was called.
      * 
* - * - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The submitTime. */ public com.google.protobuf.Timestamp getSubmitTime() { if (submitTimeBuilder_ == null) { - return submitTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : submitTime_; + return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } else { return submitTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. When CreateGlossary was called.
      * 
* - * - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setSubmitTime(com.google.protobuf.Timestamp value) { if (submitTimeBuilder_ == null) { @@ -3615,17 +3243,14 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. When CreateGlossary was called.
      * 
* - * - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setSubmitTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (submitTimeBuilder_ == null) { submitTime_ = builderForValue.build(); onChanged(); @@ -3636,21 +3261,17 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. When CreateGlossary was called.
      * 
* - * - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { if (submitTimeBuilder_ == null) { if (submitTime_ != null) { submitTime_ = - com.google.protobuf.Timestamp.newBuilder(submitTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(submitTime_).mergeFrom(value).buildPartial(); } else { submitTime_ = value; } @@ -3662,15 +3283,11 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. When CreateGlossary was called.
      * 
* - * - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearSubmitTime() { if (submitTimeBuilder_ == null) { @@ -3684,64 +3301,48 @@ public Builder clearSubmitTime() { return this; } /** - * - * *
      * Output only. When CreateGlossary was called.
      * 
* - * - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder() { - + onChanged(); return getSubmitTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. When CreateGlossary was called.
      * 
* - * - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { if (submitTimeBuilder_ != null) { return submitTimeBuilder_.getMessageOrBuilder(); } else { - return submitTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : submitTime_; + return submitTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } } /** - * - * *
      * Output only. When CreateGlossary was called.
      * 
* - * - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp submit_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> getSubmitTimeFieldBuilder() { if (submitTimeBuilder_ == null) { - submitTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getSubmitTime(), getParentForChildren(), isClean()); + submitTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getSubmitTime(), + getParentForChildren(), + isClean()); submitTime_ = null; } return submitTimeBuilder_; @@ -3749,35 +3350,24 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - endTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; /** - * - * *
      * Output only. When the glossary creation was finished.
      * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; } /** - * - * *
      * Output only. When the glossary creation was finished.
      * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -3788,14 +3378,11 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** - * - * *
      * Output only. When the glossary creation was finished.
      * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { @@ -3811,16 +3398,14 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. When the glossary creation was finished.
      * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); onChanged(); @@ -3831,20 +3416,17 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) return this; } /** - * - * *
      * Output only. When the glossary creation was finished.
      * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { if (endTime_ != null) { endTime_ = - com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); } else { endTime_ = value; } @@ -3856,14 +3438,11 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. When the glossary creation was finished.
      * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearEndTime() { if (endTimeBuilder_ == null) { @@ -3877,66 +3456,55 @@ public Builder clearEndTime() { return this; } /** - * - * *
      * Output only. When the glossary creation was finished.
      * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { - + onChanged(); return getEndTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. When the glossary creation was finished.
      * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { if (endTimeBuilder_ != null) { return endTimeBuilder_.getMessageOrBuilder(); } else { - return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + return endTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } } /** - * - * *
      * Output only. When the glossary creation was finished.
      * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 8 [(.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> getEndTimeFieldBuilder() { if (endTimeBuilder_ == null) { - endTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getEndTime(), getParentForChildren(), isClean()); + endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getEndTime(), + getParentForChildren(), + isClean()); endTime_ = null; } return endTimeBuilder_; } - @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); } @@ -3946,12 +3514,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.Glossary) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.Glossary) private static final com.google.cloud.translate.v3.Glossary DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.Glossary(); } @@ -3960,16 +3528,16 @@ public static com.google.cloud.translate.v3.Glossary getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Glossary parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Glossary(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Glossary parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Glossary(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3984,4 +3552,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.Glossary getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryInputConfig.java b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryInputConfig.java similarity index 78% rename from proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryInputConfig.java rename to owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryInputConfig.java index 3f94cc2e..314f8379 100644 --- a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryInputConfig.java +++ b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryInputConfig.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 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/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** - * - * *
  * Input configuration for glossaries.
  * 
* * Protobuf type {@code google.cloud.translation.v3.GlossaryInputConfig} */ -public final class GlossaryInputConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GlossaryInputConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.GlossaryInputConfig) GlossaryInputConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GlossaryInputConfig.newBuilder() to construct. private GlossaryInputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private GlossaryInputConfig() {} + private GlossaryInputConfig() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GlossaryInputConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GlossaryInputConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,67 +52,60 @@ private GlossaryInputConfig( case 0: done = true; break; - case 10: - { - com.google.cloud.translate.v3.GcsSource.Builder subBuilder = null; - if (sourceCase_ == 1) { - subBuilder = ((com.google.cloud.translate.v3.GcsSource) source_).toBuilder(); - } - source_ = - input.readMessage( - com.google.cloud.translate.v3.GcsSource.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.translate.v3.GcsSource) source_); - source_ = subBuilder.buildPartial(); - } - sourceCase_ = 1; - break; + case 10: { + com.google.cloud.translate.v3.GcsSource.Builder subBuilder = null; + if (sourceCase_ == 1) { + subBuilder = ((com.google.cloud.translate.v3.GcsSource) source_).toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + source_ = + input.readMessage(com.google.cloud.translate.v3.GcsSource.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.translate.v3.GcsSource) source_); + source_ = subBuilder.buildPartial(); } + sourceCase_ = 1; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_GlossaryInputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GlossaryInputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_GlossaryInputConfig_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GlossaryInputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.GlossaryInputConfig.class, - com.google.cloud.translate.v3.GlossaryInputConfig.Builder.class); + com.google.cloud.translate.v3.GlossaryInputConfig.class, com.google.cloud.translate.v3.GlossaryInputConfig.Builder.class); } private int sourceCase_ = 0; private java.lang.Object source_; - public enum SourceCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_SOURCE(1), SOURCE_NOT_SET(0); private final int value; - private SourceCase(int value) { this.value = value; } @@ -144,28 +121,24 @@ public static SourceCase valueOf(int value) { public static SourceCase forNumber(int value) { switch (value) { - case 1: - return GCS_SOURCE; - case 0: - return SOURCE_NOT_SET; - default: - return null; + case 1: return GCS_SOURCE; + case 0: return SOURCE_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public SourceCase getSourceCase() { - return SourceCase.forNumber(sourceCase_); + public SourceCase + getSourceCase() { + return SourceCase.forNumber( + sourceCase_); } public static final int GCS_SOURCE_FIELD_NUMBER = 1; /** - * - * *
    * Required. Google Cloud Storage location of glossary data.
    * File format is determined based on the filename extension. API returns
@@ -186,7 +159,6 @@ public SourceCase getSourceCase() {
    * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 1; - * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -194,8 +166,6 @@ public boolean hasGcsSource() { return sourceCase_ == 1; } /** - * - * *
    * Required. Google Cloud Storage location of glossary data.
    * File format is determined based on the filename extension. API returns
@@ -216,19 +186,16 @@ public boolean hasGcsSource() {
    * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 1; - * * @return The gcsSource. */ @java.lang.Override public com.google.cloud.translate.v3.GcsSource getGcsSource() { if (sourceCase_ == 1) { - return (com.google.cloud.translate.v3.GcsSource) source_; + return (com.google.cloud.translate.v3.GcsSource) source_; } return com.google.cloud.translate.v3.GcsSource.getDefaultInstance(); } /** - * - * *
    * Required. Google Cloud Storage location of glossary data.
    * File format is determined based on the filename extension. API returns
@@ -253,13 +220,12 @@ public com.google.cloud.translate.v3.GcsSource getGcsSource() {
   @java.lang.Override
   public com.google.cloud.translate.v3.GcsSourceOrBuilder getGcsSourceOrBuilder() {
     if (sourceCase_ == 1) {
-      return (com.google.cloud.translate.v3.GcsSource) source_;
+       return (com.google.cloud.translate.v3.GcsSource) source_;
     }
     return com.google.cloud.translate.v3.GcsSource.getDefaultInstance();
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -271,7 +237,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 (sourceCase_ == 1) {
       output.writeMessage(1, (com.google.cloud.translate.v3.GcsSource) source_);
     }
@@ -285,9 +252,8 @@ public int getSerializedSize() {
 
     size = 0;
     if (sourceCase_ == 1) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              1, (com.google.cloud.translate.v3.GcsSource) source_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, (com.google.cloud.translate.v3.GcsSource) source_);
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -297,18 +263,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.cloud.translate.v3.GlossaryInputConfig)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3.GlossaryInputConfig other =
-        (com.google.cloud.translate.v3.GlossaryInputConfig) obj;
+    com.google.cloud.translate.v3.GlossaryInputConfig other = (com.google.cloud.translate.v3.GlossaryInputConfig) obj;
 
     if (!getSourceCase().equals(other.getSourceCase())) return false;
     switch (sourceCase_) {
       case 1:
-        if (!getGcsSource().equals(other.getGcsSource())) return false;
+        if (!getGcsSource()
+            .equals(other.getGcsSource())) return false;
         break;
       case 0:
       default:
@@ -338,126 +304,117 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3.GlossaryInputConfig 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.cloud.translate.v3.GlossaryInputConfig 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.cloud.translate.v3.GlossaryInputConfig parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3.GlossaryInputConfig 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.cloud.translate.v3.GlossaryInputConfig parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3.GlossaryInputConfig 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.cloud.translate.v3.GlossaryInputConfig parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3.GlossaryInputConfig parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3.GlossaryInputConfig 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.cloud.translate.v3.GlossaryInputConfig parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3.GlossaryInputConfig parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3.GlossaryInputConfig 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.cloud.translate.v3.GlossaryInputConfig 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.cloud.translate.v3.GlossaryInputConfig 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.cloud.translate.v3.GlossaryInputConfig 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;
   }
   /**
-   *
-   *
    * 
    * Input configuration for glossaries.
    * 
* * Protobuf type {@code google.cloud.translation.v3.GlossaryInputConfig} */ - 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.translation.v3.GlossaryInputConfig) com.google.cloud.translate.v3.GlossaryInputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_GlossaryInputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GlossaryInputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_GlossaryInputConfig_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GlossaryInputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.GlossaryInputConfig.class, - com.google.cloud.translate.v3.GlossaryInputConfig.Builder.class); + com.google.cloud.translate.v3.GlossaryInputConfig.class, com.google.cloud.translate.v3.GlossaryInputConfig.Builder.class); } // Construct using com.google.cloud.translate.v3.GlossaryInputConfig.newBuilder() @@ -465,15 +422,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -483,9 +441,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_GlossaryInputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GlossaryInputConfig_descriptor; } @java.lang.Override @@ -504,8 +462,7 @@ public com.google.cloud.translate.v3.GlossaryInputConfig build() { @java.lang.Override public com.google.cloud.translate.v3.GlossaryInputConfig buildPartial() { - com.google.cloud.translate.v3.GlossaryInputConfig result = - new com.google.cloud.translate.v3.GlossaryInputConfig(this); + com.google.cloud.translate.v3.GlossaryInputConfig result = new com.google.cloud.translate.v3.GlossaryInputConfig(this); if (sourceCase_ == 1) { if (gcsSourceBuilder_ == null) { result.source_ = source_; @@ -522,39 +479,38 @@ public com.google.cloud.translate.v3.GlossaryInputConfig 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.cloud.translate.v3.GlossaryInputConfig) { - return mergeFrom((com.google.cloud.translate.v3.GlossaryInputConfig) other); + return mergeFrom((com.google.cloud.translate.v3.GlossaryInputConfig)other); } else { super.mergeFrom(other); return this; @@ -562,18 +518,15 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.GlossaryInputConfig other) { - if (other == com.google.cloud.translate.v3.GlossaryInputConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3.GlossaryInputConfig.getDefaultInstance()) return this; switch (other.getSourceCase()) { - case GCS_SOURCE: - { - mergeGcsSource(other.getGcsSource()); - break; - } - case SOURCE_NOT_SET: - { - break; - } + case GCS_SOURCE: { + mergeGcsSource(other.getGcsSource()); + break; + } + case SOURCE_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -594,8 +547,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.translate.v3.GlossaryInputConfig) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.translate.v3.GlossaryInputConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -604,12 +556,12 @@ public Builder mergeFrom( } return this; } - private int sourceCase_ = 0; private java.lang.Object source_; - - public SourceCase getSourceCase() { - return SourceCase.forNumber(sourceCase_); + public SourceCase + getSourceCase() { + return SourceCase.forNumber( + sourceCase_); } public Builder clearSource() { @@ -619,14 +571,10 @@ public Builder clearSource() { return this; } + private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.GcsSource, - com.google.cloud.translate.v3.GcsSource.Builder, - com.google.cloud.translate.v3.GcsSourceOrBuilder> - gcsSourceBuilder_; + com.google.cloud.translate.v3.GcsSource, com.google.cloud.translate.v3.GcsSource.Builder, com.google.cloud.translate.v3.GcsSourceOrBuilder> gcsSourceBuilder_; /** - * - * *
      * Required. Google Cloud Storage location of glossary data.
      * File format is determined based on the filename extension. API returns
@@ -647,7 +595,6 @@ public Builder clearSource() {
      * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 1; - * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -655,8 +602,6 @@ public boolean hasGcsSource() { return sourceCase_ == 1; } /** - * - * *
      * Required. Google Cloud Storage location of glossary data.
      * File format is determined based on the filename extension. API returns
@@ -677,7 +622,6 @@ public boolean hasGcsSource() {
      * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 1; - * * @return The gcsSource. */ @java.lang.Override @@ -695,8 +639,6 @@ public com.google.cloud.translate.v3.GcsSource getGcsSource() { } } /** - * - * *
      * Required. Google Cloud Storage location of glossary data.
      * File format is determined based on the filename extension. API returns
@@ -732,8 +674,6 @@ public Builder setGcsSource(com.google.cloud.translate.v3.GcsSource value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. Google Cloud Storage location of glossary data.
      * File format is determined based on the filename extension. API returns
@@ -755,7 +695,8 @@ public Builder setGcsSource(com.google.cloud.translate.v3.GcsSource value) {
      *
      * .google.cloud.translation.v3.GcsSource gcs_source = 1;
      */
-    public Builder setGcsSource(com.google.cloud.translate.v3.GcsSource.Builder builderForValue) {
+    public Builder setGcsSource(
+        com.google.cloud.translate.v3.GcsSource.Builder builderForValue) {
       if (gcsSourceBuilder_ == null) {
         source_ = builderForValue.build();
         onChanged();
@@ -766,8 +707,6 @@ public Builder setGcsSource(com.google.cloud.translate.v3.GcsSource.Builder buil
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. Google Cloud Storage location of glossary data.
      * File format is determined based on the filename extension. API returns
@@ -791,13 +730,10 @@ public Builder setGcsSource(com.google.cloud.translate.v3.GcsSource.Builder buil
      */
     public Builder mergeGcsSource(com.google.cloud.translate.v3.GcsSource value) {
       if (gcsSourceBuilder_ == null) {
-        if (sourceCase_ == 1
-            && source_ != com.google.cloud.translate.v3.GcsSource.getDefaultInstance()) {
-          source_ =
-              com.google.cloud.translate.v3.GcsSource.newBuilder(
-                      (com.google.cloud.translate.v3.GcsSource) source_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (sourceCase_ == 1 &&
+            source_ != com.google.cloud.translate.v3.GcsSource.getDefaultInstance()) {
+          source_ = com.google.cloud.translate.v3.GcsSource.newBuilder((com.google.cloud.translate.v3.GcsSource) source_)
+              .mergeFrom(value).buildPartial();
         } else {
           source_ = value;
         }
@@ -812,8 +748,6 @@ public Builder mergeGcsSource(com.google.cloud.translate.v3.GcsSource value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. Google Cloud Storage location of glossary data.
      * File format is determined based on the filename extension. API returns
@@ -852,8 +786,6 @@ public Builder clearGcsSource() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. Google Cloud Storage location of glossary data.
      * File format is determined based on the filename extension. API returns
@@ -879,8 +811,6 @@ public com.google.cloud.translate.v3.GcsSource.Builder getGcsSourceBuilder() {
       return getGcsSourceFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Required. Google Cloud Storage location of glossary data.
      * File format is determined based on the filename extension. API returns
@@ -914,8 +844,6 @@ public com.google.cloud.translate.v3.GcsSourceOrBuilder getGcsSourceOrBuilder()
       }
     }
     /**
-     *
-     *
      * 
      * Required. Google Cloud Storage location of glossary data.
      * File format is determined based on the filename extension. API returns
@@ -938,32 +866,26 @@ public com.google.cloud.translate.v3.GcsSourceOrBuilder getGcsSourceOrBuilder()
      * .google.cloud.translation.v3.GcsSource gcs_source = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.translate.v3.GcsSource,
-            com.google.cloud.translate.v3.GcsSource.Builder,
-            com.google.cloud.translate.v3.GcsSourceOrBuilder>
+        com.google.cloud.translate.v3.GcsSource, com.google.cloud.translate.v3.GcsSource.Builder, com.google.cloud.translate.v3.GcsSourceOrBuilder> 
         getGcsSourceFieldBuilder() {
       if (gcsSourceBuilder_ == null) {
         if (!(sourceCase_ == 1)) {
           source_ = com.google.cloud.translate.v3.GcsSource.getDefaultInstance();
         }
-        gcsSourceBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.translate.v3.GcsSource,
-                com.google.cloud.translate.v3.GcsSource.Builder,
-                com.google.cloud.translate.v3.GcsSourceOrBuilder>(
+        gcsSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.translate.v3.GcsSource, com.google.cloud.translate.v3.GcsSource.Builder, com.google.cloud.translate.v3.GcsSourceOrBuilder>(
                 (com.google.cloud.translate.v3.GcsSource) source_,
                 getParentForChildren(),
                 isClean());
         source_ = null;
       }
       sourceCase_ = 1;
-      onChanged();
-      ;
+      onChanged();;
       return gcsSourceBuilder_;
     }
-
     @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);
     }
 
@@ -973,12 +895,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.GlossaryInputConfig)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.GlossaryInputConfig)
   private static final com.google.cloud.translate.v3.GlossaryInputConfig DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3.GlossaryInputConfig();
   }
@@ -987,16 +909,16 @@ public static com.google.cloud.translate.v3.GlossaryInputConfig getDefaultInstan
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public GlossaryInputConfig parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new GlossaryInputConfig(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public GlossaryInputConfig parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new GlossaryInputConfig(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1011,4 +933,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3.GlossaryInputConfig getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryInputConfigOrBuilder.java b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryInputConfigOrBuilder.java
similarity index 84%
rename from proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryInputConfigOrBuilder.java
rename to owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryInputConfigOrBuilder.java
index ad6ac9a1..c9d34ffd 100644
--- a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryInputConfigOrBuilder.java
+++ b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryInputConfigOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2020 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/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
-public interface GlossaryInputConfigOrBuilder
-    extends
+public interface GlossaryInputConfigOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.GlossaryInputConfig)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. Google Cloud Storage location of glossary data.
    * File format is determined based on the filename extension. API returns
@@ -46,13 +28,10 @@ public interface GlossaryInputConfigOrBuilder
    * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 1; - * * @return Whether the gcsSource field is set. */ boolean hasGcsSource(); /** - * - * *
    * Required. Google Cloud Storage location of glossary data.
    * File format is determined based on the filename extension. API returns
@@ -73,13 +52,10 @@ public interface GlossaryInputConfigOrBuilder
    * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 1; - * * @return The gcsSource. */ com.google.cloud.translate.v3.GcsSource getGcsSource(); /** - * - * *
    * Required. Google Cloud Storage location of glossary data.
    * File format is determined based on the filename extension. API returns
diff --git a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryName.java b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryName.java
similarity index 100%
rename from proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryName.java
rename to owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryName.java
diff --git a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryOrBuilder.java b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryOrBuilder.java
similarity index 81%
rename from proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryOrBuilder.java
rename to owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryOrBuilder.java
index 9781de31..aa464574 100644
--- a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryOrBuilder.java
+++ b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryOrBuilder.java
@@ -1,82 +1,53 @@
-/*
- * Copyright 2020 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/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
-public interface GlossaryOrBuilder
-    extends
+public interface GlossaryOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.Glossary)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. The resource name of the glossary. Glossary names have the form
    * `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The resource name of the glossary. Glossary names have the form
    * `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Used with unidirectional glossaries.
    * 
* * .google.cloud.translation.v3.Glossary.LanguageCodePair language_pair = 3; - * * @return Whether the languagePair field is set. */ boolean hasLanguagePair(); /** - * - * *
    * Used with unidirectional glossaries.
    * 
* * .google.cloud.translation.v3.Glossary.LanguageCodePair language_pair = 3; - * * @return The languagePair. */ com.google.cloud.translate.v3.Glossary.LanguageCodePair getLanguagePair(); /** - * - * *
    * Used with unidirectional glossaries.
    * 
@@ -86,32 +57,24 @@ public interface GlossaryOrBuilder com.google.cloud.translate.v3.Glossary.LanguageCodePairOrBuilder getLanguagePairOrBuilder(); /** - * - * *
    * Used with equivalent term set glossaries.
    * 
* * .google.cloud.translation.v3.Glossary.LanguageCodesSet language_codes_set = 4; - * * @return Whether the languageCodesSet field is set. */ boolean hasLanguageCodesSet(); /** - * - * *
    * Used with equivalent term set glossaries.
    * 
* * .google.cloud.translation.v3.Glossary.LanguageCodesSet language_codes_set = 4; - * * @return The languageCodesSet. */ com.google.cloud.translate.v3.Glossary.LanguageCodesSet getLanguageCodesSet(); /** - * - * *
    * Used with equivalent term set glossaries.
    * 
@@ -121,34 +84,26 @@ public interface GlossaryOrBuilder com.google.cloud.translate.v3.Glossary.LanguageCodesSetOrBuilder getLanguageCodesSetOrBuilder(); /** - * - * *
    * Required. Provides examples to build the glossary from.
    * Total glossary must not exceed 10M Unicode codepoints.
    * 
* * .google.cloud.translation.v3.GlossaryInputConfig input_config = 5; - * * @return Whether the inputConfig field is set. */ boolean hasInputConfig(); /** - * - * *
    * Required. Provides examples to build the glossary from.
    * Total glossary must not exceed 10M Unicode codepoints.
    * 
* * .google.cloud.translation.v3.GlossaryInputConfig input_config = 5; - * * @return The inputConfig. */ com.google.cloud.translate.v3.GlossaryInputConfig getInputConfig(); /** - * - * *
    * Required. Provides examples to build the glossary from.
    * Total glossary must not exceed 10M Unicode codepoints.
@@ -159,91 +114,66 @@ public interface GlossaryOrBuilder
   com.google.cloud.translate.v3.GlossaryInputConfigOrBuilder getInputConfigOrBuilder();
 
   /**
-   *
-   *
    * 
    * Output only. The number of entries defined in the glossary.
    * 
* * int32 entry_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The entryCount. */ int getEntryCount(); /** - * - * *
    * Output only. When CreateGlossary was called.
    * 
* - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the submitTime field is set. */ boolean hasSubmitTime(); /** - * - * *
    * Output only. When CreateGlossary was called.
    * 
* - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The submitTime. */ com.google.protobuf.Timestamp getSubmitTime(); /** - * - * *
    * Output only. When CreateGlossary was called.
    * 
* - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder(); /** - * - * *
    * Output only. When the glossary creation was finished.
    * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ boolean hasEndTime(); /** - * - * *
    * Output only. When the glossary creation was finished.
    * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** - * - * *
    * Output only. When the glossary creation was finished.
    * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); diff --git a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/InputConfig.java b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/InputConfig.java similarity index 79% rename from proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/InputConfig.java rename to owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/InputConfig.java index 13dfb17e..309de419 100644 --- a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/InputConfig.java +++ b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/InputConfig.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 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/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** - * - * *
  * Input configuration for BatchTranslateText request.
  * 
* * Protobuf type {@code google.cloud.translation.v3.InputConfig} */ -public final class InputConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class InputConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.InputConfig) InputConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use InputConfig.newBuilder() to construct. private InputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private InputConfig() { mimeType_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new InputConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private InputConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,74 +53,66 @@ private InputConfig( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - mimeType_ = s; - break; + mimeType_ = s; + break; + } + case 18: { + com.google.cloud.translate.v3.GcsSource.Builder subBuilder = null; + if (sourceCase_ == 2) { + subBuilder = ((com.google.cloud.translate.v3.GcsSource) source_).toBuilder(); } - case 18: - { - com.google.cloud.translate.v3.GcsSource.Builder subBuilder = null; - if (sourceCase_ == 2) { - subBuilder = ((com.google.cloud.translate.v3.GcsSource) source_).toBuilder(); - } - source_ = - input.readMessage( - com.google.cloud.translate.v3.GcsSource.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.translate.v3.GcsSource) source_); - source_ = subBuilder.buildPartial(); - } - sourceCase_ = 2; - break; + source_ = + input.readMessage(com.google.cloud.translate.v3.GcsSource.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.translate.v3.GcsSource) source_); + source_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + sourceCase_ = 2; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_InputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_InputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_InputConfig_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_InputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.InputConfig.class, - com.google.cloud.translate.v3.InputConfig.Builder.class); + com.google.cloud.translate.v3.InputConfig.class, com.google.cloud.translate.v3.InputConfig.Builder.class); } private int sourceCase_ = 0; private java.lang.Object source_; - public enum SourceCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_SOURCE(2), SOURCE_NOT_SET(0); private final int value; - private SourceCase(int value) { this.value = value; } @@ -153,29 +128,25 @@ public static SourceCase valueOf(int value) { public static SourceCase forNumber(int value) { switch (value) { - case 2: - return GCS_SOURCE; - case 0: - return SOURCE_NOT_SET; - default: - return null; + case 2: return GCS_SOURCE; + case 0: return SOURCE_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public SourceCase getSourceCase() { - return SourceCase.forNumber(sourceCase_); + public SourceCase + getSourceCase() { + return SourceCase.forNumber( + sourceCase_); } public static final int MIME_TYPE_FIELD_NUMBER = 1; private volatile java.lang.Object mimeType_; /** - * - * *
    * Optional. Can be "text/plain" or "text/html".
    * For `.tsv`, "text/html" is used if mime_type is missing.
@@ -184,7 +155,6 @@ public SourceCase getSourceCase() {
    * 
* * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The mimeType. */ @java.lang.Override @@ -193,15 +163,14 @@ public java.lang.String getMimeType() { 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(); mimeType_ = s; return s; } } /** - * - * *
    * Optional. Can be "text/plain" or "text/html".
    * For `.tsv`, "text/html" is used if mime_type is missing.
@@ -210,15 +179,16 @@ public java.lang.String getMimeType() {
    * 
* * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for mimeType. */ @java.lang.Override - public com.google.protobuf.ByteString getMimeTypeBytes() { + public com.google.protobuf.ByteString + getMimeTypeBytes() { java.lang.Object ref = mimeType_; 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); mimeType_ = b; return b; } else { @@ -228,8 +198,6 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { public static final int GCS_SOURCE_FIELD_NUMBER = 2; /** - * - * *
    * Required. Google Cloud Storage location for the source input.
    * This can be a single file (for example,
@@ -250,7 +218,6 @@ public com.google.protobuf.ByteString getMimeTypeBytes() {
    * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 2; - * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -258,8 +225,6 @@ public boolean hasGcsSource() { return sourceCase_ == 2; } /** - * - * *
    * Required. Google Cloud Storage location for the source input.
    * This can be a single file (for example,
@@ -280,19 +245,16 @@ public boolean hasGcsSource() {
    * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 2; - * * @return The gcsSource. */ @java.lang.Override public com.google.cloud.translate.v3.GcsSource getGcsSource() { if (sourceCase_ == 2) { - return (com.google.cloud.translate.v3.GcsSource) source_; + return (com.google.cloud.translate.v3.GcsSource) source_; } return com.google.cloud.translate.v3.GcsSource.getDefaultInstance(); } /** - * - * *
    * Required. Google Cloud Storage location for the source input.
    * This can be a single file (for example,
@@ -317,13 +279,12 @@ public com.google.cloud.translate.v3.GcsSource getGcsSource() {
   @java.lang.Override
   public com.google.cloud.translate.v3.GcsSourceOrBuilder getGcsSourceOrBuilder() {
     if (sourceCase_ == 2) {
-      return (com.google.cloud.translate.v3.GcsSource) source_;
+       return (com.google.cloud.translate.v3.GcsSource) source_;
     }
     return com.google.cloud.translate.v3.GcsSource.getDefaultInstance();
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -335,8 +296,9 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
-    if (!getMimeTypeBytes().isEmpty()) {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mimeType_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, mimeType_);
     }
     if (sourceCase_ == 2) {
@@ -351,13 +313,12 @@ public int getSerializedSize() {
     if (size != -1) return size;
 
     size = 0;
-    if (!getMimeTypeBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mimeType_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, mimeType_);
     }
     if (sourceCase_ == 2) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              2, (com.google.cloud.translate.v3.GcsSource) source_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, (com.google.cloud.translate.v3.GcsSource) source_);
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -367,19 +328,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.cloud.translate.v3.InputConfig)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3.InputConfig other =
-        (com.google.cloud.translate.v3.InputConfig) obj;
+    com.google.cloud.translate.v3.InputConfig other = (com.google.cloud.translate.v3.InputConfig) obj;
 
-    if (!getMimeType().equals(other.getMimeType())) return false;
+    if (!getMimeType()
+        .equals(other.getMimeType())) return false;
     if (!getSourceCase().equals(other.getSourceCase())) return false;
     switch (sourceCase_) {
       case 2:
-        if (!getGcsSource().equals(other.getGcsSource())) return false;
+        if (!getGcsSource()
+            .equals(other.getGcsSource())) return false;
         break;
       case 0:
       default:
@@ -410,127 +372,118 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.translate.v3.InputConfig parseFrom(java.nio.ByteBuffer data)
+  public static com.google.cloud.translate.v3.InputConfig parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3.InputConfig 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.cloud.translate.v3.InputConfig parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3.InputConfig 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.cloud.translate.v3.InputConfig parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3.InputConfig 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.cloud.translate.v3.InputConfig 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.cloud.translate.v3.InputConfig 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.cloud.translate.v3.InputConfig parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3.InputConfig parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3.InputConfig 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.cloud.translate.v3.InputConfig 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.cloud.translate.v3.InputConfig 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.cloud.translate.v3.InputConfig 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;
   }
   /**
-   *
-   *
    * 
    * Input configuration for BatchTranslateText request.
    * 
* * Protobuf type {@code google.cloud.translation.v3.InputConfig} */ - 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.translation.v3.InputConfig) com.google.cloud.translate.v3.InputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_InputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_InputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_InputConfig_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_InputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.InputConfig.class, - com.google.cloud.translate.v3.InputConfig.Builder.class); + com.google.cloud.translate.v3.InputConfig.class, com.google.cloud.translate.v3.InputConfig.Builder.class); } // Construct using com.google.cloud.translate.v3.InputConfig.newBuilder() @@ -538,15 +491,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -558,9 +512,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_InputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_InputConfig_descriptor; } @java.lang.Override @@ -579,8 +533,7 @@ public com.google.cloud.translate.v3.InputConfig build() { @java.lang.Override public com.google.cloud.translate.v3.InputConfig buildPartial() { - com.google.cloud.translate.v3.InputConfig result = - new com.google.cloud.translate.v3.InputConfig(this); + com.google.cloud.translate.v3.InputConfig result = new com.google.cloud.translate.v3.InputConfig(this); result.mimeType_ = mimeType_; if (sourceCase_ == 2) { if (gcsSourceBuilder_ == null) { @@ -598,39 +551,38 @@ public com.google.cloud.translate.v3.InputConfig 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.cloud.translate.v3.InputConfig) { - return mergeFrom((com.google.cloud.translate.v3.InputConfig) other); + return mergeFrom((com.google.cloud.translate.v3.InputConfig)other); } else { super.mergeFrom(other); return this; @@ -644,15 +596,13 @@ public Builder mergeFrom(com.google.cloud.translate.v3.InputConfig other) { onChanged(); } switch (other.getSourceCase()) { - case GCS_SOURCE: - { - mergeGcsSource(other.getGcsSource()); - break; - } - case SOURCE_NOT_SET: - { - break; - } + case GCS_SOURCE: { + mergeGcsSource(other.getGcsSource()); + break; + } + case SOURCE_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -682,12 +632,12 @@ public Builder mergeFrom( } return this; } - private int sourceCase_ = 0; private java.lang.Object source_; - - public SourceCase getSourceCase() { - return SourceCase.forNumber(sourceCase_); + public SourceCase + getSourceCase() { + return SourceCase.forNumber( + sourceCase_); } public Builder clearSource() { @@ -697,10 +647,9 @@ public Builder clearSource() { return this; } + private java.lang.Object mimeType_ = ""; /** - * - * *
      * Optional. Can be "text/plain" or "text/html".
      * For `.tsv`, "text/html" is used if mime_type is missing.
@@ -709,13 +658,13 @@ public Builder clearSource() {
      * 
* * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The mimeType. */ public java.lang.String getMimeType() { java.lang.Object ref = mimeType_; 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(); mimeType_ = s; return s; @@ -724,8 +673,6 @@ public java.lang.String getMimeType() { } } /** - * - * *
      * Optional. Can be "text/plain" or "text/html".
      * For `.tsv`, "text/html" is used if mime_type is missing.
@@ -734,14 +681,15 @@ public java.lang.String getMimeType() {
      * 
* * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for mimeType. */ - public com.google.protobuf.ByteString getMimeTypeBytes() { + public com.google.protobuf.ByteString + getMimeTypeBytes() { java.lang.Object ref = mimeType_; 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); mimeType_ = b; return b; } else { @@ -749,8 +697,6 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { } } /** - * - * *
      * Optional. Can be "text/plain" or "text/html".
      * For `.tsv`, "text/html" is used if mime_type is missing.
@@ -759,22 +705,20 @@ public com.google.protobuf.ByteString getMimeTypeBytes() {
      * 
* * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The mimeType to set. * @return This builder for chaining. */ - public Builder setMimeType(java.lang.String value) { + public Builder setMimeType( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + mimeType_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Can be "text/plain" or "text/html".
      * For `.tsv`, "text/html" is used if mime_type is missing.
@@ -783,18 +727,15 @@ public Builder setMimeType(java.lang.String value) {
      * 
* * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearMimeType() { - + mimeType_ = getDefaultInstance().getMimeType(); onChanged(); return this; } /** - * - * *
      * Optional. Can be "text/plain" or "text/html".
      * For `.tsv`, "text/html" is used if mime_type is missing.
@@ -803,29 +744,24 @@ public Builder clearMimeType() {
      * 
* * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for mimeType to set. * @return This builder for chaining. */ - public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { + public Builder setMimeTypeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mimeType_ = value; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.GcsSource, - com.google.cloud.translate.v3.GcsSource.Builder, - com.google.cloud.translate.v3.GcsSourceOrBuilder> - gcsSourceBuilder_; + com.google.cloud.translate.v3.GcsSource, com.google.cloud.translate.v3.GcsSource.Builder, com.google.cloud.translate.v3.GcsSourceOrBuilder> gcsSourceBuilder_; /** - * - * *
      * Required. Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -846,7 +782,6 @@ public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) {
      * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 2; - * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -854,8 +789,6 @@ public boolean hasGcsSource() { return sourceCase_ == 2; } /** - * - * *
      * Required. Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -876,7 +809,6 @@ public boolean hasGcsSource() {
      * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 2; - * * @return The gcsSource. */ @java.lang.Override @@ -894,8 +826,6 @@ public com.google.cloud.translate.v3.GcsSource getGcsSource() { } } /** - * - * *
      * Required. Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -931,8 +861,6 @@ public Builder setGcsSource(com.google.cloud.translate.v3.GcsSource value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -954,7 +882,8 @@ public Builder setGcsSource(com.google.cloud.translate.v3.GcsSource value) {
      *
      * .google.cloud.translation.v3.GcsSource gcs_source = 2;
      */
-    public Builder setGcsSource(com.google.cloud.translate.v3.GcsSource.Builder builderForValue) {
+    public Builder setGcsSource(
+        com.google.cloud.translate.v3.GcsSource.Builder builderForValue) {
       if (gcsSourceBuilder_ == null) {
         source_ = builderForValue.build();
         onChanged();
@@ -965,8 +894,6 @@ public Builder setGcsSource(com.google.cloud.translate.v3.GcsSource.Builder buil
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -990,13 +917,10 @@ public Builder setGcsSource(com.google.cloud.translate.v3.GcsSource.Builder buil
      */
     public Builder mergeGcsSource(com.google.cloud.translate.v3.GcsSource value) {
       if (gcsSourceBuilder_ == null) {
-        if (sourceCase_ == 2
-            && source_ != com.google.cloud.translate.v3.GcsSource.getDefaultInstance()) {
-          source_ =
-              com.google.cloud.translate.v3.GcsSource.newBuilder(
-                      (com.google.cloud.translate.v3.GcsSource) source_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (sourceCase_ == 2 &&
+            source_ != com.google.cloud.translate.v3.GcsSource.getDefaultInstance()) {
+          source_ = com.google.cloud.translate.v3.GcsSource.newBuilder((com.google.cloud.translate.v3.GcsSource) source_)
+              .mergeFrom(value).buildPartial();
         } else {
           source_ = value;
         }
@@ -1011,8 +935,6 @@ public Builder mergeGcsSource(com.google.cloud.translate.v3.GcsSource value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -1051,8 +973,6 @@ public Builder clearGcsSource() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -1078,8 +998,6 @@ public com.google.cloud.translate.v3.GcsSource.Builder getGcsSourceBuilder() {
       return getGcsSourceFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Required. Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -1113,8 +1031,6 @@ public com.google.cloud.translate.v3.GcsSourceOrBuilder getGcsSourceOrBuilder()
       }
     }
     /**
-     *
-     *
      * 
      * Required. Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -1137,32 +1053,26 @@ public com.google.cloud.translate.v3.GcsSourceOrBuilder getGcsSourceOrBuilder()
      * .google.cloud.translation.v3.GcsSource gcs_source = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.translate.v3.GcsSource,
-            com.google.cloud.translate.v3.GcsSource.Builder,
-            com.google.cloud.translate.v3.GcsSourceOrBuilder>
+        com.google.cloud.translate.v3.GcsSource, com.google.cloud.translate.v3.GcsSource.Builder, com.google.cloud.translate.v3.GcsSourceOrBuilder> 
         getGcsSourceFieldBuilder() {
       if (gcsSourceBuilder_ == null) {
         if (!(sourceCase_ == 2)) {
           source_ = com.google.cloud.translate.v3.GcsSource.getDefaultInstance();
         }
-        gcsSourceBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.translate.v3.GcsSource,
-                com.google.cloud.translate.v3.GcsSource.Builder,
-                com.google.cloud.translate.v3.GcsSourceOrBuilder>(
+        gcsSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.translate.v3.GcsSource, com.google.cloud.translate.v3.GcsSource.Builder, com.google.cloud.translate.v3.GcsSourceOrBuilder>(
                 (com.google.cloud.translate.v3.GcsSource) source_,
                 getParentForChildren(),
                 isClean());
         source_ = null;
       }
       sourceCase_ = 2;
-      onChanged();
-      ;
+      onChanged();;
       return gcsSourceBuilder_;
     }
-
     @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);
     }
 
@@ -1172,12 +1082,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.InputConfig)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.InputConfig)
   private static final com.google.cloud.translate.v3.InputConfig DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3.InputConfig();
   }
@@ -1186,16 +1096,16 @@ public static com.google.cloud.translate.v3.InputConfig getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public InputConfig parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new InputConfig(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public InputConfig parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new InputConfig(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1210,4 +1120,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3.InputConfig getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/InputConfigOrBuilder.java b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/InputConfigOrBuilder.java
similarity index 85%
rename from proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/InputConfigOrBuilder.java
rename to owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/InputConfigOrBuilder.java
index 3249799d..4ea2174b 100644
--- a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/InputConfigOrBuilder.java
+++ b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/InputConfigOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2020 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/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
-public interface InputConfigOrBuilder
-    extends
+public interface InputConfigOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.InputConfig)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Optional. Can be "text/plain" or "text/html".
    * For `.tsv`, "text/html" is used if mime_type is missing.
@@ -34,13 +16,10 @@ public interface InputConfigOrBuilder
    * 
* * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The mimeType. */ java.lang.String getMimeType(); /** - * - * *
    * Optional. Can be "text/plain" or "text/html".
    * For `.tsv`, "text/html" is used if mime_type is missing.
@@ -49,14 +28,12 @@ public interface InputConfigOrBuilder
    * 
* * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for mimeType. */ - com.google.protobuf.ByteString getMimeTypeBytes(); + com.google.protobuf.ByteString + getMimeTypeBytes(); /** - * - * *
    * Required. Google Cloud Storage location for the source input.
    * This can be a single file (for example,
@@ -77,13 +54,10 @@ public interface InputConfigOrBuilder
    * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 2; - * * @return Whether the gcsSource field is set. */ boolean hasGcsSource(); /** - * - * *
    * Required. Google Cloud Storage location for the source input.
    * This can be a single file (for example,
@@ -104,13 +78,10 @@ public interface InputConfigOrBuilder
    * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 2; - * * @return The gcsSource. */ com.google.cloud.translate.v3.GcsSource getGcsSource(); /** - * - * *
    * Required. Google Cloud Storage location for the source input.
    * This can be a single file (for example,
diff --git a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesRequest.java b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesRequest.java
similarity index 76%
rename from proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesRequest.java
rename to owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesRequest.java
index e3ad011f..f591855e 100644
--- a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesRequest.java
+++ b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesRequest.java
@@ -1,42 +1,24 @@
-/*
- * Copyright 2020 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/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
 /**
- *
- *
  * 
  * Request message for ListGlossaries.
  * 
* * Protobuf type {@code google.cloud.translation.v3.ListGlossariesRequest} */ -public final class ListGlossariesRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListGlossariesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.ListGlossariesRequest) ListGlossariesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListGlossariesRequest.newBuilder() to construct. private ListGlossariesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListGlossariesRequest() { parent_ = ""; pageToken_ = ""; @@ -45,15 +27,16 @@ private ListGlossariesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListGlossariesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListGlossariesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,79 +55,69 @@ private ListGlossariesRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: { - pageToken_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + pageSize_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageToken_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + filter_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_ListGlossariesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_ListGlossariesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_ListGlossariesRequest_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_ListGlossariesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.ListGlossariesRequest.class, - com.google.cloud.translate.v3.ListGlossariesRequest.Builder.class); + com.google.cloud.translate.v3.ListGlossariesRequest.class, com.google.cloud.translate.v3.ListGlossariesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The name of the project from which to list all of the glossaries.
    * 
* - * - * 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 @@ -153,31 +126,29 @@ 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 from which to list all of the glossaries.
    * 
* - * - * 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 { @@ -188,15 +159,12 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * Optional. Requested page size. The server may return fewer glossaries than
    * requested. If unspecified, the server picks an appropriate default.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -207,8 +175,6 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * Optional. A token identifying a page of results the server should return.
    * Typically, this is the value of [ListGlossariesResponse.next_page_token]
@@ -217,7 +183,6 @@ public int getPageSize() {
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ @java.lang.Override @@ -226,15 +191,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 token identifying a page of results the server should return.
    * Typically, this is the value of [ListGlossariesResponse.next_page_token]
@@ -243,15 +207,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 { @@ -262,8 +227,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int FILTER_FIELD_NUMBER = 4; private volatile java.lang.Object filter_; /** - * - * *
    * Optional. Filter specifying constraints of a list operation.
    * Specify the constraint by the format of "key=value", where key must be
@@ -284,7 +247,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ @java.lang.Override @@ -293,15 +255,14 @@ public java.lang.String getFilter() { 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(); filter_ = s; return s; } } /** - * - * *
    * Optional. Filter specifying constraints of a list operation.
    * Specify the constraint by the format of "key=value", where key must be
@@ -322,15 +283,16 @@ public java.lang.String getFilter() {
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; 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); filter_ = b; return b; } else { @@ -339,7 +301,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -351,17 +312,18 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + 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_); } if (pageSize_ != 0) { output.writeInt32(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); } - if (!getFilterBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); } unknownFields.writeTo(output); @@ -373,16 +335,17 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { 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 (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); } - if (!getFilterBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); } size += unknownFields.getSerializedSize(); @@ -393,18 +356,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.cloud.translate.v3.ListGlossariesRequest)) { return super.equals(obj); } - com.google.cloud.translate.v3.ListGlossariesRequest other = - (com.google.cloud.translate.v3.ListGlossariesRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getFilter().equals(other.getFilter())) return false; + com.google.cloud.translate.v3.ListGlossariesRequest other = (com.google.cloud.translate.v3.ListGlossariesRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -430,126 +396,117 @@ public int hashCode() { } public static com.google.cloud.translate.v3.ListGlossariesRequest 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.cloud.translate.v3.ListGlossariesRequest 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.cloud.translate.v3.ListGlossariesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.ListGlossariesRequest 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.cloud.translate.v3.ListGlossariesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.ListGlossariesRequest 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.cloud.translate.v3.ListGlossariesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.ListGlossariesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.ListGlossariesRequest 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.cloud.translate.v3.ListGlossariesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.ListGlossariesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.ListGlossariesRequest 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.cloud.translate.v3.ListGlossariesRequest 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.cloud.translate.v3.ListGlossariesRequest 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.cloud.translate.v3.ListGlossariesRequest 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; } /** - * - * *
    * Request message for ListGlossaries.
    * 
* * Protobuf type {@code google.cloud.translation.v3.ListGlossariesRequest} */ - 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.translation.v3.ListGlossariesRequest) com.google.cloud.translate.v3.ListGlossariesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_ListGlossariesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_ListGlossariesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_ListGlossariesRequest_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_ListGlossariesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.ListGlossariesRequest.class, - com.google.cloud.translate.v3.ListGlossariesRequest.Builder.class); + com.google.cloud.translate.v3.ListGlossariesRequest.class, com.google.cloud.translate.v3.ListGlossariesRequest.Builder.class); } // Construct using com.google.cloud.translate.v3.ListGlossariesRequest.newBuilder() @@ -557,15 +514,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -581,9 +539,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_ListGlossariesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_ListGlossariesRequest_descriptor; } @java.lang.Override @@ -602,8 +560,7 @@ public com.google.cloud.translate.v3.ListGlossariesRequest build() { @java.lang.Override public com.google.cloud.translate.v3.ListGlossariesRequest buildPartial() { - com.google.cloud.translate.v3.ListGlossariesRequest result = - new com.google.cloud.translate.v3.ListGlossariesRequest(this); + com.google.cloud.translate.v3.ListGlossariesRequest result = new com.google.cloud.translate.v3.ListGlossariesRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -616,39 +573,38 @@ public com.google.cloud.translate.v3.ListGlossariesRequest 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.cloud.translate.v3.ListGlossariesRequest) { - return mergeFrom((com.google.cloud.translate.v3.ListGlossariesRequest) other); + return mergeFrom((com.google.cloud.translate.v3.ListGlossariesRequest)other); } else { super.mergeFrom(other); return this; @@ -656,8 +612,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.ListGlossariesRequest other) { - if (other == com.google.cloud.translate.v3.ListGlossariesRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3.ListGlossariesRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -692,8 +647,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.translate.v3.ListGlossariesRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.translate.v3.ListGlossariesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -705,22 +659,18 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The name of the project from which to list all of the glossaries.
      * 
* - * - * 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; @@ -729,23 +679,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The name of the project from which to list all of the glossaries.
      * 
* - * - * 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 { @@ -753,83 +700,67 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The name of the project from which to list all of the glossaries.
      * 
* - * - * 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) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The name of the project from which to list all of the glossaries.
      * 
* - * - * 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() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The name of the project from which to list all of the glossaries.
      * 
* - * - * 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) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Optional. Requested page size. The server may return fewer glossaries than
      * requested. If unspecified, the server picks an appropriate default.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -837,38 +768,32 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Optional. Requested page size. The server may return fewer glossaries than
      * requested. If unspecified, the server picks an appropriate default.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Requested page size. The server may return fewer glossaries than
      * requested. If unspecified, the server picks an appropriate default.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -876,8 +801,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * Optional. A token identifying a page of results the server should return.
      * Typically, this is the value of [ListGlossariesResponse.next_page_token]
@@ -886,13 +809,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; @@ -901,8 +824,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * Optional. A token identifying a page of results the server should return.
      * Typically, this is the value of [ListGlossariesResponse.next_page_token]
@@ -911,14 +832,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 { @@ -926,8 +848,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Optional. A token identifying a page of results the server should return.
      * Typically, this is the value of [ListGlossariesResponse.next_page_token]
@@ -936,22 +856,20 @@ 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) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * Optional. A token identifying a page of results the server should return.
      * Typically, this is the value of [ListGlossariesResponse.next_page_token]
@@ -960,18 +878,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * Optional. A token identifying a page of results the server should return.
      * Typically, this is the value of [ListGlossariesResponse.next_page_token]
@@ -980,16 +895,16 @@ 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) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; @@ -997,8 +912,6 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * Optional. Filter specifying constraints of a list operation.
      * Specify the constraint by the format of "key=value", where key must be
@@ -1019,13 +932,13 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
      * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; 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(); filter_ = s; return s; @@ -1034,8 +947,6 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Optional. Filter specifying constraints of a list operation.
      * Specify the constraint by the format of "key=value", where key must be
@@ -1056,14 +967,15 @@ public java.lang.String getFilter() {
      * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; 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); filter_ = b; return b; } else { @@ -1071,8 +983,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Optional. Filter specifying constraints of a list operation.
      * Specify the constraint by the format of "key=value", where key must be
@@ -1093,22 +1003,20 @@ public com.google.protobuf.ByteString getFilterBytes() {
      * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { + public Builder setFilter( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Filter specifying constraints of a list operation.
      * Specify the constraint by the format of "key=value", where key must be
@@ -1129,18 +1037,15 @@ public Builder setFilter(java.lang.String value) {
      * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
      * Optional. Filter specifying constraints of a list operation.
      * Specify the constraint by the format of "key=value", where key must be
@@ -1161,23 +1066,23 @@ public Builder clearFilter() {
      * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; 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); } @@ -1187,12 +1092,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.ListGlossariesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.ListGlossariesRequest) private static final com.google.cloud.translate.v3.ListGlossariesRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.ListGlossariesRequest(); } @@ -1201,16 +1106,16 @@ public static com.google.cloud.translate.v3.ListGlossariesRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListGlossariesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListGlossariesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListGlossariesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListGlossariesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1225,4 +1130,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.ListGlossariesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesRequestOrBuilder.java b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesRequestOrBuilder.java similarity index 79% rename from proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesRequestOrBuilder.java rename to owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesRequestOrBuilder.java index a939c96b..fd96eb4a 100644 --- a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesRequestOrBuilder.java +++ b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesRequestOrBuilder.java @@ -1,74 +1,44 @@ -/* - * Copyright 2020 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/translate/v3/translation_service.proto package com.google.cloud.translate.v3; -public interface ListGlossariesRequestOrBuilder - extends +public interface ListGlossariesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.ListGlossariesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The name of the project from which to list all of the glossaries.
    * 
* - * - * 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 from which to list all of the glossaries.
    * 
* - * - * 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. Requested page size. The server may return fewer glossaries than
    * requested. If unspecified, the server picks an appropriate default.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * Optional. A token identifying a page of results the server should return.
    * Typically, this is the value of [ListGlossariesResponse.next_page_token]
@@ -77,13 +47,10 @@ public interface ListGlossariesRequestOrBuilder
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * Optional. A token identifying a page of results the server should return.
    * Typically, this is the value of [ListGlossariesResponse.next_page_token]
@@ -92,14 +59,12 @@ public interface ListGlossariesRequestOrBuilder
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * Optional. Filter specifying constraints of a list operation.
    * Specify the constraint by the format of "key=value", where key must be
@@ -120,13 +85,10 @@ public interface ListGlossariesRequestOrBuilder
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * Optional. Filter specifying constraints of a list operation.
    * Specify the constraint by the format of "key=value", where key must be
@@ -147,8 +109,8 @@ public interface ListGlossariesRequestOrBuilder
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); } diff --git a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesResponse.java b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesResponse.java similarity index 74% rename from proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesResponse.java rename to owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesResponse.java index 5bc3d06d..d83654f8 100644 --- a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesResponse.java +++ b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 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/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** - * - * *
  * Response message for ListGlossaries.
  * 
* * Protobuf type {@code google.cloud.translation.v3.ListGlossariesResponse} */ -public final class ListGlossariesResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListGlossariesResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.ListGlossariesResponse) ListGlossariesResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListGlossariesResponse.newBuilder() to construct. private ListGlossariesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListGlossariesResponse() { glossaries_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,15 +26,16 @@ private ListGlossariesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListGlossariesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListGlossariesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,37 +55,35 @@ private ListGlossariesResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - glossaries_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - glossaries_.add( - input.readMessage( - com.google.cloud.translate.v3.Glossary.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + glossaries_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + glossaries_.add( + input.readMessage(com.google.cloud.translate.v3.Glossary.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { glossaries_ = java.util.Collections.unmodifiableList(glossaries_); @@ -111,27 +92,22 @@ private ListGlossariesResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_ListGlossariesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_ListGlossariesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_ListGlossariesResponse_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_ListGlossariesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.ListGlossariesResponse.class, - com.google.cloud.translate.v3.ListGlossariesResponse.Builder.class); + com.google.cloud.translate.v3.ListGlossariesResponse.class, com.google.cloud.translate.v3.ListGlossariesResponse.Builder.class); } public static final int GLOSSARIES_FIELD_NUMBER = 1; private java.util.List glossaries_; /** - * - * *
    * The list of glossaries for a project.
    * 
@@ -143,8 +119,6 @@ public java.util.List getGlossariesList( return glossaries_; } /** - * - * *
    * The list of glossaries for a project.
    * 
@@ -152,13 +126,11 @@ public java.util.List getGlossariesList( * repeated .google.cloud.translation.v3.Glossary glossaries = 1; */ @java.lang.Override - public java.util.List + public java.util.List getGlossariesOrBuilderList() { return glossaries_; } /** - * - * *
    * The list of glossaries for a project.
    * 
@@ -170,8 +142,6 @@ public int getGlossariesCount() { return glossaries_.size(); } /** - * - * *
    * The list of glossaries for a project.
    * 
@@ -183,8 +153,6 @@ public com.google.cloud.translate.v3.Glossary getGlossaries(int index) { return glossaries_.get(index); } /** - * - * *
    * The list of glossaries for a project.
    * 
@@ -192,15 +160,14 @@ public com.google.cloud.translate.v3.Glossary getGlossaries(int index) { * repeated .google.cloud.translation.v3.Glossary glossaries = 1; */ @java.lang.Override - public com.google.cloud.translate.v3.GlossaryOrBuilder getGlossariesOrBuilder(int index) { + public com.google.cloud.translate.v3.GlossaryOrBuilder getGlossariesOrBuilder( + int index) { return glossaries_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * A token to retrieve a page of results. Pass this value in the
    * [ListGlossariesRequest.page_token] field in the subsequent call to
@@ -208,7 +175,6 @@ public com.google.cloud.translate.v3.GlossaryOrBuilder getGlossariesOrBuilder(in
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -217,15 +183,14 @@ 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 to retrieve a page of results. Pass this value in the
    * [ListGlossariesRequest.page_token] field in the subsequent call to
@@ -233,15 +198,16 @@ public java.lang.String getNextPageToken() {
    * 
* * 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 { @@ -250,7 +216,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -262,11 +227,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 { for (int i = 0; i < glossaries_.size(); i++) { output.writeMessage(1, glossaries_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } unknownFields.writeTo(output); @@ -279,9 +245,10 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < glossaries_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, glossaries_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, glossaries_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } size += unknownFields.getSerializedSize(); @@ -292,16 +259,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.cloud.translate.v3.ListGlossariesResponse)) { return super.equals(obj); } - com.google.cloud.translate.v3.ListGlossariesResponse other = - (com.google.cloud.translate.v3.ListGlossariesResponse) obj; + com.google.cloud.translate.v3.ListGlossariesResponse other = (com.google.cloud.translate.v3.ListGlossariesResponse) obj; - if (!getGlossariesList().equals(other.getGlossariesList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getGlossariesList() + .equals(other.getGlossariesList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -325,126 +293,117 @@ public int hashCode() { } public static com.google.cloud.translate.v3.ListGlossariesResponse 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.cloud.translate.v3.ListGlossariesResponse 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.cloud.translate.v3.ListGlossariesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.ListGlossariesResponse 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.cloud.translate.v3.ListGlossariesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.ListGlossariesResponse 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.cloud.translate.v3.ListGlossariesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.ListGlossariesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.ListGlossariesResponse 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.cloud.translate.v3.ListGlossariesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.ListGlossariesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.ListGlossariesResponse 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.cloud.translate.v3.ListGlossariesResponse 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.cloud.translate.v3.ListGlossariesResponse 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.cloud.translate.v3.ListGlossariesResponse 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 message for ListGlossaries.
    * 
* * Protobuf type {@code google.cloud.translation.v3.ListGlossariesResponse} */ - 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.translation.v3.ListGlossariesResponse) com.google.cloud.translate.v3.ListGlossariesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_ListGlossariesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_ListGlossariesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_ListGlossariesResponse_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_ListGlossariesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.ListGlossariesResponse.class, - com.google.cloud.translate.v3.ListGlossariesResponse.Builder.class); + com.google.cloud.translate.v3.ListGlossariesResponse.class, com.google.cloud.translate.v3.ListGlossariesResponse.Builder.class); } // Construct using com.google.cloud.translate.v3.ListGlossariesResponse.newBuilder() @@ -452,17 +411,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getGlossariesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -478,9 +437,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_ListGlossariesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_ListGlossariesResponse_descriptor; } @java.lang.Override @@ -499,8 +458,7 @@ public com.google.cloud.translate.v3.ListGlossariesResponse build() { @java.lang.Override public com.google.cloud.translate.v3.ListGlossariesResponse buildPartial() { - com.google.cloud.translate.v3.ListGlossariesResponse result = - new com.google.cloud.translate.v3.ListGlossariesResponse(this); + com.google.cloud.translate.v3.ListGlossariesResponse result = new com.google.cloud.translate.v3.ListGlossariesResponse(this); int from_bitField0_ = bitField0_; if (glossariesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -520,39 +478,38 @@ public com.google.cloud.translate.v3.ListGlossariesResponse 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.cloud.translate.v3.ListGlossariesResponse) { - return mergeFrom((com.google.cloud.translate.v3.ListGlossariesResponse) other); + return mergeFrom((com.google.cloud.translate.v3.ListGlossariesResponse)other); } else { super.mergeFrom(other); return this; @@ -560,8 +517,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.ListGlossariesResponse other) { - if (other == com.google.cloud.translate.v3.ListGlossariesResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3.ListGlossariesResponse.getDefaultInstance()) return this; if (glossariesBuilder_ == null) { if (!other.glossaries_.isEmpty()) { if (glossaries_.isEmpty()) { @@ -580,10 +536,9 @@ public Builder mergeFrom(com.google.cloud.translate.v3.ListGlossariesResponse ot glossariesBuilder_ = null; glossaries_ = other.glossaries_; bitField0_ = (bitField0_ & ~0x00000001); - glossariesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getGlossariesFieldBuilder() - : null; + glossariesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getGlossariesFieldBuilder() : null; } else { glossariesBuilder_.addAllMessages(other.glossaries_); } @@ -612,8 +567,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.translate.v3.ListGlossariesResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.translate.v3.ListGlossariesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -622,28 +576,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List glossaries_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureGlossariesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { glossaries_ = new java.util.ArrayList(glossaries_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.translate.v3.Glossary, - com.google.cloud.translate.v3.Glossary.Builder, - com.google.cloud.translate.v3.GlossaryOrBuilder> - glossariesBuilder_; + com.google.cloud.translate.v3.Glossary, com.google.cloud.translate.v3.Glossary.Builder, com.google.cloud.translate.v3.GlossaryOrBuilder> glossariesBuilder_; /** - * - * *
      * The list of glossaries for a project.
      * 
@@ -658,8 +605,6 @@ public java.util.List getGlossariesList( } } /** - * - * *
      * The list of glossaries for a project.
      * 
@@ -674,8 +619,6 @@ public int getGlossariesCount() { } } /** - * - * *
      * The list of glossaries for a project.
      * 
@@ -690,15 +633,14 @@ public com.google.cloud.translate.v3.Glossary getGlossaries(int index) { } } /** - * - * *
      * The list of glossaries for a project.
      * 
* * repeated .google.cloud.translation.v3.Glossary glossaries = 1; */ - public Builder setGlossaries(int index, com.google.cloud.translate.v3.Glossary value) { + public Builder setGlossaries( + int index, com.google.cloud.translate.v3.Glossary value) { if (glossariesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -712,8 +654,6 @@ public Builder setGlossaries(int index, com.google.cloud.translate.v3.Glossary v return this; } /** - * - * *
      * The list of glossaries for a project.
      * 
@@ -732,8 +672,6 @@ public Builder setGlossaries( return this; } /** - * - * *
      * The list of glossaries for a project.
      * 
@@ -754,15 +692,14 @@ public Builder addGlossaries(com.google.cloud.translate.v3.Glossary value) { return this; } /** - * - * *
      * The list of glossaries for a project.
      * 
* * repeated .google.cloud.translation.v3.Glossary glossaries = 1; */ - public Builder addGlossaries(int index, com.google.cloud.translate.v3.Glossary value) { + public Builder addGlossaries( + int index, com.google.cloud.translate.v3.Glossary value) { if (glossariesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -776,15 +713,14 @@ public Builder addGlossaries(int index, com.google.cloud.translate.v3.Glossary v return this; } /** - * - * *
      * The list of glossaries for a project.
      * 
* * repeated .google.cloud.translation.v3.Glossary glossaries = 1; */ - public Builder addGlossaries(com.google.cloud.translate.v3.Glossary.Builder builderForValue) { + public Builder addGlossaries( + com.google.cloud.translate.v3.Glossary.Builder builderForValue) { if (glossariesBuilder_ == null) { ensureGlossariesIsMutable(); glossaries_.add(builderForValue.build()); @@ -795,8 +731,6 @@ public Builder addGlossaries(com.google.cloud.translate.v3.Glossary.Builder buil return this; } /** - * - * *
      * The list of glossaries for a project.
      * 
@@ -815,8 +749,6 @@ public Builder addGlossaries( return this; } /** - * - * *
      * The list of glossaries for a project.
      * 
@@ -827,7 +759,8 @@ public Builder addAllGlossaries( java.lang.Iterable values) { if (glossariesBuilder_ == null) { ensureGlossariesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, glossaries_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, glossaries_); onChanged(); } else { glossariesBuilder_.addAllMessages(values); @@ -835,8 +768,6 @@ public Builder addAllGlossaries( return this; } /** - * - * *
      * The list of glossaries for a project.
      * 
@@ -854,8 +785,6 @@ public Builder clearGlossaries() { return this; } /** - * - * *
      * The list of glossaries for a project.
      * 
@@ -873,44 +802,39 @@ public Builder removeGlossaries(int index) { return this; } /** - * - * *
      * The list of glossaries for a project.
      * 
* * repeated .google.cloud.translation.v3.Glossary glossaries = 1; */ - public com.google.cloud.translate.v3.Glossary.Builder getGlossariesBuilder(int index) { + public com.google.cloud.translate.v3.Glossary.Builder getGlossariesBuilder( + int index) { return getGlossariesFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of glossaries for a project.
      * 
* * repeated .google.cloud.translation.v3.Glossary glossaries = 1; */ - public com.google.cloud.translate.v3.GlossaryOrBuilder getGlossariesOrBuilder(int index) { + public com.google.cloud.translate.v3.GlossaryOrBuilder getGlossariesOrBuilder( + int index) { if (glossariesBuilder_ == null) { - return glossaries_.get(index); - } else { + return glossaries_.get(index); } else { return glossariesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of glossaries for a project.
      * 
* * repeated .google.cloud.translation.v3.Glossary glossaries = 1; */ - public java.util.List - getGlossariesOrBuilderList() { + public java.util.List + getGlossariesOrBuilderList() { if (glossariesBuilder_ != null) { return glossariesBuilder_.getMessageOrBuilderList(); } else { @@ -918,8 +842,6 @@ public com.google.cloud.translate.v3.GlossaryOrBuilder getGlossariesOrBuilder(in } } /** - * - * *
      * The list of glossaries for a project.
      * 
@@ -927,48 +849,42 @@ public com.google.cloud.translate.v3.GlossaryOrBuilder getGlossariesOrBuilder(in * repeated .google.cloud.translation.v3.Glossary glossaries = 1; */ public com.google.cloud.translate.v3.Glossary.Builder addGlossariesBuilder() { - return getGlossariesFieldBuilder() - .addBuilder(com.google.cloud.translate.v3.Glossary.getDefaultInstance()); + return getGlossariesFieldBuilder().addBuilder( + com.google.cloud.translate.v3.Glossary.getDefaultInstance()); } /** - * - * *
      * The list of glossaries for a project.
      * 
* * repeated .google.cloud.translation.v3.Glossary glossaries = 1; */ - public com.google.cloud.translate.v3.Glossary.Builder addGlossariesBuilder(int index) { - return getGlossariesFieldBuilder() - .addBuilder(index, com.google.cloud.translate.v3.Glossary.getDefaultInstance()); + public com.google.cloud.translate.v3.Glossary.Builder addGlossariesBuilder( + int index) { + return getGlossariesFieldBuilder().addBuilder( + index, com.google.cloud.translate.v3.Glossary.getDefaultInstance()); } /** - * - * *
      * The list of glossaries for a project.
      * 
* * repeated .google.cloud.translation.v3.Glossary glossaries = 1; */ - public java.util.List - getGlossariesBuilderList() { + public java.util.List + getGlossariesBuilderList() { return getGlossariesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.translate.v3.Glossary, - com.google.cloud.translate.v3.Glossary.Builder, - com.google.cloud.translate.v3.GlossaryOrBuilder> + com.google.cloud.translate.v3.Glossary, com.google.cloud.translate.v3.Glossary.Builder, com.google.cloud.translate.v3.GlossaryOrBuilder> getGlossariesFieldBuilder() { if (glossariesBuilder_ == null) { - glossariesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.translate.v3.Glossary, - com.google.cloud.translate.v3.Glossary.Builder, - com.google.cloud.translate.v3.GlossaryOrBuilder>( - glossaries_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + glossariesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.translate.v3.Glossary, com.google.cloud.translate.v3.Glossary.Builder, com.google.cloud.translate.v3.GlossaryOrBuilder>( + glossaries_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); glossaries_ = null; } return glossariesBuilder_; @@ -976,8 +892,6 @@ public com.google.cloud.translate.v3.Glossary.Builder addGlossariesBuilder(int i private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token to retrieve a page of results. Pass this value in the
      * [ListGlossariesRequest.page_token] field in the subsequent call to
@@ -985,13 +899,13 @@ public com.google.cloud.translate.v3.Glossary.Builder addGlossariesBuilder(int i
      * 
* * 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; @@ -1000,8 +914,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token to retrieve a page of results. Pass this value in the
      * [ListGlossariesRequest.page_token] field in the subsequent call to
@@ -1009,14 +921,15 @@ public java.lang.String getNextPageToken() {
      * 
* * 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 { @@ -1024,8 +937,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token to retrieve a page of results. Pass this value in the
      * [ListGlossariesRequest.page_token] field in the subsequent call to
@@ -1033,22 +944,20 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * A token to retrieve a page of results. Pass this value in the
      * [ListGlossariesRequest.page_token] field in the subsequent call to
@@ -1056,18 +965,15 @@ public Builder setNextPageToken(java.lang.String value) {
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * A token to retrieve a page of results. Pass this value in the
      * [ListGlossariesRequest.page_token] field in the subsequent call to
@@ -1075,23 +981,23 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; 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); } @@ -1101,12 +1007,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.ListGlossariesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.ListGlossariesResponse) private static final com.google.cloud.translate.v3.ListGlossariesResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.ListGlossariesResponse(); } @@ -1115,16 +1021,16 @@ public static com.google.cloud.translate.v3.ListGlossariesResponse getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListGlossariesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListGlossariesResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListGlossariesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListGlossariesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1139,4 +1045,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.ListGlossariesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesResponseOrBuilder.java b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesResponseOrBuilder.java similarity index 69% rename from proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesResponseOrBuilder.java rename to owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesResponseOrBuilder.java index 88c512be..29c4dd7c 100644 --- a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesResponseOrBuilder.java +++ b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 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/translate/v3/translation_service.proto package com.google.cloud.translate.v3; -public interface ListGlossariesResponseOrBuilder - extends +public interface ListGlossariesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.ListGlossariesResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of glossaries for a project.
    * 
* * repeated .google.cloud.translation.v3.Glossary glossaries = 1; */ - java.util.List getGlossariesList(); + java.util.List + getGlossariesList(); /** - * - * *
    * The list of glossaries for a project.
    * 
@@ -44,8 +25,6 @@ public interface ListGlossariesResponseOrBuilder */ com.google.cloud.translate.v3.Glossary getGlossaries(int index); /** - * - * *
    * The list of glossaries for a project.
    * 
@@ -54,30 +33,25 @@ public interface ListGlossariesResponseOrBuilder */ int getGlossariesCount(); /** - * - * *
    * The list of glossaries for a project.
    * 
* * repeated .google.cloud.translation.v3.Glossary glossaries = 1; */ - java.util.List + java.util.List getGlossariesOrBuilderList(); /** - * - * *
    * The list of glossaries for a project.
    * 
* * repeated .google.cloud.translation.v3.Glossary glossaries = 1; */ - com.google.cloud.translate.v3.GlossaryOrBuilder getGlossariesOrBuilder(int index); + com.google.cloud.translate.v3.GlossaryOrBuilder getGlossariesOrBuilder( + int index); /** - * - * *
    * A token to retrieve a page of results. Pass this value in the
    * [ListGlossariesRequest.page_token] field in the subsequent call to
@@ -85,13 +59,10 @@ public interface ListGlossariesResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token to retrieve a page of results. Pass this value in the
    * [ListGlossariesRequest.page_token] field in the subsequent call to
@@ -99,8 +70,8 @@ public interface ListGlossariesResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/LocationName.java b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/LocationName.java similarity index 100% rename from proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/LocationName.java rename to owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/LocationName.java diff --git a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/OutputConfig.java b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/OutputConfig.java similarity index 88% rename from proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/OutputConfig.java rename to owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/OutputConfig.java index 99c2b51c..b5de0109 100644 --- a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/OutputConfig.java +++ b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/OutputConfig.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 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/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** - * - * *
  * Output configuration for BatchTranslateText request.
  * 
* * Protobuf type {@code google.cloud.translation.v3.OutputConfig} */ -public final class OutputConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class OutputConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.OutputConfig) OutputConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use OutputConfig.newBuilder() to construct. private OutputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private OutputConfig() {} + private OutputConfig() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new OutputConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private OutputConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,68 +52,60 @@ private OutputConfig( case 0: done = true; break; - case 10: - { - com.google.cloud.translate.v3.GcsDestination.Builder subBuilder = null; - if (destinationCase_ == 1) { - subBuilder = - ((com.google.cloud.translate.v3.GcsDestination) destination_).toBuilder(); - } - destination_ = - input.readMessage( - com.google.cloud.translate.v3.GcsDestination.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.translate.v3.GcsDestination) destination_); - destination_ = subBuilder.buildPartial(); - } - destinationCase_ = 1; - break; + case 10: { + com.google.cloud.translate.v3.GcsDestination.Builder subBuilder = null; + if (destinationCase_ == 1) { + subBuilder = ((com.google.cloud.translate.v3.GcsDestination) destination_).toBuilder(); + } + destination_ = + input.readMessage(com.google.cloud.translate.v3.GcsDestination.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.translate.v3.GcsDestination) destination_); + destination_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + destinationCase_ = 1; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_OutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_OutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_OutputConfig_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_OutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.OutputConfig.class, - com.google.cloud.translate.v3.OutputConfig.Builder.class); + com.google.cloud.translate.v3.OutputConfig.class, com.google.cloud.translate.v3.OutputConfig.Builder.class); } private int destinationCase_ = 0; private java.lang.Object destination_; - public enum DestinationCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_DESTINATION(1), DESTINATION_NOT_SET(0); private final int value; - private DestinationCase(int value) { this.value = value; } @@ -145,28 +121,24 @@ public static DestinationCase valueOf(int value) { public static DestinationCase forNumber(int value) { switch (value) { - case 1: - return GCS_DESTINATION; - case 0: - return DESTINATION_NOT_SET; - default: - return null; + case 1: return GCS_DESTINATION; + case 0: return DESTINATION_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public DestinationCase getDestinationCase() { - return DestinationCase.forNumber(destinationCase_); + public DestinationCase + getDestinationCase() { + return DestinationCase.forNumber( + destinationCase_); } public static final int GCS_DESTINATION_FIELD_NUMBER = 1; /** - * - * *
    * Google Cloud Storage destination for output content.
    * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -230,7 +202,6 @@ public DestinationCase getDestinationCase() {
    * 
* * .google.cloud.translation.v3.GcsDestination gcs_destination = 1; - * * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -238,8 +209,6 @@ public boolean hasGcsDestination() { return destinationCase_ == 1; } /** - * - * *
    * Google Cloud Storage destination for output content.
    * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -303,19 +272,16 @@ public boolean hasGcsDestination() {
    * 
* * .google.cloud.translation.v3.GcsDestination gcs_destination = 1; - * * @return The gcsDestination. */ @java.lang.Override public com.google.cloud.translate.v3.GcsDestination getGcsDestination() { if (destinationCase_ == 1) { - return (com.google.cloud.translate.v3.GcsDestination) destination_; + return (com.google.cloud.translate.v3.GcsDestination) destination_; } return com.google.cloud.translate.v3.GcsDestination.getDefaultInstance(); } /** - * - * *
    * Google Cloud Storage destination for output content.
    * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -383,13 +349,12 @@ public com.google.cloud.translate.v3.GcsDestination getGcsDestination() {
   @java.lang.Override
   public com.google.cloud.translate.v3.GcsDestinationOrBuilder getGcsDestinationOrBuilder() {
     if (destinationCase_ == 1) {
-      return (com.google.cloud.translate.v3.GcsDestination) destination_;
+       return (com.google.cloud.translate.v3.GcsDestination) destination_;
     }
     return com.google.cloud.translate.v3.GcsDestination.getDefaultInstance();
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -401,7 +366,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 (destinationCase_ == 1) {
       output.writeMessage(1, (com.google.cloud.translate.v3.GcsDestination) destination_);
     }
@@ -415,9 +381,8 @@ public int getSerializedSize() {
 
     size = 0;
     if (destinationCase_ == 1) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              1, (com.google.cloud.translate.v3.GcsDestination) destination_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, (com.google.cloud.translate.v3.GcsDestination) destination_);
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -427,18 +392,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.cloud.translate.v3.OutputConfig)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3.OutputConfig other =
-        (com.google.cloud.translate.v3.OutputConfig) obj;
+    com.google.cloud.translate.v3.OutputConfig other = (com.google.cloud.translate.v3.OutputConfig) obj;
 
     if (!getDestinationCase().equals(other.getDestinationCase())) return false;
     switch (destinationCase_) {
       case 1:
-        if (!getGcsDestination().equals(other.getGcsDestination())) return false;
+        if (!getGcsDestination()
+            .equals(other.getGcsDestination())) return false;
         break;
       case 0:
       default:
@@ -467,127 +432,118 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.translate.v3.OutputConfig parseFrom(java.nio.ByteBuffer data)
+  public static com.google.cloud.translate.v3.OutputConfig parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3.OutputConfig 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.cloud.translate.v3.OutputConfig parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3.OutputConfig 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.cloud.translate.v3.OutputConfig parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3.OutputConfig 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.cloud.translate.v3.OutputConfig 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.cloud.translate.v3.OutputConfig 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.cloud.translate.v3.OutputConfig parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3.OutputConfig parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3.OutputConfig 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.cloud.translate.v3.OutputConfig 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.cloud.translate.v3.OutputConfig 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.cloud.translate.v3.OutputConfig 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;
   }
   /**
-   *
-   *
    * 
    * Output configuration for BatchTranslateText request.
    * 
* * Protobuf type {@code google.cloud.translation.v3.OutputConfig} */ - 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.translation.v3.OutputConfig) com.google.cloud.translate.v3.OutputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_OutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_OutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_OutputConfig_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_OutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.OutputConfig.class, - com.google.cloud.translate.v3.OutputConfig.Builder.class); + com.google.cloud.translate.v3.OutputConfig.class, com.google.cloud.translate.v3.OutputConfig.Builder.class); } // Construct using com.google.cloud.translate.v3.OutputConfig.newBuilder() @@ -595,15 +551,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -613,9 +570,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_OutputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_OutputConfig_descriptor; } @java.lang.Override @@ -634,8 +591,7 @@ public com.google.cloud.translate.v3.OutputConfig build() { @java.lang.Override public com.google.cloud.translate.v3.OutputConfig buildPartial() { - com.google.cloud.translate.v3.OutputConfig result = - new com.google.cloud.translate.v3.OutputConfig(this); + com.google.cloud.translate.v3.OutputConfig result = new com.google.cloud.translate.v3.OutputConfig(this); if (destinationCase_ == 1) { if (gcsDestinationBuilder_ == null) { result.destination_ = destination_; @@ -652,39 +608,38 @@ public com.google.cloud.translate.v3.OutputConfig 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.cloud.translate.v3.OutputConfig) { - return mergeFrom((com.google.cloud.translate.v3.OutputConfig) other); + return mergeFrom((com.google.cloud.translate.v3.OutputConfig)other); } else { super.mergeFrom(other); return this; @@ -694,15 +649,13 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.cloud.translate.v3.OutputConfig other) { if (other == com.google.cloud.translate.v3.OutputConfig.getDefaultInstance()) return this; switch (other.getDestinationCase()) { - case GCS_DESTINATION: - { - mergeGcsDestination(other.getGcsDestination()); - break; - } - case DESTINATION_NOT_SET: - { - break; - } + case GCS_DESTINATION: { + mergeGcsDestination(other.getGcsDestination()); + break; + } + case DESTINATION_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -732,12 +685,12 @@ public Builder mergeFrom( } return this; } - private int destinationCase_ = 0; private java.lang.Object destination_; - - public DestinationCase getDestinationCase() { - return DestinationCase.forNumber(destinationCase_); + public DestinationCase + getDestinationCase() { + return DestinationCase.forNumber( + destinationCase_); } public Builder clearDestination() { @@ -747,14 +700,10 @@ public Builder clearDestination() { return this; } + private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.GcsDestination, - com.google.cloud.translate.v3.GcsDestination.Builder, - com.google.cloud.translate.v3.GcsDestinationOrBuilder> - gcsDestinationBuilder_; + com.google.cloud.translate.v3.GcsDestination, com.google.cloud.translate.v3.GcsDestination.Builder, com.google.cloud.translate.v3.GcsDestinationOrBuilder> gcsDestinationBuilder_; /** - * - * *
      * Google Cloud Storage destination for output content.
      * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -818,7 +767,6 @@ public Builder clearDestination() {
      * 
* * .google.cloud.translation.v3.GcsDestination gcs_destination = 1; - * * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -826,8 +774,6 @@ public boolean hasGcsDestination() { return destinationCase_ == 1; } /** - * - * *
      * Google Cloud Storage destination for output content.
      * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -891,7 +837,6 @@ public boolean hasGcsDestination() {
      * 
* * .google.cloud.translation.v3.GcsDestination gcs_destination = 1; - * * @return The gcsDestination. */ @java.lang.Override @@ -909,8 +854,6 @@ public com.google.cloud.translate.v3.GcsDestination getGcsDestination() { } } /** - * - * *
      * Google Cloud Storage destination for output content.
      * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -989,8 +932,6 @@ public Builder setGcsDestination(com.google.cloud.translate.v3.GcsDestination va
       return this;
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage destination for output content.
      * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -1067,8 +1008,6 @@ public Builder setGcsDestination(
       return this;
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage destination for output content.
      * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -1135,13 +1074,10 @@ public Builder setGcsDestination(
      */
     public Builder mergeGcsDestination(com.google.cloud.translate.v3.GcsDestination value) {
       if (gcsDestinationBuilder_ == null) {
-        if (destinationCase_ == 1
-            && destination_ != com.google.cloud.translate.v3.GcsDestination.getDefaultInstance()) {
-          destination_ =
-              com.google.cloud.translate.v3.GcsDestination.newBuilder(
-                      (com.google.cloud.translate.v3.GcsDestination) destination_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (destinationCase_ == 1 &&
+            destination_ != com.google.cloud.translate.v3.GcsDestination.getDefaultInstance()) {
+          destination_ = com.google.cloud.translate.v3.GcsDestination.newBuilder((com.google.cloud.translate.v3.GcsDestination) destination_)
+              .mergeFrom(value).buildPartial();
         } else {
           destination_ = value;
         }
@@ -1156,8 +1092,6 @@ public Builder mergeGcsDestination(com.google.cloud.translate.v3.GcsDestination
       return this;
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage destination for output content.
      * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -1239,8 +1173,6 @@ public Builder clearGcsDestination() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage destination for output content.
      * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -1309,8 +1241,6 @@ public com.google.cloud.translate.v3.GcsDestination.Builder getGcsDestinationBui
       return getGcsDestinationFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage destination for output content.
      * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -1387,8 +1317,6 @@ public com.google.cloud.translate.v3.GcsDestinationOrBuilder getGcsDestinationOr
       }
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage destination for output content.
      * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -1454,32 +1382,26 @@ public com.google.cloud.translate.v3.GcsDestinationOrBuilder getGcsDestinationOr
      * .google.cloud.translation.v3.GcsDestination gcs_destination = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.translate.v3.GcsDestination,
-            com.google.cloud.translate.v3.GcsDestination.Builder,
-            com.google.cloud.translate.v3.GcsDestinationOrBuilder>
+        com.google.cloud.translate.v3.GcsDestination, com.google.cloud.translate.v3.GcsDestination.Builder, com.google.cloud.translate.v3.GcsDestinationOrBuilder> 
         getGcsDestinationFieldBuilder() {
       if (gcsDestinationBuilder_ == null) {
         if (!(destinationCase_ == 1)) {
           destination_ = com.google.cloud.translate.v3.GcsDestination.getDefaultInstance();
         }
-        gcsDestinationBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.translate.v3.GcsDestination,
-                com.google.cloud.translate.v3.GcsDestination.Builder,
-                com.google.cloud.translate.v3.GcsDestinationOrBuilder>(
+        gcsDestinationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.translate.v3.GcsDestination, com.google.cloud.translate.v3.GcsDestination.Builder, com.google.cloud.translate.v3.GcsDestinationOrBuilder>(
                 (com.google.cloud.translate.v3.GcsDestination) destination_,
                 getParentForChildren(),
                 isClean());
         destination_ = null;
       }
       destinationCase_ = 1;
-      onChanged();
-      ;
+      onChanged();;
       return gcsDestinationBuilder_;
     }
-
     @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);
     }
 
@@ -1489,12 +1411,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.OutputConfig)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.OutputConfig)
   private static final com.google.cloud.translate.v3.OutputConfig DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3.OutputConfig();
   }
@@ -1503,16 +1425,16 @@ public static com.google.cloud.translate.v3.OutputConfig getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public OutputConfig parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new OutputConfig(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public OutputConfig parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new OutputConfig(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1527,4 +1449,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3.OutputConfig getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/OutputConfigOrBuilder.java b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/OutputConfigOrBuilder.java
similarity index 94%
rename from proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/OutputConfigOrBuilder.java
rename to owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/OutputConfigOrBuilder.java
index 5f460bdf..b4dc3fce 100644
--- a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/OutputConfigOrBuilder.java
+++ b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/OutputConfigOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2020 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/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
-public interface OutputConfigOrBuilder
-    extends
+public interface OutputConfigOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.OutputConfig)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Google Cloud Storage destination for output content.
    * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -89,13 +71,10 @@ public interface OutputConfigOrBuilder
    * 
* * .google.cloud.translation.v3.GcsDestination gcs_destination = 1; - * * @return Whether the gcsDestination field is set. */ boolean hasGcsDestination(); /** - * - * *
    * Google Cloud Storage destination for output content.
    * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -159,13 +138,10 @@ public interface OutputConfigOrBuilder
    * 
* * .google.cloud.translation.v3.GcsDestination gcs_destination = 1; - * * @return The gcsDestination. */ com.google.cloud.translate.v3.GcsDestination getGcsDestination(); /** - * - * *
    * Google Cloud Storage destination for output content.
    * For every single input file (for example, gs://a/b/c.[extension]), we
diff --git a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguage.java b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguage.java
similarity index 73%
rename from proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguage.java
rename to owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguage.java
index 659fe6d8..2f7ef8dd 100644
--- a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguage.java
+++ b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguage.java
@@ -1,26 +1,9 @@
-/*
- * Copyright 2020 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/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
 /**
- *
- *
  * 
  * A single supported language response corresponds to information related
  * to one supported language.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.translation.v3.SupportedLanguage}
  */
-public final class SupportedLanguage extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class SupportedLanguage extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.SupportedLanguage)
     SupportedLanguageOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use SupportedLanguage.newBuilder() to construct.
   private SupportedLanguage(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private SupportedLanguage() {
     languageCode_ = "";
     displayName_ = "";
@@ -45,15 +27,16 @@ private SupportedLanguage() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new SupportedLanguage();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private SupportedLanguage(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -72,69 +55,63 @@ private SupportedLanguage(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              languageCode_ = s;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            languageCode_ = s;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              displayName_ = s;
-              break;
-            }
-          case 24:
-            {
-              supportSource_ = input.readBool();
-              break;
-            }
-          case 32:
-            {
-              supportTarget_ = input.readBool();
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            displayName_ = s;
+            break;
+          }
+          case 24: {
+
+            supportSource_ = input.readBool();
+            break;
+          }
+          case 32: {
+
+            supportTarget_ = input.readBool();
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.translate.v3.TranslationServiceProto
-        .internal_static_google_cloud_translation_v3_SupportedLanguage_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_SupportedLanguage_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.translate.v3.TranslationServiceProto
-        .internal_static_google_cloud_translation_v3_SupportedLanguage_fieldAccessorTable
+    return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_SupportedLanguage_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.translate.v3.SupportedLanguage.class,
-            com.google.cloud.translate.v3.SupportedLanguage.Builder.class);
+            com.google.cloud.translate.v3.SupportedLanguage.class, com.google.cloud.translate.v3.SupportedLanguage.Builder.class);
   }
 
   public static final int LANGUAGE_CODE_FIELD_NUMBER = 1;
   private volatile java.lang.Object languageCode_;
   /**
-   *
-   *
    * 
    * Supported language code, generally consisting of its ISO 639-1
    * identifier, for example, 'en', 'ja'. In certain cases, BCP-47 codes
@@ -143,7 +120,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string language_code = 1; - * * @return The languageCode. */ @java.lang.Override @@ -152,15 +128,14 @@ 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; } } /** - * - * *
    * Supported language code, generally consisting of its ISO 639-1
    * identifier, for example, 'en', 'ja'. In certain cases, BCP-47 codes
@@ -169,15 +144,16 @@ public java.lang.String getLanguageCode() {
    * 
* * string language_code = 1; - * * @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 { @@ -188,15 +164,12 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { public static final int DISPLAY_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object displayName_; /** - * - * *
    * Human readable name of the language localized in the display language
    * specified in the request.
    * 
* * string display_name = 2; - * * @return The displayName. */ @java.lang.Override @@ -205,30 +178,30 @@ 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; } } /** - * - * *
    * Human readable name of the language localized in the display language
    * specified in the request.
    * 
* * string display_name = 2; - * * @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 { @@ -239,14 +212,11 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { public static final int SUPPORT_SOURCE_FIELD_NUMBER = 3; private boolean supportSource_; /** - * - * *
    * Can be used as source language.
    * 
* * bool support_source = 3; - * * @return The supportSource. */ @java.lang.Override @@ -257,14 +227,11 @@ public boolean getSupportSource() { public static final int SUPPORT_TARGET_FIELD_NUMBER = 4; private boolean supportTarget_; /** - * - * *
    * Can be used as target language.
    * 
* * bool support_target = 4; - * * @return The supportTarget. */ @java.lang.Override @@ -273,7 +240,6 @@ public boolean getSupportTarget() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -285,11 +251,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getLanguageCodeBytes().isEmpty()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, languageCode_); } - if (!getDisplayNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); } if (supportSource_ != false) { @@ -307,17 +274,19 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, languageCode_); } - if (!getDisplayNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); } if (supportSource_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, supportSource_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, supportSource_); } if (supportTarget_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, supportTarget_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, supportTarget_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -327,18 +296,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.cloud.translate.v3.SupportedLanguage)) { return super.equals(obj); } - com.google.cloud.translate.v3.SupportedLanguage other = - (com.google.cloud.translate.v3.SupportedLanguage) obj; + com.google.cloud.translate.v3.SupportedLanguage other = (com.google.cloud.translate.v3.SupportedLanguage) obj; - if (!getLanguageCode().equals(other.getLanguageCode())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (getSupportSource() != other.getSupportSource()) return false; - if (getSupportTarget() != other.getSupportTarget()) return false; + if (!getLanguageCode() + .equals(other.getLanguageCode())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; + if (getSupportSource() + != other.getSupportSource()) return false; + if (getSupportTarget() + != other.getSupportTarget()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -355,112 +327,107 @@ public int hashCode() { hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; hash = (53 * hash) + getDisplayName().hashCode(); hash = (37 * hash) + SUPPORT_SOURCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSupportSource()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getSupportSource()); hash = (37 * hash) + SUPPORT_TARGET_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSupportTarget()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getSupportTarget()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.translate.v3.SupportedLanguage parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.translate.v3.SupportedLanguage parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.SupportedLanguage 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.cloud.translate.v3.SupportedLanguage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.SupportedLanguage 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.cloud.translate.v3.SupportedLanguage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.SupportedLanguage 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.cloud.translate.v3.SupportedLanguage 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.cloud.translate.v3.SupportedLanguage 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.cloud.translate.v3.SupportedLanguage parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.SupportedLanguage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.SupportedLanguage 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.cloud.translate.v3.SupportedLanguage 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.cloud.translate.v3.SupportedLanguage 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.cloud.translate.v3.SupportedLanguage 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 single supported language response corresponds to information related
    * to one supported language.
@@ -468,23 +435,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.translation.v3.SupportedLanguage}
    */
-  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.translation.v3.SupportedLanguage)
       com.google.cloud.translate.v3.SupportedLanguageOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.translate.v3.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3_SupportedLanguage_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_SupportedLanguage_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.translate.v3.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3_SupportedLanguage_fieldAccessorTable
+      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_SupportedLanguage_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.translate.v3.SupportedLanguage.class,
-              com.google.cloud.translate.v3.SupportedLanguage.Builder.class);
+              com.google.cloud.translate.v3.SupportedLanguage.class, com.google.cloud.translate.v3.SupportedLanguage.Builder.class);
     }
 
     // Construct using com.google.cloud.translate.v3.SupportedLanguage.newBuilder()
@@ -492,15 +457,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -516,9 +482,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.translate.v3.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3_SupportedLanguage_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_SupportedLanguage_descriptor;
     }
 
     @java.lang.Override
@@ -537,8 +503,7 @@ public com.google.cloud.translate.v3.SupportedLanguage build() {
 
     @java.lang.Override
     public com.google.cloud.translate.v3.SupportedLanguage buildPartial() {
-      com.google.cloud.translate.v3.SupportedLanguage result =
-          new com.google.cloud.translate.v3.SupportedLanguage(this);
+      com.google.cloud.translate.v3.SupportedLanguage result = new com.google.cloud.translate.v3.SupportedLanguage(this);
       result.languageCode_ = languageCode_;
       result.displayName_ = displayName_;
       result.supportSource_ = supportSource_;
@@ -551,39 +516,38 @@ public com.google.cloud.translate.v3.SupportedLanguage 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.cloud.translate.v3.SupportedLanguage) {
-        return mergeFrom((com.google.cloud.translate.v3.SupportedLanguage) other);
+        return mergeFrom((com.google.cloud.translate.v3.SupportedLanguage)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -591,8 +555,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.translate.v3.SupportedLanguage other) {
-      if (other == com.google.cloud.translate.v3.SupportedLanguage.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.translate.v3.SupportedLanguage.getDefaultInstance()) return this;
       if (!other.getLanguageCode().isEmpty()) {
         languageCode_ = other.languageCode_;
         onChanged();
@@ -638,8 +601,6 @@ public Builder mergeFrom(
 
     private java.lang.Object languageCode_ = "";
     /**
-     *
-     *
      * 
      * Supported language code, generally consisting of its ISO 639-1
      * identifier, for example, 'en', 'ja'. In certain cases, BCP-47 codes
@@ -648,13 +609,13 @@ public Builder mergeFrom(
      * 
* * string language_code = 1; - * * @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; @@ -663,8 +624,6 @@ public java.lang.String getLanguageCode() { } } /** - * - * *
      * Supported language code, generally consisting of its ISO 639-1
      * identifier, for example, 'en', 'ja'. In certain cases, BCP-47 codes
@@ -673,14 +632,15 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 1; - * * @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 { @@ -688,8 +648,6 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } } /** - * - * *
      * Supported language code, generally consisting of its ISO 639-1
      * identifier, for example, 'en', 'ja'. In certain cases, BCP-47 codes
@@ -698,22 +656,20 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() {
      * 
* * string language_code = 1; - * * @param value The languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCode(java.lang.String value) { + public Builder setLanguageCode( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + languageCode_ = value; onChanged(); return this; } /** - * - * *
      * Supported language code, generally consisting of its ISO 639-1
      * identifier, for example, 'en', 'ja'. In certain cases, BCP-47 codes
@@ -722,18 +678,15 @@ public Builder setLanguageCode(java.lang.String value) {
      * 
* * string language_code = 1; - * * @return This builder for chaining. */ public Builder clearLanguageCode() { - + languageCode_ = getDefaultInstance().getLanguageCode(); onChanged(); return this; } /** - * - * *
      * Supported language code, generally consisting of its ISO 639-1
      * identifier, for example, 'en', 'ja'. In certain cases, BCP-47 codes
@@ -742,16 +695,16 @@ public Builder clearLanguageCode() {
      * 
* * string language_code = 1; - * * @param value The bytes for languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { + public Builder setLanguageCodeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + languageCode_ = value; onChanged(); return this; @@ -759,21 +712,19 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { private java.lang.Object displayName_ = ""; /** - * - * *
      * Human readable name of the language localized in the display language
      * specified in the request.
      * 
* * string display_name = 2; - * * @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; @@ -782,22 +733,21 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * Human readable name of the language localized in the display language
      * specified in the request.
      * 
* * string display_name = 2; - * * @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 { @@ -805,79 +755,69 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * Human readable name of the language localized in the display language
      * specified in the request.
      * 
* * string display_name = 2; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { + public Builder setDisplayName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** - * - * *
      * Human readable name of the language localized in the display language
      * specified in the request.
      * 
* * string display_name = 2; - * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** - * - * *
      * Human readable name of the language localized in the display language
      * specified in the request.
      * 
* * string display_name = 2; - * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; } - private boolean supportSource_; + private boolean supportSource_ ; /** - * - * *
      * Can be used as source language.
      * 
* * bool support_source = 3; - * * @return The supportSource. */ @java.lang.Override @@ -885,51 +825,42 @@ public boolean getSupportSource() { return supportSource_; } /** - * - * *
      * Can be used as source language.
      * 
* * bool support_source = 3; - * * @param value The supportSource to set. * @return This builder for chaining. */ public Builder setSupportSource(boolean value) { - + supportSource_ = value; onChanged(); return this; } /** - * - * *
      * Can be used as source language.
      * 
* * bool support_source = 3; - * * @return This builder for chaining. */ public Builder clearSupportSource() { - + supportSource_ = false; onChanged(); return this; } - private boolean supportTarget_; + private boolean supportTarget_ ; /** - * - * *
      * Can be used as target language.
      * 
* * bool support_target = 4; - * * @return The supportTarget. */ @java.lang.Override @@ -937,43 +868,37 @@ public boolean getSupportTarget() { return supportTarget_; } /** - * - * *
      * Can be used as target language.
      * 
* * bool support_target = 4; - * * @param value The supportTarget to set. * @return This builder for chaining. */ public Builder setSupportTarget(boolean value) { - + supportTarget_ = value; onChanged(); return this; } /** - * - * *
      * Can be used as target language.
      * 
* * bool support_target = 4; - * * @return This builder for chaining. */ public Builder clearSupportTarget() { - + supportTarget_ = false; 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); } @@ -983,12 +908,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.SupportedLanguage) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.SupportedLanguage) private static final com.google.cloud.translate.v3.SupportedLanguage DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.SupportedLanguage(); } @@ -997,16 +922,16 @@ public static com.google.cloud.translate.v3.SupportedLanguage getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SupportedLanguage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SupportedLanguage(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SupportedLanguage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SupportedLanguage(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1021,4 +946,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.SupportedLanguage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguageOrBuilder.java b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguageOrBuilder.java similarity index 69% rename from proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguageOrBuilder.java rename to owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguageOrBuilder.java index 2798fd96..3f08df15 100644 --- a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguageOrBuilder.java +++ b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguageOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 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/translate/v3/translation_service.proto package com.google.cloud.translate.v3; -public interface SupportedLanguageOrBuilder - extends +public interface SupportedLanguageOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.SupportedLanguage) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Supported language code, generally consisting of its ISO 639-1
    * identifier, for example, 'en', 'ja'. In certain cases, BCP-47 codes
@@ -34,13 +16,10 @@ public interface SupportedLanguageOrBuilder
    * 
* * string language_code = 1; - * * @return The languageCode. */ java.lang.String getLanguageCode(); /** - * - * *
    * Supported language code, generally consisting of its ISO 639-1
    * identifier, for example, 'en', 'ja'. In certain cases, BCP-47 codes
@@ -49,60 +28,49 @@ public interface SupportedLanguageOrBuilder
    * 
* * string language_code = 1; - * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString getLanguageCodeBytes(); + com.google.protobuf.ByteString + getLanguageCodeBytes(); /** - * - * *
    * Human readable name of the language localized in the display language
    * specified in the request.
    * 
* * string display_name = 2; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
    * Human readable name of the language localized in the display language
    * specified in the request.
    * 
* * string display_name = 2; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
    * Can be used as source language.
    * 
* * bool support_source = 3; - * * @return The supportSource. */ boolean getSupportSource(); /** - * - * *
    * Can be used as target language.
    * 
* * bool support_target = 4; - * * @return The supportTarget. */ boolean getSupportTarget(); diff --git a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguages.java b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguages.java similarity index 75% rename from proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguages.java rename to owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguages.java index 592faab3..06c86c3e 100644 --- a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguages.java +++ b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguages.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 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/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** - * - * *
  * The response message for discovering supported languages.
  * 
* * Protobuf type {@code google.cloud.translation.v3.SupportedLanguages} */ -public final class SupportedLanguages extends com.google.protobuf.GeneratedMessageV3 - implements +public final class SupportedLanguages extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.SupportedLanguages) SupportedLanguagesOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use SupportedLanguages.newBuilder() to construct. private SupportedLanguages(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SupportedLanguages() { languages_ = 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 SupportedLanguages(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private SupportedLanguages( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,31 +54,29 @@ private SupportedLanguages( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - languages_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - languages_.add( - input.readMessage( - com.google.cloud.translate.v3.SupportedLanguage.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + languages_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + languages_.add( + input.readMessage(com.google.cloud.translate.v3.SupportedLanguage.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { languages_ = java.util.Collections.unmodifiableList(languages_); @@ -104,27 +85,22 @@ private SupportedLanguages( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_SupportedLanguages_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_SupportedLanguages_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_SupportedLanguages_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_SupportedLanguages_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.SupportedLanguages.class, - com.google.cloud.translate.v3.SupportedLanguages.Builder.class); + com.google.cloud.translate.v3.SupportedLanguages.class, com.google.cloud.translate.v3.SupportedLanguages.Builder.class); } public static final int LANGUAGES_FIELD_NUMBER = 1; private java.util.List languages_; /** - * - * *
    * A list of supported language responses. This list contains an entry
    * for each language the Translation API supports.
@@ -137,8 +113,6 @@ public java.util.List getLangua
     return languages_;
   }
   /**
-   *
-   *
    * 
    * A list of supported language responses. This list contains an entry
    * for each language the Translation API supports.
@@ -147,13 +121,11 @@ public java.util.List getLangua
    * repeated .google.cloud.translation.v3.SupportedLanguage languages = 1;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getLanguagesOrBuilderList() {
     return languages_;
   }
   /**
-   *
-   *
    * 
    * A list of supported language responses. This list contains an entry
    * for each language the Translation API supports.
@@ -166,8 +138,6 @@ public int getLanguagesCount() {
     return languages_.size();
   }
   /**
-   *
-   *
    * 
    * A list of supported language responses. This list contains an entry
    * for each language the Translation API supports.
@@ -180,8 +150,6 @@ public com.google.cloud.translate.v3.SupportedLanguage getLanguages(int index) {
     return languages_.get(index);
   }
   /**
-   *
-   *
    * 
    * A list of supported language responses. This list contains an entry
    * for each language the Translation API supports.
@@ -190,12 +158,12 @@ public com.google.cloud.translate.v3.SupportedLanguage getLanguages(int index) {
    * repeated .google.cloud.translation.v3.SupportedLanguage languages = 1;
    */
   @java.lang.Override
-  public com.google.cloud.translate.v3.SupportedLanguageOrBuilder getLanguagesOrBuilder(int index) {
+  public com.google.cloud.translate.v3.SupportedLanguageOrBuilder getLanguagesOrBuilder(
+      int index) {
     return languages_.get(index);
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -207,7 +175,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 < languages_.size(); i++) {
       output.writeMessage(1, languages_.get(i));
     }
@@ -221,7 +190,8 @@ public int getSerializedSize() {
 
     size = 0;
     for (int i = 0; i < languages_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, languages_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, languages_.get(i));
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -231,15 +201,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.cloud.translate.v3.SupportedLanguages)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3.SupportedLanguages other =
-        (com.google.cloud.translate.v3.SupportedLanguages) obj;
+    com.google.cloud.translate.v3.SupportedLanguages other = (com.google.cloud.translate.v3.SupportedLanguages) obj;
 
-    if (!getLanguagesList().equals(other.getLanguagesList())) return false;
+    if (!getLanguagesList()
+        .equals(other.getLanguagesList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -260,127 +230,118 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.translate.v3.SupportedLanguages parseFrom(java.nio.ByteBuffer data)
+  public static com.google.cloud.translate.v3.SupportedLanguages parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3.SupportedLanguages 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.cloud.translate.v3.SupportedLanguages parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3.SupportedLanguages 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.cloud.translate.v3.SupportedLanguages parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3.SupportedLanguages 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.cloud.translate.v3.SupportedLanguages parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3.SupportedLanguages parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3.SupportedLanguages 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.cloud.translate.v3.SupportedLanguages parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3.SupportedLanguages parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3.SupportedLanguages 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.cloud.translate.v3.SupportedLanguages 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.cloud.translate.v3.SupportedLanguages 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.cloud.translate.v3.SupportedLanguages 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 message for discovering supported languages.
    * 
* * Protobuf type {@code google.cloud.translation.v3.SupportedLanguages} */ - 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.translation.v3.SupportedLanguages) com.google.cloud.translate.v3.SupportedLanguagesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_SupportedLanguages_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_SupportedLanguages_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_SupportedLanguages_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_SupportedLanguages_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.SupportedLanguages.class, - com.google.cloud.translate.v3.SupportedLanguages.Builder.class); + com.google.cloud.translate.v3.SupportedLanguages.class, com.google.cloud.translate.v3.SupportedLanguages.Builder.class); } // Construct using com.google.cloud.translate.v3.SupportedLanguages.newBuilder() @@ -388,17 +349,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getLanguagesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -412,9 +373,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_SupportedLanguages_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_SupportedLanguages_descriptor; } @java.lang.Override @@ -433,8 +394,7 @@ public com.google.cloud.translate.v3.SupportedLanguages build() { @java.lang.Override public com.google.cloud.translate.v3.SupportedLanguages buildPartial() { - com.google.cloud.translate.v3.SupportedLanguages result = - new com.google.cloud.translate.v3.SupportedLanguages(this); + com.google.cloud.translate.v3.SupportedLanguages result = new com.google.cloud.translate.v3.SupportedLanguages(this); int from_bitField0_ = bitField0_; if (languagesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -453,39 +413,38 @@ public com.google.cloud.translate.v3.SupportedLanguages 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.cloud.translate.v3.SupportedLanguages) { - return mergeFrom((com.google.cloud.translate.v3.SupportedLanguages) other); + return mergeFrom((com.google.cloud.translate.v3.SupportedLanguages)other); } else { super.mergeFrom(other); return this; @@ -493,8 +452,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.SupportedLanguages other) { - if (other == com.google.cloud.translate.v3.SupportedLanguages.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3.SupportedLanguages.getDefaultInstance()) return this; if (languagesBuilder_ == null) { if (!other.languages_.isEmpty()) { if (languages_.isEmpty()) { @@ -513,10 +471,9 @@ public Builder mergeFrom(com.google.cloud.translate.v3.SupportedLanguages other) languagesBuilder_ = null; languages_ = other.languages_; bitField0_ = (bitField0_ & ~0x00000001); - languagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getLanguagesFieldBuilder() - : null; + languagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getLanguagesFieldBuilder() : null; } else { languagesBuilder_.addAllMessages(other.languages_); } @@ -550,29 +507,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List languages_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureLanguagesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - languages_ = - new java.util.ArrayList(languages_); + languages_ = new java.util.ArrayList(languages_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.translate.v3.SupportedLanguage, - com.google.cloud.translate.v3.SupportedLanguage.Builder, - com.google.cloud.translate.v3.SupportedLanguageOrBuilder> - languagesBuilder_; + com.google.cloud.translate.v3.SupportedLanguage, com.google.cloud.translate.v3.SupportedLanguage.Builder, com.google.cloud.translate.v3.SupportedLanguageOrBuilder> languagesBuilder_; /** - * - * *
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -588,8 +537,6 @@ public java.util.List getLangua
       }
     }
     /**
-     *
-     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -605,8 +552,6 @@ public int getLanguagesCount() {
       }
     }
     /**
-     *
-     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -622,8 +567,6 @@ public com.google.cloud.translate.v3.SupportedLanguage getLanguages(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -631,7 +574,8 @@ public com.google.cloud.translate.v3.SupportedLanguage getLanguages(int index) {
      *
      * repeated .google.cloud.translation.v3.SupportedLanguage languages = 1;
      */
-    public Builder setLanguages(int index, com.google.cloud.translate.v3.SupportedLanguage value) {
+    public Builder setLanguages(
+        int index, com.google.cloud.translate.v3.SupportedLanguage value) {
       if (languagesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -645,8 +589,6 @@ public Builder setLanguages(int index, com.google.cloud.translate.v3.SupportedLa
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -666,8 +608,6 @@ public Builder setLanguages(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -689,8 +629,6 @@ public Builder addLanguages(com.google.cloud.translate.v3.SupportedLanguage valu
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -698,7 +636,8 @@ public Builder addLanguages(com.google.cloud.translate.v3.SupportedLanguage valu
      *
      * repeated .google.cloud.translation.v3.SupportedLanguage languages = 1;
      */
-    public Builder addLanguages(int index, com.google.cloud.translate.v3.SupportedLanguage value) {
+    public Builder addLanguages(
+        int index, com.google.cloud.translate.v3.SupportedLanguage value) {
       if (languagesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -712,8 +651,6 @@ public Builder addLanguages(int index, com.google.cloud.translate.v3.SupportedLa
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -733,8 +670,6 @@ public Builder addLanguages(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -754,8 +689,6 @@ public Builder addLanguages(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -767,7 +700,8 @@ public Builder addAllLanguages(
         java.lang.Iterable values) {
       if (languagesBuilder_ == null) {
         ensureLanguagesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, languages_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, languages_);
         onChanged();
       } else {
         languagesBuilder_.addAllMessages(values);
@@ -775,8 +709,6 @@ public Builder addAllLanguages(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -795,8 +727,6 @@ public Builder clearLanguages() {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -815,8 +745,6 @@ public Builder removeLanguages(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -824,12 +752,11 @@ public Builder removeLanguages(int index) {
      *
      * repeated .google.cloud.translation.v3.SupportedLanguage languages = 1;
      */
-    public com.google.cloud.translate.v3.SupportedLanguage.Builder getLanguagesBuilder(int index) {
+    public com.google.cloud.translate.v3.SupportedLanguage.Builder getLanguagesBuilder(
+        int index) {
       return getLanguagesFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -840,14 +767,11 @@ public com.google.cloud.translate.v3.SupportedLanguage.Builder getLanguagesBuild
     public com.google.cloud.translate.v3.SupportedLanguageOrBuilder getLanguagesOrBuilder(
         int index) {
       if (languagesBuilder_ == null) {
-        return languages_.get(index);
-      } else {
+        return languages_.get(index);  } else {
         return languagesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -855,8 +779,8 @@ public com.google.cloud.translate.v3.SupportedLanguageOrBuilder getLanguagesOrBu
      *
      * repeated .google.cloud.translation.v3.SupportedLanguage languages = 1;
      */
-    public java.util.List
-        getLanguagesOrBuilderList() {
+    public java.util.List 
+         getLanguagesOrBuilderList() {
       if (languagesBuilder_ != null) {
         return languagesBuilder_.getMessageOrBuilderList();
       } else {
@@ -864,8 +788,6 @@ public com.google.cloud.translate.v3.SupportedLanguageOrBuilder getLanguagesOrBu
       }
     }
     /**
-     *
-     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -874,12 +796,10 @@ public com.google.cloud.translate.v3.SupportedLanguageOrBuilder getLanguagesOrBu
      * repeated .google.cloud.translation.v3.SupportedLanguage languages = 1;
      */
     public com.google.cloud.translate.v3.SupportedLanguage.Builder addLanguagesBuilder() {
-      return getLanguagesFieldBuilder()
-          .addBuilder(com.google.cloud.translate.v3.SupportedLanguage.getDefaultInstance());
+      return getLanguagesFieldBuilder().addBuilder(
+          com.google.cloud.translate.v3.SupportedLanguage.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -887,13 +807,12 @@ public com.google.cloud.translate.v3.SupportedLanguage.Builder addLanguagesBuild
      *
      * repeated .google.cloud.translation.v3.SupportedLanguage languages = 1;
      */
-    public com.google.cloud.translate.v3.SupportedLanguage.Builder addLanguagesBuilder(int index) {
-      return getLanguagesFieldBuilder()
-          .addBuilder(index, com.google.cloud.translate.v3.SupportedLanguage.getDefaultInstance());
+    public com.google.cloud.translate.v3.SupportedLanguage.Builder addLanguagesBuilder(
+        int index) {
+      return getLanguagesFieldBuilder().addBuilder(
+          index, com.google.cloud.translate.v3.SupportedLanguage.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -901,30 +820,27 @@ public com.google.cloud.translate.v3.SupportedLanguage.Builder addLanguagesBuild
      *
      * repeated .google.cloud.translation.v3.SupportedLanguage languages = 1;
      */
-    public java.util.List
-        getLanguagesBuilderList() {
+    public java.util.List 
+         getLanguagesBuilderList() {
       return getLanguagesFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.translate.v3.SupportedLanguage,
-            com.google.cloud.translate.v3.SupportedLanguage.Builder,
-            com.google.cloud.translate.v3.SupportedLanguageOrBuilder>
+        com.google.cloud.translate.v3.SupportedLanguage, com.google.cloud.translate.v3.SupportedLanguage.Builder, com.google.cloud.translate.v3.SupportedLanguageOrBuilder> 
         getLanguagesFieldBuilder() {
       if (languagesBuilder_ == null) {
-        languagesBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.translate.v3.SupportedLanguage,
-                com.google.cloud.translate.v3.SupportedLanguage.Builder,
-                com.google.cloud.translate.v3.SupportedLanguageOrBuilder>(
-                languages_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        languagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.translate.v3.SupportedLanguage, com.google.cloud.translate.v3.SupportedLanguage.Builder, com.google.cloud.translate.v3.SupportedLanguageOrBuilder>(
+                languages_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         languages_ = null;
       }
       return languagesBuilder_;
     }
-
     @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);
     }
 
@@ -934,12 +850,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.SupportedLanguages)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.SupportedLanguages)
   private static final com.google.cloud.translate.v3.SupportedLanguages DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3.SupportedLanguages();
   }
@@ -948,16 +864,16 @@ public static com.google.cloud.translate.v3.SupportedLanguages getDefaultInstanc
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public SupportedLanguages parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new SupportedLanguages(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public SupportedLanguages parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new SupportedLanguages(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -972,4 +888,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3.SupportedLanguages getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguagesOrBuilder.java b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguagesOrBuilder.java
similarity index 71%
rename from proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguagesOrBuilder.java
rename to owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguagesOrBuilder.java
index 4e4e0345..098702c6 100644
--- a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguagesOrBuilder.java
+++ b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguagesOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2020 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/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
-public interface SupportedLanguagesOrBuilder
-    extends
+public interface SupportedLanguagesOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.SupportedLanguages)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * A list of supported language responses. This list contains an entry
    * for each language the Translation API supports.
@@ -33,10 +15,9 @@ public interface SupportedLanguagesOrBuilder
    *
    * repeated .google.cloud.translation.v3.SupportedLanguage languages = 1;
    */
-  java.util.List getLanguagesList();
+  java.util.List 
+      getLanguagesList();
   /**
-   *
-   *
    * 
    * A list of supported language responses. This list contains an entry
    * for each language the Translation API supports.
@@ -46,8 +27,6 @@ public interface SupportedLanguagesOrBuilder
    */
   com.google.cloud.translate.v3.SupportedLanguage getLanguages(int index);
   /**
-   *
-   *
    * 
    * A list of supported language responses. This list contains an entry
    * for each language the Translation API supports.
@@ -57,8 +36,6 @@ public interface SupportedLanguagesOrBuilder
    */
   int getLanguagesCount();
   /**
-   *
-   *
    * 
    * A list of supported language responses. This list contains an entry
    * for each language the Translation API supports.
@@ -66,11 +43,9 @@ public interface SupportedLanguagesOrBuilder
    *
    * repeated .google.cloud.translation.v3.SupportedLanguage languages = 1;
    */
-  java.util.List
+  java.util.List 
       getLanguagesOrBuilderList();
   /**
-   *
-   *
    * 
    * A list of supported language responses. This list contains an entry
    * for each language the Translation API supports.
@@ -78,5 +53,6 @@ public interface SupportedLanguagesOrBuilder
    *
    * repeated .google.cloud.translation.v3.SupportedLanguage languages = 1;
    */
-  com.google.cloud.translate.v3.SupportedLanguageOrBuilder getLanguagesOrBuilder(int index);
+  com.google.cloud.translate.v3.SupportedLanguageOrBuilder getLanguagesOrBuilder(
+      int index);
 }
diff --git a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentRequest.java b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentRequest.java
similarity index 69%
rename from proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentRequest.java
rename to owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentRequest.java
index 42c40916..1c2e8fab 100644
--- a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentRequest.java
+++ b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentRequest.java
@@ -1,42 +1,24 @@
-/*
- * Copyright 2020 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/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
 /**
- *
- *
  * 
  * A document translation request.
  * 
* * Protobuf type {@code google.cloud.translation.v3.TranslateDocumentRequest} */ -public final class TranslateDocumentRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class TranslateDocumentRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.TranslateDocumentRequest) TranslateDocumentRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use TranslateDocumentRequest.newBuilder() to construct. private TranslateDocumentRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TranslateDocumentRequest() { parent_ = ""; sourceLanguageCode_ = ""; @@ -46,15 +28,16 @@ private TranslateDocumentRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TranslateDocumentRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private TranslateDocumentRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -74,148 +57,129 @@ private TranslateDocumentRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - sourceLanguageCode_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + sourceLanguageCode_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - targetLanguageCode_ = s; - break; + targetLanguageCode_ = s; + break; + } + case 34: { + com.google.cloud.translate.v3.DocumentInputConfig.Builder subBuilder = null; + if (documentInputConfig_ != null) { + subBuilder = documentInputConfig_.toBuilder(); + } + documentInputConfig_ = input.readMessage(com.google.cloud.translate.v3.DocumentInputConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(documentInputConfig_); + documentInputConfig_ = subBuilder.buildPartial(); } - case 34: - { - com.google.cloud.translate.v3.DocumentInputConfig.Builder subBuilder = null; - if (documentInputConfig_ != null) { - subBuilder = documentInputConfig_.toBuilder(); - } - documentInputConfig_ = - input.readMessage( - com.google.cloud.translate.v3.DocumentInputConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(documentInputConfig_); - documentInputConfig_ = subBuilder.buildPartial(); - } - - break; + + break; + } + case 42: { + com.google.cloud.translate.v3.DocumentOutputConfig.Builder subBuilder = null; + if (documentOutputConfig_ != null) { + subBuilder = documentOutputConfig_.toBuilder(); } - case 42: - { - com.google.cloud.translate.v3.DocumentOutputConfig.Builder subBuilder = null; - if (documentOutputConfig_ != null) { - subBuilder = documentOutputConfig_.toBuilder(); - } - documentOutputConfig_ = - input.readMessage( - com.google.cloud.translate.v3.DocumentOutputConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(documentOutputConfig_); - documentOutputConfig_ = subBuilder.buildPartial(); - } - - break; + documentOutputConfig_ = input.readMessage(com.google.cloud.translate.v3.DocumentOutputConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(documentOutputConfig_); + documentOutputConfig_ = subBuilder.buildPartial(); } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - model_ = s; - break; + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + model_ = s; + break; + } + case 58: { + com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder subBuilder = null; + if (glossaryConfig_ != null) { + subBuilder = glossaryConfig_.toBuilder(); } - case 58: - { - com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder subBuilder = null; - if (glossaryConfig_ != null) { - subBuilder = glossaryConfig_.toBuilder(); - } - glossaryConfig_ = - input.readMessage( - com.google.cloud.translate.v3.TranslateTextGlossaryConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(glossaryConfig_); - glossaryConfig_ = subBuilder.buildPartial(); - } - - break; + glossaryConfig_ = input.readMessage(com.google.cloud.translate.v3.TranslateTextGlossaryConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(glossaryConfig_); + glossaryConfig_ = subBuilder.buildPartial(); } - case 66: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - labels_ = - com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); - break; + + break; + } + case 66: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put( + labels__.getKey(), labels__.getValue()); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_TranslateDocumentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateDocumentRequest_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 8: 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.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_TranslateDocumentRequest_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateDocumentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.TranslateDocumentRequest.class, - com.google.cloud.translate.v3.TranslateDocumentRequest.Builder.class); + com.google.cloud.translate.v3.TranslateDocumentRequest.class, com.google.cloud.translate.v3.TranslateDocumentRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. Location to make a regional call.
    * Format: `projects/{project-number-or-id}/locations/{location-id}`.
@@ -228,7 +192,6 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The parent. */ @java.lang.Override @@ -237,15 +200,14 @@ 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. Location to make a regional call.
    * Format: `projects/{project-number-or-id}/locations/{location-id}`.
@@ -258,15 +220,16 @@ public java.lang.String getParent() {
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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 { @@ -277,8 +240,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int SOURCE_LANGUAGE_CODE_FIELD_NUMBER = 2; private volatile java.lang.Object sourceLanguageCode_; /** - * - * *
    * Optional. The BCP-47 language code of the input document if known, for
    * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -289,7 +250,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The sourceLanguageCode. */ @java.lang.Override @@ -298,15 +258,14 @@ public java.lang.String getSourceLanguageCode() { 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(); sourceLanguageCode_ = s; return s; } } /** - * - * *
    * Optional. The BCP-47 language code of the input document if known, for
    * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -317,15 +276,16 @@ public java.lang.String getSourceLanguageCode() {
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for sourceLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { + public com.google.protobuf.ByteString + getSourceLanguageCodeBytes() { java.lang.Object ref = sourceLanguageCode_; 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); sourceLanguageCode_ = b; return b; } else { @@ -336,15 +296,12 @@ public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { public static final int TARGET_LANGUAGE_CODE_FIELD_NUMBER = 3; private volatile java.lang.Object targetLanguageCode_; /** - * - * *
    * Required. The BCP-47 language code to use for translation of the input
    * document, set to one of the language codes listed in Language Support.
    * 
* * string target_language_code = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The targetLanguageCode. */ @java.lang.Override @@ -353,30 +310,30 @@ public java.lang.String getTargetLanguageCode() { 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(); targetLanguageCode_ = s; return s; } } /** - * - * *
    * Required. The BCP-47 language code to use for translation of the input
    * document, set to one of the language codes listed in Language Support.
    * 
* * string target_language_code = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for targetLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { + public com.google.protobuf.ByteString + getTargetLanguageCodeBytes() { java.lang.Object ref = targetLanguageCode_; 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); targetLanguageCode_ = b; return b; } else { @@ -387,16 +344,11 @@ public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { public static final int DOCUMENT_INPUT_CONFIG_FIELD_NUMBER = 4; private com.google.cloud.translate.v3.DocumentInputConfig documentInputConfig_; /** - * - * *
    * Required. Input configurations.
    * 
* - * - * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the documentInputConfig field is set. */ @java.lang.Override @@ -404,46 +356,32 @@ public boolean hasDocumentInputConfig() { return documentInputConfig_ != null; } /** - * - * *
    * Required. Input configurations.
    * 
* - * - * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; * @return The documentInputConfig. */ @java.lang.Override public com.google.cloud.translate.v3.DocumentInputConfig getDocumentInputConfig() { - return documentInputConfig_ == null - ? com.google.cloud.translate.v3.DocumentInputConfig.getDefaultInstance() - : documentInputConfig_; + return documentInputConfig_ == null ? com.google.cloud.translate.v3.DocumentInputConfig.getDefaultInstance() : documentInputConfig_; } /** - * - * *
    * Required. Input configurations.
    * 
* - * - * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.translate.v3.DocumentInputConfigOrBuilder - getDocumentInputConfigOrBuilder() { + public com.google.cloud.translate.v3.DocumentInputConfigOrBuilder getDocumentInputConfigOrBuilder() { return getDocumentInputConfig(); } public static final int DOCUMENT_OUTPUT_CONFIG_FIELD_NUMBER = 5; private com.google.cloud.translate.v3.DocumentOutputConfig documentOutputConfig_; /** - * - * *
    * Optional. Output configurations.
    * Defines if the output file should be stored within Cloud Storage as well
@@ -452,10 +390,7 @@ public com.google.cloud.translate.v3.DocumentInputConfig getDocumentInputConfig(
    * the same as the input file's mime type.
    * 
* - * - * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the documentOutputConfig field is set. */ @java.lang.Override @@ -463,8 +398,6 @@ public boolean hasDocumentOutputConfig() { return documentOutputConfig_ != null; } /** - * - * *
    * Optional. Output configurations.
    * Defines if the output file should be stored within Cloud Storage as well
@@ -473,21 +406,14 @@ public boolean hasDocumentOutputConfig() {
    * the same as the input file's mime type.
    * 
* - * - * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The documentOutputConfig. */ @java.lang.Override public com.google.cloud.translate.v3.DocumentOutputConfig getDocumentOutputConfig() { - return documentOutputConfig_ == null - ? com.google.cloud.translate.v3.DocumentOutputConfig.getDefaultInstance() - : documentOutputConfig_; + return documentOutputConfig_ == null ? com.google.cloud.translate.v3.DocumentOutputConfig.getDefaultInstance() : documentOutputConfig_; } /** - * - * *
    * Optional. Output configurations.
    * Defines if the output file should be stored within Cloud Storage as well
@@ -496,21 +422,16 @@ public com.google.cloud.translate.v3.DocumentOutputConfig getDocumentOutputConfi
    * the same as the input file's mime type.
    * 
* - * - * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.translate.v3.DocumentOutputConfigOrBuilder - getDocumentOutputConfigOrBuilder() { + public com.google.cloud.translate.v3.DocumentOutputConfigOrBuilder getDocumentOutputConfigOrBuilder() { return getDocumentOutputConfig(); } public static final int MODEL_FIELD_NUMBER = 6; private volatile java.lang.Object model_; /** - * - * *
    * Optional. The `model` type requested for this translation.
    * The format depends on model type:
@@ -523,7 +444,6 @@ public com.google.cloud.translate.v3.DocumentOutputConfig getDocumentOutputConfi
    * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The model. */ @java.lang.Override @@ -532,15 +452,14 @@ public java.lang.String getModel() { 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(); model_ = s; return s; } } /** - * - * *
    * Optional. The `model` type requested for this translation.
    * The format depends on model type:
@@ -553,15 +472,16 @@ public java.lang.String getModel() {
    * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for model. */ @java.lang.Override - public com.google.protobuf.ByteString getModelBytes() { + public com.google.protobuf.ByteString + getModelBytes() { java.lang.Object ref = model_; 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); model_ = b; return b; } else { @@ -572,18 +492,13 @@ public com.google.protobuf.ByteString getModelBytes() { public static final int GLOSSARY_CONFIG_FIELD_NUMBER = 7; private com.google.cloud.translate.v3.TranslateTextGlossaryConfig glossaryConfig_; /** - * - * *
    * Optional. Glossary to be applied. The glossary must be within the same
    * region (have the same location-id) as the model, otherwise an
    * INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the glossaryConfig field is set. */ @java.lang.Override @@ -591,63 +506,52 @@ public boolean hasGlossaryConfig() { return glossaryConfig_ != null; } /** - * - * *
    * Optional. Glossary to be applied. The glossary must be within the same
    * region (have the same location-id) as the model, otherwise an
    * INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The glossaryConfig. */ @java.lang.Override public com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossaryConfig() { - return glossaryConfig_ == null - ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() - : glossaryConfig_; + return glossaryConfig_ == null ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; } /** - * - * *
    * Optional. Glossary to be applied. The glossary must be within the same
    * region (have the same location-id) as the model, otherwise an
    * INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder - getGlossaryConfigOrBuilder() { + public com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder getGlossaryConfigOrBuilder() { return getGlossaryConfig(); } public static final int LABELS_FIELD_NUMBER = 8; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_TranslateDocumentRequest_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.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateDocumentRequest_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - - 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_; } @@ -656,8 +560,6 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Optional. The labels with user-defined metadata for the request.
    * Label keys and values can be no longer than 63 characters (Unicode
@@ -670,22 +572,22 @@ public int getLabelsCount() {
    *
    * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    */
+
   @java.lang.Override
-  public boolean containsLabels(java.lang.String key) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
+  public boolean containsLabels(
+      java.lang.String key) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
     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. The labels with user-defined metadata for the request.
    * Label keys and values can be no longer than 63 characters (Unicode
@@ -699,12 +601,11 @@ public java.util.Map getLabels() {
    * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
+
   public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    * Label keys and values can be no longer than 63 characters (Unicode
@@ -718,16 +619,16 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
-    java.util.Map map = internalGetLabels().getMap();
+
+  public java.lang.String getLabelsOrDefault(
+      java.lang.String key,
+      java.lang.String defaultValue) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    * Label keys and values can be no longer than 63 characters (Unicode
@@ -741,11 +642,12 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin
    * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
-    java.util.Map map = internalGetLabels().getMap();
+
+  public java.lang.String getLabelsOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -753,7 +655,6 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -765,14 +666,15 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
-    if (!getParentBytes().isEmpty()) {
+  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_);
     }
-    if (!getSourceLanguageCodeBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceLanguageCode_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 2, sourceLanguageCode_);
     }
-    if (!getTargetLanguageCodeBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetLanguageCode_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 3, targetLanguageCode_);
     }
     if (documentInputConfig_ != null) {
@@ -781,14 +683,18 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
     if (documentOutputConfig_ != null) {
       output.writeMessage(5, getDocumentOutputConfig());
     }
-    if (!getModelBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(model_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 6, model_);
     }
     if (glossaryConfig_ != null) {
       output.writeMessage(7, getGlossaryConfig());
     }
-    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
-        output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 8);
+    com.google.protobuf.GeneratedMessageV3
+      .serializeStringMapTo(
+        output,
+        internalGetLabels(),
+        LabelsDefaultEntryHolder.defaultEntry,
+        8);
     unknownFields.writeTo(output);
   }
 
@@ -798,37 +704,39 @@ public int getSerializedSize() {
     if (size != -1) return size;
 
     size = 0;
-    if (!getParentBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_);
     }
-    if (!getSourceLanguageCodeBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceLanguageCode_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, sourceLanguageCode_);
     }
-    if (!getTargetLanguageCodeBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetLanguageCode_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, targetLanguageCode_);
     }
     if (documentInputConfig_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getDocumentInputConfig());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(4, getDocumentInputConfig());
     }
     if (documentOutputConfig_ != null) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(5, getDocumentOutputConfig());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(5, getDocumentOutputConfig());
     }
-    if (!getModelBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(model_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, model_);
     }
     if (glossaryConfig_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getGlossaryConfig());
-    }
-    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(8, labels__);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(7, getGlossaryConfig());
+    }
+    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(8, labels__);
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -838,31 +746,38 @@ 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.cloud.translate.v3.TranslateDocumentRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3.TranslateDocumentRequest other =
-        (com.google.cloud.translate.v3.TranslateDocumentRequest) obj;
+    com.google.cloud.translate.v3.TranslateDocumentRequest other = (com.google.cloud.translate.v3.TranslateDocumentRequest) obj;
 
-    if (!getParent().equals(other.getParent())) return false;
-    if (!getSourceLanguageCode().equals(other.getSourceLanguageCode())) return false;
-    if (!getTargetLanguageCode().equals(other.getTargetLanguageCode())) return false;
+    if (!getParent()
+        .equals(other.getParent())) return false;
+    if (!getSourceLanguageCode()
+        .equals(other.getSourceLanguageCode())) return false;
+    if (!getTargetLanguageCode()
+        .equals(other.getTargetLanguageCode())) return false;
     if (hasDocumentInputConfig() != other.hasDocumentInputConfig()) return false;
     if (hasDocumentInputConfig()) {
-      if (!getDocumentInputConfig().equals(other.getDocumentInputConfig())) return false;
+      if (!getDocumentInputConfig()
+          .equals(other.getDocumentInputConfig())) return false;
     }
     if (hasDocumentOutputConfig() != other.hasDocumentOutputConfig()) return false;
     if (hasDocumentOutputConfig()) {
-      if (!getDocumentOutputConfig().equals(other.getDocumentOutputConfig())) return false;
+      if (!getDocumentOutputConfig()
+          .equals(other.getDocumentOutputConfig())) return false;
     }
-    if (!getModel().equals(other.getModel())) return false;
+    if (!getModel()
+        .equals(other.getModel())) return false;
     if (hasGlossaryConfig() != other.hasGlossaryConfig()) return false;
     if (hasGlossaryConfig()) {
-      if (!getGlossaryConfig().equals(other.getGlossaryConfig())) return false;
+      if (!getGlossaryConfig()
+          .equals(other.getGlossaryConfig())) return false;
     }
-    if (!internalGetLabels().equals(other.internalGetLabels())) return false;
+    if (!internalGetLabels().equals(
+        other.internalGetLabels())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -904,147 +819,139 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3.TranslateDocumentRequest 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.cloud.translate.v3.TranslateDocumentRequest 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.cloud.translate.v3.TranslateDocumentRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3.TranslateDocumentRequest 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.cloud.translate.v3.TranslateDocumentRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3.TranslateDocumentRequest 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.cloud.translate.v3.TranslateDocumentRequest parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3.TranslateDocumentRequest parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3.TranslateDocumentRequest 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.cloud.translate.v3.TranslateDocumentRequest parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3.TranslateDocumentRequest parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3.TranslateDocumentRequest 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.cloud.translate.v3.TranslateDocumentRequest 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.cloud.translate.v3.TranslateDocumentRequest 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.cloud.translate.v3.TranslateDocumentRequest prototype) {
+  public static Builder newBuilder(com.google.cloud.translate.v3.TranslateDocumentRequest 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 document translation request.
    * 
* * Protobuf type {@code google.cloud.translation.v3.TranslateDocumentRequest} */ - 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.translation.v3.TranslateDocumentRequest) com.google.cloud.translate.v3.TranslateDocumentRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_TranslateDocumentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateDocumentRequest_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 8: 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 8: 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.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_TranslateDocumentRequest_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateDocumentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.TranslateDocumentRequest.class, - com.google.cloud.translate.v3.TranslateDocumentRequest.Builder.class); + com.google.cloud.translate.v3.TranslateDocumentRequest.class, com.google.cloud.translate.v3.TranslateDocumentRequest.Builder.class); } // Construct using com.google.cloud.translate.v3.TranslateDocumentRequest.newBuilder() @@ -1052,15 +959,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1095,9 +1003,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_TranslateDocumentRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateDocumentRequest_descriptor; } @java.lang.Override @@ -1116,8 +1024,7 @@ public com.google.cloud.translate.v3.TranslateDocumentRequest build() { @java.lang.Override public com.google.cloud.translate.v3.TranslateDocumentRequest buildPartial() { - com.google.cloud.translate.v3.TranslateDocumentRequest result = - new com.google.cloud.translate.v3.TranslateDocumentRequest(this); + com.google.cloud.translate.v3.TranslateDocumentRequest result = new com.google.cloud.translate.v3.TranslateDocumentRequest(this); int from_bitField0_ = bitField0_; result.parent_ = parent_; result.sourceLanguageCode_ = sourceLanguageCode_; @@ -1148,39 +1055,38 @@ public com.google.cloud.translate.v3.TranslateDocumentRequest 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.cloud.translate.v3.TranslateDocumentRequest) { - return mergeFrom((com.google.cloud.translate.v3.TranslateDocumentRequest) other); + return mergeFrom((com.google.cloud.translate.v3.TranslateDocumentRequest)other); } else { super.mergeFrom(other); return this; @@ -1188,8 +1094,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.TranslateDocumentRequest other) { - if (other == com.google.cloud.translate.v3.TranslateDocumentRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3.TranslateDocumentRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -1215,7 +1120,8 @@ public Builder mergeFrom(com.google.cloud.translate.v3.TranslateDocumentRequest if (other.hasGlossaryConfig()) { mergeGlossaryConfig(other.getGlossaryConfig()); } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -1235,8 +1141,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.translate.v3.TranslateDocumentRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.translate.v3.TranslateDocumentRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1245,13 +1150,10 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Location to make a regional call.
      * Format: `projects/{project-number-or-id}/locations/{location-id}`.
@@ -1264,13 +1166,13 @@ public Builder mergeFrom(
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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; @@ -1279,8 +1181,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Location to make a regional call.
      * Format: `projects/{project-number-or-id}/locations/{location-id}`.
@@ -1293,14 +1193,15 @@ public java.lang.String getParent() {
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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 { @@ -1308,8 +1209,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Location to make a regional call.
      * Format: `projects/{project-number-or-id}/locations/{location-id}`.
@@ -1322,22 +1221,20 @@ public com.google.protobuf.ByteString getParentBytes() {
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. Location to make a regional call.
      * Format: `projects/{project-number-or-id}/locations/{location-id}`.
@@ -1350,18 +1247,15 @@ public Builder setParent(java.lang.String value) {
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. Location to make a regional call.
      * Format: `projects/{project-number-or-id}/locations/{location-id}`.
@@ -1374,16 +1268,16 @@ public Builder clearParent() {
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -1391,8 +1285,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object sourceLanguageCode_ = ""; /** - * - * *
      * Optional. The BCP-47 language code of the input document if known, for
      * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -1403,13 +1295,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The sourceLanguageCode. */ public java.lang.String getSourceLanguageCode() { java.lang.Object ref = sourceLanguageCode_; 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(); sourceLanguageCode_ = s; return s; @@ -1418,8 +1310,6 @@ public java.lang.String getSourceLanguageCode() { } } /** - * - * *
      * Optional. The BCP-47 language code of the input document if known, for
      * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -1430,14 +1320,15 @@ public java.lang.String getSourceLanguageCode() {
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for sourceLanguageCode. */ - public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { + public com.google.protobuf.ByteString + getSourceLanguageCodeBytes() { java.lang.Object ref = sourceLanguageCode_; 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); sourceLanguageCode_ = b; return b; } else { @@ -1445,8 +1336,6 @@ public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { } } /** - * - * *
      * Optional. The BCP-47 language code of the input document if known, for
      * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -1457,22 +1346,20 @@ public com.google.protobuf.ByteString getSourceLanguageCodeBytes() {
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCode(java.lang.String value) { + public Builder setSourceLanguageCode( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + sourceLanguageCode_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The BCP-47 language code of the input document if known, for
      * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -1483,18 +1370,15 @@ public Builder setSourceLanguageCode(java.lang.String value) {
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearSourceLanguageCode() { - + sourceLanguageCode_ = getDefaultInstance().getSourceLanguageCode(); onChanged(); return this; } /** - * - * *
      * Optional. The BCP-47 language code of the input document if known, for
      * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -1505,16 +1389,16 @@ public Builder clearSourceLanguageCode() {
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCodeBytes(com.google.protobuf.ByteString value) { + public Builder setSourceLanguageCodeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceLanguageCode_ = value; onChanged(); return this; @@ -1522,21 +1406,19 @@ public Builder setSourceLanguageCodeBytes(com.google.protobuf.ByteString value) private java.lang.Object targetLanguageCode_ = ""; /** - * - * *
      * Required. The BCP-47 language code to use for translation of the input
      * document, set to one of the language codes listed in Language Support.
      * 
* * string target_language_code = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The targetLanguageCode. */ public java.lang.String getTargetLanguageCode() { java.lang.Object ref = targetLanguageCode_; 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(); targetLanguageCode_ = s; return s; @@ -1545,22 +1427,21 @@ public java.lang.String getTargetLanguageCode() { } } /** - * - * *
      * Required. The BCP-47 language code to use for translation of the input
      * document, set to one of the language codes listed in Language Support.
      * 
* * string target_language_code = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for targetLanguageCode. */ - public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { + public com.google.protobuf.ByteString + getTargetLanguageCodeBytes() { java.lang.Object ref = targetLanguageCode_; 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); targetLanguageCode_ = b; return b; } else { @@ -1568,64 +1449,57 @@ public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { } } /** - * - * *
      * Required. The BCP-47 language code to use for translation of the input
      * document, set to one of the language codes listed in Language Support.
      * 
* * string target_language_code = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The targetLanguageCode to set. * @return This builder for chaining. */ - public Builder setTargetLanguageCode(java.lang.String value) { + public Builder setTargetLanguageCode( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + targetLanguageCode_ = value; onChanged(); return this; } /** - * - * *
      * Required. The BCP-47 language code to use for translation of the input
      * document, set to one of the language codes listed in Language Support.
      * 
* * string target_language_code = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearTargetLanguageCode() { - + targetLanguageCode_ = getDefaultInstance().getTargetLanguageCode(); onChanged(); return this; } /** - * - * *
      * Required. The BCP-47 language code to use for translation of the input
      * document, set to one of the language codes listed in Language Support.
      * 
* * string target_language_code = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for targetLanguageCode to set. * @return This builder for chaining. */ - public Builder setTargetLanguageCodeBytes(com.google.protobuf.ByteString value) { + public Builder setTargetLanguageCodeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + targetLanguageCode_ = value; onChanged(); return this; @@ -1633,58 +1507,39 @@ public Builder setTargetLanguageCodeBytes(com.google.protobuf.ByteString value) private com.google.cloud.translate.v3.DocumentInputConfig documentInputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.DocumentInputConfig, - com.google.cloud.translate.v3.DocumentInputConfig.Builder, - com.google.cloud.translate.v3.DocumentInputConfigOrBuilder> - documentInputConfigBuilder_; + com.google.cloud.translate.v3.DocumentInputConfig, com.google.cloud.translate.v3.DocumentInputConfig.Builder, com.google.cloud.translate.v3.DocumentInputConfigOrBuilder> documentInputConfigBuilder_; /** - * - * *
      * Required. Input configurations.
      * 
* - * - * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the documentInputConfig field is set. */ public boolean hasDocumentInputConfig() { return documentInputConfigBuilder_ != null || documentInputConfig_ != null; } /** - * - * *
      * Required. Input configurations.
      * 
* - * - * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; * @return The documentInputConfig. */ public com.google.cloud.translate.v3.DocumentInputConfig getDocumentInputConfig() { if (documentInputConfigBuilder_ == null) { - return documentInputConfig_ == null - ? com.google.cloud.translate.v3.DocumentInputConfig.getDefaultInstance() - : documentInputConfig_; + return documentInputConfig_ == null ? com.google.cloud.translate.v3.DocumentInputConfig.getDefaultInstance() : documentInputConfig_; } else { return documentInputConfigBuilder_.getMessage(); } } /** - * - * *
      * Required. Input configurations.
      * 
* - * - * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setDocumentInputConfig(com.google.cloud.translate.v3.DocumentInputConfig value) { if (documentInputConfigBuilder_ == null) { @@ -1700,15 +1555,11 @@ public Builder setDocumentInputConfig(com.google.cloud.translate.v3.DocumentInpu return this; } /** - * - * *
      * Required. Input configurations.
      * 
* - * - * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setDocumentInputConfig( com.google.cloud.translate.v3.DocumentInputConfig.Builder builderForValue) { @@ -1722,24 +1573,17 @@ public Builder setDocumentInputConfig( return this; } /** - * - * *
      * Required. Input configurations.
      * 
* - * - * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeDocumentInputConfig( - com.google.cloud.translate.v3.DocumentInputConfig value) { + public Builder mergeDocumentInputConfig(com.google.cloud.translate.v3.DocumentInputConfig value) { if (documentInputConfigBuilder_ == null) { if (documentInputConfig_ != null) { documentInputConfig_ = - com.google.cloud.translate.v3.DocumentInputConfig.newBuilder(documentInputConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.translate.v3.DocumentInputConfig.newBuilder(documentInputConfig_).mergeFrom(value).buildPartial(); } else { documentInputConfig_ = value; } @@ -1751,15 +1595,11 @@ public Builder mergeDocumentInputConfig( return this; } /** - * - * *
      * Required. Input configurations.
      * 
* - * - * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearDocumentInputConfig() { if (documentInputConfigBuilder_ == null) { @@ -1773,66 +1613,48 @@ public Builder clearDocumentInputConfig() { return this; } /** - * - * *
      * Required. Input configurations.
      * 
* - * - * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.translate.v3.DocumentInputConfig.Builder - getDocumentInputConfigBuilder() { - + public com.google.cloud.translate.v3.DocumentInputConfig.Builder getDocumentInputConfigBuilder() { + onChanged(); return getDocumentInputConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Input configurations.
      * 
* - * - * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.translate.v3.DocumentInputConfigOrBuilder - getDocumentInputConfigOrBuilder() { + public com.google.cloud.translate.v3.DocumentInputConfigOrBuilder getDocumentInputConfigOrBuilder() { if (documentInputConfigBuilder_ != null) { return documentInputConfigBuilder_.getMessageOrBuilder(); } else { - return documentInputConfig_ == null - ? com.google.cloud.translate.v3.DocumentInputConfig.getDefaultInstance() - : documentInputConfig_; + return documentInputConfig_ == null ? + com.google.cloud.translate.v3.DocumentInputConfig.getDefaultInstance() : documentInputConfig_; } } /** - * - * *
      * Required. Input configurations.
      * 
* - * - * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.DocumentInputConfig, - com.google.cloud.translate.v3.DocumentInputConfig.Builder, - com.google.cloud.translate.v3.DocumentInputConfigOrBuilder> + com.google.cloud.translate.v3.DocumentInputConfig, com.google.cloud.translate.v3.DocumentInputConfig.Builder, com.google.cloud.translate.v3.DocumentInputConfigOrBuilder> getDocumentInputConfigFieldBuilder() { if (documentInputConfigBuilder_ == null) { - documentInputConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.DocumentInputConfig, - com.google.cloud.translate.v3.DocumentInputConfig.Builder, - com.google.cloud.translate.v3.DocumentInputConfigOrBuilder>( - getDocumentInputConfig(), getParentForChildren(), isClean()); + documentInputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3.DocumentInputConfig, com.google.cloud.translate.v3.DocumentInputConfig.Builder, com.google.cloud.translate.v3.DocumentInputConfigOrBuilder>( + getDocumentInputConfig(), + getParentForChildren(), + isClean()); documentInputConfig_ = null; } return documentInputConfigBuilder_; @@ -1840,13 +1662,8 @@ public Builder clearDocumentInputConfig() { private com.google.cloud.translate.v3.DocumentOutputConfig documentOutputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.DocumentOutputConfig, - com.google.cloud.translate.v3.DocumentOutputConfig.Builder, - com.google.cloud.translate.v3.DocumentOutputConfigOrBuilder> - documentOutputConfigBuilder_; + com.google.cloud.translate.v3.DocumentOutputConfig, com.google.cloud.translate.v3.DocumentOutputConfig.Builder, com.google.cloud.translate.v3.DocumentOutputConfigOrBuilder> documentOutputConfigBuilder_; /** - * - * *
      * Optional. Output configurations.
      * Defines if the output file should be stored within Cloud Storage as well
@@ -1855,18 +1672,13 @@ public Builder clearDocumentInputConfig() {
      * the same as the input file's mime type.
      * 
* - * - * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the documentOutputConfig field is set. */ public boolean hasDocumentOutputConfig() { return documentOutputConfigBuilder_ != null || documentOutputConfig_ != null; } /** - * - * *
      * Optional. Output configurations.
      * Defines if the output file should be stored within Cloud Storage as well
@@ -1875,24 +1687,17 @@ public boolean hasDocumentOutputConfig() {
      * the same as the input file's mime type.
      * 
* - * - * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The documentOutputConfig. */ public com.google.cloud.translate.v3.DocumentOutputConfig getDocumentOutputConfig() { if (documentOutputConfigBuilder_ == null) { - return documentOutputConfig_ == null - ? com.google.cloud.translate.v3.DocumentOutputConfig.getDefaultInstance() - : documentOutputConfig_; + return documentOutputConfig_ == null ? com.google.cloud.translate.v3.DocumentOutputConfig.getDefaultInstance() : documentOutputConfig_; } else { return documentOutputConfigBuilder_.getMessage(); } } /** - * - * *
      * Optional. Output configurations.
      * Defines if the output file should be stored within Cloud Storage as well
@@ -1901,12 +1706,9 @@ public com.google.cloud.translate.v3.DocumentOutputConfig getDocumentOutputConfi
      * the same as the input file's mime type.
      * 
* - * - * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setDocumentOutputConfig( - com.google.cloud.translate.v3.DocumentOutputConfig value) { + public Builder setDocumentOutputConfig(com.google.cloud.translate.v3.DocumentOutputConfig value) { if (documentOutputConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1920,8 +1722,6 @@ public Builder setDocumentOutputConfig( return this; } /** - * - * *
      * Optional. Output configurations.
      * Defines if the output file should be stored within Cloud Storage as well
@@ -1930,9 +1730,7 @@ public Builder setDocumentOutputConfig(
      * the same as the input file's mime type.
      * 
* - * - * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setDocumentOutputConfig( com.google.cloud.translate.v3.DocumentOutputConfig.Builder builderForValue) { @@ -1946,8 +1744,6 @@ public Builder setDocumentOutputConfig( return this; } /** - * - * *
      * Optional. Output configurations.
      * Defines if the output file should be stored within Cloud Storage as well
@@ -1956,18 +1752,13 @@ public Builder setDocumentOutputConfig(
      * the same as the input file's mime type.
      * 
* - * - * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergeDocumentOutputConfig( - com.google.cloud.translate.v3.DocumentOutputConfig value) { + public Builder mergeDocumentOutputConfig(com.google.cloud.translate.v3.DocumentOutputConfig value) { if (documentOutputConfigBuilder_ == null) { if (documentOutputConfig_ != null) { documentOutputConfig_ = - com.google.cloud.translate.v3.DocumentOutputConfig.newBuilder(documentOutputConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.translate.v3.DocumentOutputConfig.newBuilder(documentOutputConfig_).mergeFrom(value).buildPartial(); } else { documentOutputConfig_ = value; } @@ -1979,8 +1770,6 @@ public Builder mergeDocumentOutputConfig( return this; } /** - * - * *
      * Optional. Output configurations.
      * Defines if the output file should be stored within Cloud Storage as well
@@ -1989,9 +1778,7 @@ public Builder mergeDocumentOutputConfig(
      * the same as the input file's mime type.
      * 
* - * - * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearDocumentOutputConfig() { if (documentOutputConfigBuilder_ == null) { @@ -2005,8 +1792,6 @@ public Builder clearDocumentOutputConfig() { return this; } /** - * - * *
      * Optional. Output configurations.
      * Defines if the output file should be stored within Cloud Storage as well
@@ -2015,19 +1800,14 @@ public Builder clearDocumentOutputConfig() {
      * the same as the input file's mime type.
      * 
* - * - * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.translate.v3.DocumentOutputConfig.Builder - getDocumentOutputConfigBuilder() { - + public com.google.cloud.translate.v3.DocumentOutputConfig.Builder getDocumentOutputConfigBuilder() { + onChanged(); return getDocumentOutputConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Output configurations.
      * Defines if the output file should be stored within Cloud Storage as well
@@ -2036,23 +1816,17 @@ public Builder clearDocumentOutputConfig() {
      * the same as the input file's mime type.
      * 
* - * - * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.translate.v3.DocumentOutputConfigOrBuilder - getDocumentOutputConfigOrBuilder() { + public com.google.cloud.translate.v3.DocumentOutputConfigOrBuilder getDocumentOutputConfigOrBuilder() { if (documentOutputConfigBuilder_ != null) { return documentOutputConfigBuilder_.getMessageOrBuilder(); } else { - return documentOutputConfig_ == null - ? com.google.cloud.translate.v3.DocumentOutputConfig.getDefaultInstance() - : documentOutputConfig_; + return documentOutputConfig_ == null ? + com.google.cloud.translate.v3.DocumentOutputConfig.getDefaultInstance() : documentOutputConfig_; } } /** - * - * *
      * Optional. Output configurations.
      * Defines if the output file should be stored within Cloud Storage as well
@@ -2061,22 +1835,17 @@ public Builder clearDocumentOutputConfig() {
      * the same as the input file's mime type.
      * 
* - * - * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.DocumentOutputConfig, - com.google.cloud.translate.v3.DocumentOutputConfig.Builder, - com.google.cloud.translate.v3.DocumentOutputConfigOrBuilder> + com.google.cloud.translate.v3.DocumentOutputConfig, com.google.cloud.translate.v3.DocumentOutputConfig.Builder, com.google.cloud.translate.v3.DocumentOutputConfigOrBuilder> getDocumentOutputConfigFieldBuilder() { if (documentOutputConfigBuilder_ == null) { - documentOutputConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.DocumentOutputConfig, - com.google.cloud.translate.v3.DocumentOutputConfig.Builder, - com.google.cloud.translate.v3.DocumentOutputConfigOrBuilder>( - getDocumentOutputConfig(), getParentForChildren(), isClean()); + documentOutputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3.DocumentOutputConfig, com.google.cloud.translate.v3.DocumentOutputConfig.Builder, com.google.cloud.translate.v3.DocumentOutputConfigOrBuilder>( + getDocumentOutputConfig(), + getParentForChildren(), + isClean()); documentOutputConfig_ = null; } return documentOutputConfigBuilder_; @@ -2084,8 +1853,6 @@ public Builder clearDocumentOutputConfig() { private java.lang.Object model_ = ""; /** - * - * *
      * Optional. The `model` type requested for this translation.
      * The format depends on model type:
@@ -2098,13 +1865,13 @@ public Builder clearDocumentOutputConfig() {
      * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; 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(); model_ = s; return s; @@ -2113,8 +1880,6 @@ public java.lang.String getModel() { } } /** - * - * *
      * Optional. The `model` type requested for this translation.
      * The format depends on model type:
@@ -2127,14 +1892,15 @@ public java.lang.String getModel() {
      * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for model. */ - public com.google.protobuf.ByteString getModelBytes() { + public com.google.protobuf.ByteString + getModelBytes() { java.lang.Object ref = model_; 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); model_ = b; return b; } else { @@ -2142,8 +1908,6 @@ public com.google.protobuf.ByteString getModelBytes() { } } /** - * - * *
      * Optional. The `model` type requested for this translation.
      * The format depends on model type:
@@ -2156,22 +1920,20 @@ public com.google.protobuf.ByteString getModelBytes() {
      * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The model to set. * @return This builder for chaining. */ - public Builder setModel(java.lang.String value) { + public Builder setModel( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + model_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The `model` type requested for this translation.
      * The format depends on model type:
@@ -2184,18 +1946,15 @@ public Builder setModel(java.lang.String value) {
      * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearModel() { - + model_ = getDefaultInstance().getModel(); onChanged(); return this; } /** - * - * *
      * Optional. The `model` type requested for this translation.
      * The format depends on model type:
@@ -2208,16 +1967,16 @@ public Builder clearModel() {
      * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for model to set. * @return This builder for chaining. */ - public Builder setModelBytes(com.google.protobuf.ByteString value) { + public Builder setModelBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + model_ = value; onChanged(); return this; @@ -2225,67 +1984,47 @@ public Builder setModelBytes(com.google.protobuf.ByteString value) { private com.google.cloud.translate.v3.TranslateTextGlossaryConfig glossaryConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.TranslateTextGlossaryConfig, - com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, - com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder> - glossaryConfigBuilder_; + com.google.cloud.translate.v3.TranslateTextGlossaryConfig, com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder> glossaryConfigBuilder_; /** - * - * *
      * Optional. Glossary to be applied. The glossary must be within the same
      * region (have the same location-id) as the model, otherwise an
      * INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the glossaryConfig field is set. */ public boolean hasGlossaryConfig() { return glossaryConfigBuilder_ != null || glossaryConfig_ != null; } /** - * - * *
      * Optional. Glossary to be applied. The glossary must be within the same
      * region (have the same location-id) as the model, otherwise an
      * INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The glossaryConfig. */ public com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossaryConfig() { if (glossaryConfigBuilder_ == null) { - return glossaryConfig_ == null - ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() - : glossaryConfig_; + return glossaryConfig_ == null ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; } else { return glossaryConfigBuilder_.getMessage(); } } /** - * - * *
      * Optional. Glossary to be applied. The glossary must be within the same
      * region (have the same location-id) as the model, otherwise an
      * INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setGlossaryConfig( - com.google.cloud.translate.v3.TranslateTextGlossaryConfig value) { + public Builder setGlossaryConfig(com.google.cloud.translate.v3.TranslateTextGlossaryConfig value) { if (glossaryConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2299,17 +2038,13 @@ public Builder setGlossaryConfig( return this; } /** - * - * *
      * Optional. Glossary to be applied. The glossary must be within the same
      * region (have the same location-id) as the model, otherwise an
      * INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setGlossaryConfig( com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder builderForValue) { @@ -2323,26 +2058,19 @@ public Builder setGlossaryConfig( return this; } /** - * - * *
      * Optional. Glossary to be applied. The glossary must be within the same
      * region (have the same location-id) as the model, otherwise an
      * INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergeGlossaryConfig( - com.google.cloud.translate.v3.TranslateTextGlossaryConfig value) { + public Builder mergeGlossaryConfig(com.google.cloud.translate.v3.TranslateTextGlossaryConfig value) { if (glossaryConfigBuilder_ == null) { if (glossaryConfig_ != null) { glossaryConfig_ = - com.google.cloud.translate.v3.TranslateTextGlossaryConfig.newBuilder(glossaryConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.translate.v3.TranslateTextGlossaryConfig.newBuilder(glossaryConfig_).mergeFrom(value).buildPartial(); } else { glossaryConfig_ = value; } @@ -2354,17 +2082,13 @@ public Builder mergeGlossaryConfig( return this; } /** - * - * *
      * Optional. Glossary to be applied. The glossary must be within the same
      * region (have the same location-id) as the model, otherwise an
      * INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearGlossaryConfig() { if (glossaryConfigBuilder_ == null) { @@ -2378,92 +2102,75 @@ public Builder clearGlossaryConfig() { return this; } /** - * - * *
      * Optional. Glossary to be applied. The glossary must be within the same
      * region (have the same location-id) as the model, otherwise an
      * INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder - getGlossaryConfigBuilder() { - + public com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder getGlossaryConfigBuilder() { + onChanged(); return getGlossaryConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Glossary to be applied. The glossary must be within the same
      * region (have the same location-id) as the model, otherwise an
      * INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder - getGlossaryConfigOrBuilder() { + public com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder getGlossaryConfigOrBuilder() { if (glossaryConfigBuilder_ != null) { return glossaryConfigBuilder_.getMessageOrBuilder(); } else { - return glossaryConfig_ == null - ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() - : glossaryConfig_; + return glossaryConfig_ == null ? + com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; } } /** - * - * *
      * Optional. Glossary to be applied. The glossary must be within the same
      * region (have the same location-id) as the model, otherwise an
      * INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.TranslateTextGlossaryConfig, - com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, - com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder> + com.google.cloud.translate.v3.TranslateTextGlossaryConfig, com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder> getGlossaryConfigFieldBuilder() { if (glossaryConfigBuilder_ == null) { - glossaryConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.TranslateTextGlossaryConfig, - com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, - com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder>( - getGlossaryConfig(), getParentForChildren(), isClean()); + glossaryConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3.TranslateTextGlossaryConfig, com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder>( + getGlossaryConfig(), + getParentForChildren(), + isClean()); glossaryConfig_ = null; } return glossaryConfigBuilder_; } - 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() { - onChanged(); - ; + internalGetMutableLabels() { + onChanged();; 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(); @@ -2475,8 +2182,6 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Optional. The labels with user-defined metadata for the request.
      * Label keys and values can be no longer than 63 characters (Unicode
@@ -2489,22 +2194,22 @@ public int getLabelsCount() {
      *
      * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      */
+
     @java.lang.Override
-    public boolean containsLabels(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
+    public boolean containsLabels(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
       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. The labels with user-defined metadata for the request.
      * Label keys and values can be no longer than 63 characters (Unicode
@@ -2518,12 +2223,11 @@ public java.util.Map getLabels() {
      * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
+
     public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      * Label keys and values can be no longer than 63 characters (Unicode
@@ -2537,17 +2241,16 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
+
     public java.lang.String getLabelsOrDefault(
-        java.lang.String key, java.lang.String defaultValue) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      java.util.Map map = internalGetLabels().getMap();
+        java.lang.String key,
+        java.lang.String defaultValue) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      * Label keys and values can be no longer than 63 characters (Unicode
@@ -2561,11 +2264,12 @@ public java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public java.lang.String getLabelsOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      java.util.Map map = internalGetLabels().getMap();
+
+    public java.lang.String getLabelsOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -2573,12 +2277,11 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
     }
 
     public Builder clearLabels() {
-      internalGetMutableLabels().getMutableMap().clear();
+      internalGetMutableLabels().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      * Label keys and values can be no longer than 63 characters (Unicode
@@ -2591,21 +2294,23 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder removeLabels(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      internalGetMutableLabels().getMutableMap().remove(key);
+
+    public Builder removeLabels(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      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() {
       return internalGetMutableLabels().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      * Label keys and values can be no longer than 63 characters (Unicode
@@ -2618,19 +2323,16 @@ public java.util.Map getMutableLabels() {
      *
      * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putLabels(java.lang.String key, java.lang.String value) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      if (value == null) {
-        throw new java.lang.NullPointerException();
-      }
-      internalGetMutableLabels().getMutableMap().put(key, value);
+    public Builder putLabels(
+        java.lang.String key,
+        java.lang.String value) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      if (value == null) { throw new java.lang.NullPointerException(); }
+      internalGetMutableLabels().getMutableMap()
+          .put(key, value);
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      * Label keys and values can be no longer than 63 characters (Unicode
@@ -2643,13 +2345,16 @@ public Builder putLabels(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> labels = 8 [(.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);
       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);
     }
 
@@ -2659,12 +2364,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.TranslateDocumentRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.TranslateDocumentRequest)
   private static final com.google.cloud.translate.v3.TranslateDocumentRequest DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3.TranslateDocumentRequest();
   }
@@ -2673,16 +2378,16 @@ public static com.google.cloud.translate.v3.TranslateDocumentRequest getDefaultI
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public TranslateDocumentRequest parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new TranslateDocumentRequest(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public TranslateDocumentRequest parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new TranslateDocumentRequest(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2697,4 +2402,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3.TranslateDocumentRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentRequestOrBuilder.java b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentRequestOrBuilder.java
similarity index 78%
rename from proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentRequestOrBuilder.java
rename to owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentRequestOrBuilder.java
index 5ee3b875..4d283246 100644
--- a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentRequestOrBuilder.java
+++ b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentRequestOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2020 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/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
-public interface TranslateDocumentRequestOrBuilder
-    extends
+public interface TranslateDocumentRequestOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.TranslateDocumentRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. Location to make a regional call.
    * Format: `projects/{project-number-or-id}/locations/{location-id}`.
@@ -38,13 +20,10 @@ public interface TranslateDocumentRequestOrBuilder
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. Location to make a regional call.
    * Format: `projects/{project-number-or-id}/locations/{location-id}`.
@@ -57,14 +36,12 @@ public interface TranslateDocumentRequestOrBuilder
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Optional. The BCP-47 language code of the input document if known, for
    * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -75,13 +52,10 @@ public interface TranslateDocumentRequestOrBuilder
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The sourceLanguageCode. */ java.lang.String getSourceLanguageCode(); /** - * - * *
    * Optional. The BCP-47 language code of the input document if known, for
    * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -92,82 +66,61 @@ public interface TranslateDocumentRequestOrBuilder
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for sourceLanguageCode. */ - com.google.protobuf.ByteString getSourceLanguageCodeBytes(); + com.google.protobuf.ByteString + getSourceLanguageCodeBytes(); /** - * - * *
    * Required. The BCP-47 language code to use for translation of the input
    * document, set to one of the language codes listed in Language Support.
    * 
* * string target_language_code = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The targetLanguageCode. */ java.lang.String getTargetLanguageCode(); /** - * - * *
    * Required. The BCP-47 language code to use for translation of the input
    * document, set to one of the language codes listed in Language Support.
    * 
* * string target_language_code = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for targetLanguageCode. */ - com.google.protobuf.ByteString getTargetLanguageCodeBytes(); + com.google.protobuf.ByteString + getTargetLanguageCodeBytes(); /** - * - * *
    * Required. Input configurations.
    * 
* - * - * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the documentInputConfig field is set. */ boolean hasDocumentInputConfig(); /** - * - * *
    * Required. Input configurations.
    * 
* - * - * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; * @return The documentInputConfig. */ com.google.cloud.translate.v3.DocumentInputConfig getDocumentInputConfig(); /** - * - * *
    * Required. Input configurations.
    * 
* - * - * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.translate.v3.DocumentInputConfigOrBuilder getDocumentInputConfigOrBuilder(); /** - * - * *
    * Optional. Output configurations.
    * Defines if the output file should be stored within Cloud Storage as well
@@ -176,16 +129,11 @@ public interface TranslateDocumentRequestOrBuilder
    * the same as the input file's mime type.
    * 
* - * - * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the documentOutputConfig field is set. */ boolean hasDocumentOutputConfig(); /** - * - * *
    * Optional. Output configurations.
    * Defines if the output file should be stored within Cloud Storage as well
@@ -194,16 +142,11 @@ public interface TranslateDocumentRequestOrBuilder
    * the same as the input file's mime type.
    * 
* - * - * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The documentOutputConfig. */ com.google.cloud.translate.v3.DocumentOutputConfig getDocumentOutputConfig(); /** - * - * *
    * Optional. Output configurations.
    * Defines if the output file should be stored within Cloud Storage as well
@@ -212,15 +155,11 @@ public interface TranslateDocumentRequestOrBuilder
    * the same as the input file's mime type.
    * 
* - * - * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.translate.v3.DocumentOutputConfigOrBuilder getDocumentOutputConfigOrBuilder(); /** - * - * *
    * Optional. The `model` type requested for this translation.
    * The format depends on model type:
@@ -233,13 +172,10 @@ public interface TranslateDocumentRequestOrBuilder
    * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The model. */ java.lang.String getModel(); /** - * - * *
    * Optional. The `model` type requested for this translation.
    * The format depends on model type:
@@ -252,61 +188,45 @@ public interface TranslateDocumentRequestOrBuilder
    * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for model. */ - com.google.protobuf.ByteString getModelBytes(); + com.google.protobuf.ByteString + getModelBytes(); /** - * - * *
    * Optional. Glossary to be applied. The glossary must be within the same
    * region (have the same location-id) as the model, otherwise an
    * INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the glossaryConfig field is set. */ boolean hasGlossaryConfig(); /** - * - * *
    * Optional. Glossary to be applied. The glossary must be within the same
    * region (have the same location-id) as the model, otherwise an
    * INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The glossaryConfig. */ com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossaryConfig(); /** - * - * *
    * Optional. Glossary to be applied. The glossary must be within the same
    * region (have the same location-id) as the model, otherwise an
    * INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder getGlossaryConfigOrBuilder(); /** - * - * *
    * Optional. The labels with user-defined metadata for the request.
    * Label keys and values can be no longer than 63 characters (Unicode
@@ -321,8 +241,6 @@ public interface TranslateDocumentRequestOrBuilder
    */
   int getLabelsCount();
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    * Label keys and values can be no longer than 63 characters (Unicode
@@ -335,13 +253,15 @@ public interface TranslateDocumentRequestOrBuilder
    *
    * map<string, string> labels = 8 [(.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. The labels with user-defined metadata for the request.
    * Label keys and values can be no longer than 63 characters (Unicode
@@ -354,10 +274,9 @@ public interface TranslateDocumentRequestOrBuilder
    *
    * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.util.Map getLabelsMap();
+  java.util.Map
+  getLabelsMap();
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    * Label keys and values can be no longer than 63 characters (Unicode
@@ -370,10 +289,11 @@ public interface TranslateDocumentRequestOrBuilder
    *
    * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue);
+
+  java.lang.String getLabelsOrDefault(
+      java.lang.String key,
+      java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    * Label keys and values can be no longer than 63 characters (Unicode
@@ -386,5 +306,7 @@ public interface TranslateDocumentRequestOrBuilder
    *
    * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.lang.String getLabelsOrThrow(java.lang.String key);
+
+  java.lang.String getLabelsOrThrow(
+      java.lang.String key);
 }
diff --git a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentResponse.java b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentResponse.java
similarity index 71%
rename from proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentResponse.java
rename to owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentResponse.java
index dee70b06..6422555a 100644
--- a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentResponse.java
+++ b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentResponse.java
@@ -1,57 +1,40 @@
-/*
- * Copyright 2020 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/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
 /**
- *
- *
  * 
  * A translated document response message.
  * 
* * Protobuf type {@code google.cloud.translation.v3.TranslateDocumentResponse} */ -public final class TranslateDocumentResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class TranslateDocumentResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.TranslateDocumentResponse) TranslateDocumentResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use TranslateDocumentResponse.newBuilder() to construct. private TranslateDocumentResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TranslateDocumentResponse() { model_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TranslateDocumentResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private TranslateDocumentResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,109 +53,91 @@ private TranslateDocumentResponse( case 0: done = true; break; - case 10: - { - com.google.cloud.translate.v3.DocumentTranslation.Builder subBuilder = null; - if (documentTranslation_ != null) { - subBuilder = documentTranslation_.toBuilder(); - } - documentTranslation_ = - input.readMessage( - com.google.cloud.translate.v3.DocumentTranslation.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(documentTranslation_); - documentTranslation_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.translate.v3.DocumentTranslation.Builder subBuilder = null; + if (documentTranslation_ != null) { + subBuilder = documentTranslation_.toBuilder(); } - case 18: - { - com.google.cloud.translate.v3.DocumentTranslation.Builder subBuilder = null; - if (glossaryDocumentTranslation_ != null) { - subBuilder = glossaryDocumentTranslation_.toBuilder(); - } - glossaryDocumentTranslation_ = - input.readMessage( - com.google.cloud.translate.v3.DocumentTranslation.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(glossaryDocumentTranslation_); - glossaryDocumentTranslation_ = subBuilder.buildPartial(); - } - - break; + documentTranslation_ = input.readMessage(com.google.cloud.translate.v3.DocumentTranslation.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(documentTranslation_); + documentTranslation_ = subBuilder.buildPartial(); } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - model_ = s; - break; + break; + } + case 18: { + com.google.cloud.translate.v3.DocumentTranslation.Builder subBuilder = null; + if (glossaryDocumentTranslation_ != null) { + subBuilder = glossaryDocumentTranslation_.toBuilder(); + } + glossaryDocumentTranslation_ = input.readMessage(com.google.cloud.translate.v3.DocumentTranslation.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(glossaryDocumentTranslation_); + glossaryDocumentTranslation_ = subBuilder.buildPartial(); } - case 34: - { - com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder subBuilder = null; - if (glossaryConfig_ != null) { - subBuilder = glossaryConfig_.toBuilder(); - } - glossaryConfig_ = - input.readMessage( - com.google.cloud.translate.v3.TranslateTextGlossaryConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(glossaryConfig_); - glossaryConfig_ = subBuilder.buildPartial(); - } - break; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + model_ = s; + break; + } + case 34: { + com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder subBuilder = null; + if (glossaryConfig_ != null) { + subBuilder = glossaryConfig_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + glossaryConfig_ = input.readMessage(com.google.cloud.translate.v3.TranslateTextGlossaryConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(glossaryConfig_); + glossaryConfig_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_TranslateDocumentResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateDocumentResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_TranslateDocumentResponse_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateDocumentResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.TranslateDocumentResponse.class, - com.google.cloud.translate.v3.TranslateDocumentResponse.Builder.class); + com.google.cloud.translate.v3.TranslateDocumentResponse.class, com.google.cloud.translate.v3.TranslateDocumentResponse.Builder.class); } public static final int DOCUMENT_TRANSLATION_FIELD_NUMBER = 1; private com.google.cloud.translate.v3.DocumentTranslation documentTranslation_; /** - * - * *
    * Translated document.
    * 
* * .google.cloud.translation.v3.DocumentTranslation document_translation = 1; - * * @return Whether the documentTranslation field is set. */ @java.lang.Override @@ -180,25 +145,18 @@ public boolean hasDocumentTranslation() { return documentTranslation_ != null; } /** - * - * *
    * Translated document.
    * 
* * .google.cloud.translation.v3.DocumentTranslation document_translation = 1; - * * @return The documentTranslation. */ @java.lang.Override public com.google.cloud.translate.v3.DocumentTranslation getDocumentTranslation() { - return documentTranslation_ == null - ? com.google.cloud.translate.v3.DocumentTranslation.getDefaultInstance() - : documentTranslation_; + return documentTranslation_ == null ? com.google.cloud.translate.v3.DocumentTranslation.getDefaultInstance() : documentTranslation_; } /** - * - * *
    * Translated document.
    * 
@@ -206,25 +164,20 @@ public com.google.cloud.translate.v3.DocumentTranslation getDocumentTranslation( * .google.cloud.translation.v3.DocumentTranslation document_translation = 1; */ @java.lang.Override - public com.google.cloud.translate.v3.DocumentTranslationOrBuilder - getDocumentTranslationOrBuilder() { + public com.google.cloud.translate.v3.DocumentTranslationOrBuilder getDocumentTranslationOrBuilder() { return getDocumentTranslation(); } public static final int GLOSSARY_DOCUMENT_TRANSLATION_FIELD_NUMBER = 2; private com.google.cloud.translate.v3.DocumentTranslation glossaryDocumentTranslation_; /** - * - * *
    * The document's translation output if a glossary is provided in the request.
    * This can be the same as [TranslateDocumentResponse.document_translation]
    * if no glossary terms apply.
    * 
* - * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; - * - * + * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; * @return Whether the glossaryDocumentTranslation field is set. */ @java.lang.Override @@ -232,48 +185,36 @@ public boolean hasGlossaryDocumentTranslation() { return glossaryDocumentTranslation_ != null; } /** - * - * *
    * The document's translation output if a glossary is provided in the request.
    * This can be the same as [TranslateDocumentResponse.document_translation]
    * if no glossary terms apply.
    * 
* - * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; - * - * + * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; * @return The glossaryDocumentTranslation. */ @java.lang.Override public com.google.cloud.translate.v3.DocumentTranslation getGlossaryDocumentTranslation() { - return glossaryDocumentTranslation_ == null - ? com.google.cloud.translate.v3.DocumentTranslation.getDefaultInstance() - : glossaryDocumentTranslation_; + return glossaryDocumentTranslation_ == null ? com.google.cloud.translate.v3.DocumentTranslation.getDefaultInstance() : glossaryDocumentTranslation_; } /** - * - * *
    * The document's translation output if a glossary is provided in the request.
    * This can be the same as [TranslateDocumentResponse.document_translation]
    * if no glossary terms apply.
    * 
* - * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; - * + * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; */ @java.lang.Override - public com.google.cloud.translate.v3.DocumentTranslationOrBuilder - getGlossaryDocumentTranslationOrBuilder() { + public com.google.cloud.translate.v3.DocumentTranslationOrBuilder getGlossaryDocumentTranslationOrBuilder() { return getGlossaryDocumentTranslation(); } public static final int MODEL_FIELD_NUMBER = 3; private volatile java.lang.Object model_; /** - * - * *
    * Only present when 'model' is present in the request.
    * 'model' is normalized to have a project number.
@@ -285,7 +226,6 @@ public com.google.cloud.translate.v3.DocumentTranslation getGlossaryDocumentTran
    * 
* * string model = 3; - * * @return The model. */ @java.lang.Override @@ -294,15 +234,14 @@ public java.lang.String getModel() { 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(); model_ = s; return s; } } /** - * - * *
    * Only present when 'model' is present in the request.
    * 'model' is normalized to have a project number.
@@ -314,15 +253,16 @@ public java.lang.String getModel() {
    * 
* * string model = 3; - * * @return The bytes for model. */ @java.lang.Override - public com.google.protobuf.ByteString getModelBytes() { + public com.google.protobuf.ByteString + getModelBytes() { java.lang.Object ref = model_; 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); model_ = b; return b; } else { @@ -333,14 +273,11 @@ public com.google.protobuf.ByteString getModelBytes() { public static final int GLOSSARY_CONFIG_FIELD_NUMBER = 4; private com.google.cloud.translate.v3.TranslateTextGlossaryConfig glossaryConfig_; /** - * - * *
    * The `glossary_config` used for this translation.
    * 
* * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 4; - * * @return Whether the glossaryConfig field is set. */ @java.lang.Override @@ -348,25 +285,18 @@ public boolean hasGlossaryConfig() { return glossaryConfig_ != null; } /** - * - * *
    * The `glossary_config` used for this translation.
    * 
* * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 4; - * * @return The glossaryConfig. */ @java.lang.Override public com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossaryConfig() { - return glossaryConfig_ == null - ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() - : glossaryConfig_; + return glossaryConfig_ == null ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; } /** - * - * *
    * The `glossary_config` used for this translation.
    * 
@@ -374,13 +304,11 @@ public com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossaryConf * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 4; */ @java.lang.Override - public com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder - getGlossaryConfigOrBuilder() { + public com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder getGlossaryConfigOrBuilder() { return getGlossaryConfig(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -392,14 +320,15 @@ 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 (documentTranslation_ != null) { output.writeMessage(1, getDocumentTranslation()); } if (glossaryDocumentTranslation_ != null) { output.writeMessage(2, getGlossaryDocumentTranslation()); } - if (!getModelBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(model_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, model_); } if (glossaryConfig_ != null) { @@ -415,18 +344,19 @@ public int getSerializedSize() { size = 0; if (documentTranslation_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDocumentTranslation()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getDocumentTranslation()); } if (glossaryDocumentTranslation_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, getGlossaryDocumentTranslation()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getGlossaryDocumentTranslation()); } - if (!getModelBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(model_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, model_); } if (glossaryConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getGlossaryConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getGlossaryConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -436,27 +366,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.cloud.translate.v3.TranslateDocumentResponse)) { return super.equals(obj); } - com.google.cloud.translate.v3.TranslateDocumentResponse other = - (com.google.cloud.translate.v3.TranslateDocumentResponse) obj; + com.google.cloud.translate.v3.TranslateDocumentResponse other = (com.google.cloud.translate.v3.TranslateDocumentResponse) obj; if (hasDocumentTranslation() != other.hasDocumentTranslation()) return false; if (hasDocumentTranslation()) { - if (!getDocumentTranslation().equals(other.getDocumentTranslation())) return false; + if (!getDocumentTranslation() + .equals(other.getDocumentTranslation())) return false; } if (hasGlossaryDocumentTranslation() != other.hasGlossaryDocumentTranslation()) return false; if (hasGlossaryDocumentTranslation()) { - if (!getGlossaryDocumentTranslation().equals(other.getGlossaryDocumentTranslation())) - return false; + if (!getGlossaryDocumentTranslation() + .equals(other.getGlossaryDocumentTranslation())) return false; } - if (!getModel().equals(other.getModel())) return false; + if (!getModel() + .equals(other.getModel())) return false; if (hasGlossaryConfig() != other.hasGlossaryConfig()) return false; if (hasGlossaryConfig()) { - if (!getGlossaryConfig().equals(other.getGlossaryConfig())) return false; + if (!getGlossaryConfig() + .equals(other.getGlossaryConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -489,127 +421,117 @@ public int hashCode() { } public static com.google.cloud.translate.v3.TranslateDocumentResponse 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.cloud.translate.v3.TranslateDocumentResponse 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.cloud.translate.v3.TranslateDocumentResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.TranslateDocumentResponse 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.cloud.translate.v3.TranslateDocumentResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.TranslateDocumentResponse 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.cloud.translate.v3.TranslateDocumentResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.TranslateDocumentResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.TranslateDocumentResponse 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.cloud.translate.v3.TranslateDocumentResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.TranslateDocumentResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.TranslateDocumentResponse 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.cloud.translate.v3.TranslateDocumentResponse 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.cloud.translate.v3.TranslateDocumentResponse 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.cloud.translate.v3.TranslateDocumentResponse prototype) { + public static Builder newBuilder(com.google.cloud.translate.v3.TranslateDocumentResponse 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 translated document response message.
    * 
* * Protobuf type {@code google.cloud.translation.v3.TranslateDocumentResponse} */ - 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.translation.v3.TranslateDocumentResponse) com.google.cloud.translate.v3.TranslateDocumentResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_TranslateDocumentResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateDocumentResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_TranslateDocumentResponse_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateDocumentResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.TranslateDocumentResponse.class, - com.google.cloud.translate.v3.TranslateDocumentResponse.Builder.class); + com.google.cloud.translate.v3.TranslateDocumentResponse.class, com.google.cloud.translate.v3.TranslateDocumentResponse.Builder.class); } // Construct using com.google.cloud.translate.v3.TranslateDocumentResponse.newBuilder() @@ -617,15 +539,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -653,9 +576,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_TranslateDocumentResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateDocumentResponse_descriptor; } @java.lang.Override @@ -674,8 +597,7 @@ public com.google.cloud.translate.v3.TranslateDocumentResponse build() { @java.lang.Override public com.google.cloud.translate.v3.TranslateDocumentResponse buildPartial() { - com.google.cloud.translate.v3.TranslateDocumentResponse result = - new com.google.cloud.translate.v3.TranslateDocumentResponse(this); + com.google.cloud.translate.v3.TranslateDocumentResponse result = new com.google.cloud.translate.v3.TranslateDocumentResponse(this); if (documentTranslationBuilder_ == null) { result.documentTranslation_ = documentTranslation_; } else { @@ -700,39 +622,38 @@ public com.google.cloud.translate.v3.TranslateDocumentResponse 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.cloud.translate.v3.TranslateDocumentResponse) { - return mergeFrom((com.google.cloud.translate.v3.TranslateDocumentResponse) other); + return mergeFrom((com.google.cloud.translate.v3.TranslateDocumentResponse)other); } else { super.mergeFrom(other); return this; @@ -740,8 +661,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.TranslateDocumentResponse other) { - if (other == com.google.cloud.translate.v3.TranslateDocumentResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3.TranslateDocumentResponse.getDefaultInstance()) return this; if (other.hasDocumentTranslation()) { mergeDocumentTranslation(other.getDocumentTranslation()); } @@ -774,8 +694,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.translate.v3.TranslateDocumentResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.translate.v3.TranslateDocumentResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -787,47 +706,34 @@ public Builder mergeFrom( private com.google.cloud.translate.v3.DocumentTranslation documentTranslation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.DocumentTranslation, - com.google.cloud.translate.v3.DocumentTranslation.Builder, - com.google.cloud.translate.v3.DocumentTranslationOrBuilder> - documentTranslationBuilder_; + com.google.cloud.translate.v3.DocumentTranslation, com.google.cloud.translate.v3.DocumentTranslation.Builder, com.google.cloud.translate.v3.DocumentTranslationOrBuilder> documentTranslationBuilder_; /** - * - * *
      * Translated document.
      * 
* * .google.cloud.translation.v3.DocumentTranslation document_translation = 1; - * * @return Whether the documentTranslation field is set. */ public boolean hasDocumentTranslation() { return documentTranslationBuilder_ != null || documentTranslation_ != null; } /** - * - * *
      * Translated document.
      * 
* * .google.cloud.translation.v3.DocumentTranslation document_translation = 1; - * * @return The documentTranslation. */ public com.google.cloud.translate.v3.DocumentTranslation getDocumentTranslation() { if (documentTranslationBuilder_ == null) { - return documentTranslation_ == null - ? com.google.cloud.translate.v3.DocumentTranslation.getDefaultInstance() - : documentTranslation_; + return documentTranslation_ == null ? com.google.cloud.translate.v3.DocumentTranslation.getDefaultInstance() : documentTranslation_; } else { return documentTranslationBuilder_.getMessage(); } } /** - * - * *
      * Translated document.
      * 
@@ -848,8 +754,6 @@ public Builder setDocumentTranslation(com.google.cloud.translate.v3.DocumentTran return this; } /** - * - * *
      * Translated document.
      * 
@@ -868,22 +772,17 @@ public Builder setDocumentTranslation( return this; } /** - * - * *
      * Translated document.
      * 
* * .google.cloud.translation.v3.DocumentTranslation document_translation = 1; */ - public Builder mergeDocumentTranslation( - com.google.cloud.translate.v3.DocumentTranslation value) { + public Builder mergeDocumentTranslation(com.google.cloud.translate.v3.DocumentTranslation value) { if (documentTranslationBuilder_ == null) { if (documentTranslation_ != null) { documentTranslation_ = - com.google.cloud.translate.v3.DocumentTranslation.newBuilder(documentTranslation_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.translate.v3.DocumentTranslation.newBuilder(documentTranslation_).mergeFrom(value).buildPartial(); } else { documentTranslation_ = value; } @@ -895,8 +794,6 @@ public Builder mergeDocumentTranslation( return this; } /** - * - * *
      * Translated document.
      * 
@@ -915,42 +812,33 @@ public Builder clearDocumentTranslation() { return this; } /** - * - * *
      * Translated document.
      * 
* * .google.cloud.translation.v3.DocumentTranslation document_translation = 1; */ - public com.google.cloud.translate.v3.DocumentTranslation.Builder - getDocumentTranslationBuilder() { - + public com.google.cloud.translate.v3.DocumentTranslation.Builder getDocumentTranslationBuilder() { + onChanged(); return getDocumentTranslationFieldBuilder().getBuilder(); } /** - * - * *
      * Translated document.
      * 
* * .google.cloud.translation.v3.DocumentTranslation document_translation = 1; */ - public com.google.cloud.translate.v3.DocumentTranslationOrBuilder - getDocumentTranslationOrBuilder() { + public com.google.cloud.translate.v3.DocumentTranslationOrBuilder getDocumentTranslationOrBuilder() { if (documentTranslationBuilder_ != null) { return documentTranslationBuilder_.getMessageOrBuilder(); } else { - return documentTranslation_ == null - ? com.google.cloud.translate.v3.DocumentTranslation.getDefaultInstance() - : documentTranslation_; + return documentTranslation_ == null ? + com.google.cloud.translate.v3.DocumentTranslation.getDefaultInstance() : documentTranslation_; } } /** - * - * *
      * Translated document.
      * 
@@ -958,17 +846,14 @@ public Builder clearDocumentTranslation() { * .google.cloud.translation.v3.DocumentTranslation document_translation = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.DocumentTranslation, - com.google.cloud.translate.v3.DocumentTranslation.Builder, - com.google.cloud.translate.v3.DocumentTranslationOrBuilder> + com.google.cloud.translate.v3.DocumentTranslation, com.google.cloud.translate.v3.DocumentTranslation.Builder, com.google.cloud.translate.v3.DocumentTranslationOrBuilder> getDocumentTranslationFieldBuilder() { if (documentTranslationBuilder_ == null) { - documentTranslationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.DocumentTranslation, - com.google.cloud.translate.v3.DocumentTranslation.Builder, - com.google.cloud.translate.v3.DocumentTranslationOrBuilder>( - getDocumentTranslation(), getParentForChildren(), isClean()); + documentTranslationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3.DocumentTranslation, com.google.cloud.translate.v3.DocumentTranslation.Builder, com.google.cloud.translate.v3.DocumentTranslationOrBuilder>( + getDocumentTranslation(), + getParentForChildren(), + isClean()); documentTranslation_ = null; } return documentTranslationBuilder_; @@ -976,64 +861,47 @@ public Builder clearDocumentTranslation() { private com.google.cloud.translate.v3.DocumentTranslation glossaryDocumentTranslation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.DocumentTranslation, - com.google.cloud.translate.v3.DocumentTranslation.Builder, - com.google.cloud.translate.v3.DocumentTranslationOrBuilder> - glossaryDocumentTranslationBuilder_; + com.google.cloud.translate.v3.DocumentTranslation, com.google.cloud.translate.v3.DocumentTranslation.Builder, com.google.cloud.translate.v3.DocumentTranslationOrBuilder> glossaryDocumentTranslationBuilder_; /** - * - * *
      * The document's translation output if a glossary is provided in the request.
      * This can be the same as [TranslateDocumentResponse.document_translation]
      * if no glossary terms apply.
      * 
* - * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; - * - * + * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; * @return Whether the glossaryDocumentTranslation field is set. */ public boolean hasGlossaryDocumentTranslation() { return glossaryDocumentTranslationBuilder_ != null || glossaryDocumentTranslation_ != null; } /** - * - * *
      * The document's translation output if a glossary is provided in the request.
      * This can be the same as [TranslateDocumentResponse.document_translation]
      * if no glossary terms apply.
      * 
* - * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; - * - * + * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; * @return The glossaryDocumentTranslation. */ public com.google.cloud.translate.v3.DocumentTranslation getGlossaryDocumentTranslation() { if (glossaryDocumentTranslationBuilder_ == null) { - return glossaryDocumentTranslation_ == null - ? com.google.cloud.translate.v3.DocumentTranslation.getDefaultInstance() - : glossaryDocumentTranslation_; + return glossaryDocumentTranslation_ == null ? com.google.cloud.translate.v3.DocumentTranslation.getDefaultInstance() : glossaryDocumentTranslation_; } else { return glossaryDocumentTranslationBuilder_.getMessage(); } } /** - * - * *
      * The document's translation output if a glossary is provided in the request.
      * This can be the same as [TranslateDocumentResponse.document_translation]
      * if no glossary terms apply.
      * 
* - * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; - * + * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; */ - public Builder setGlossaryDocumentTranslation( - com.google.cloud.translate.v3.DocumentTranslation value) { + public Builder setGlossaryDocumentTranslation(com.google.cloud.translate.v3.DocumentTranslation value) { if (glossaryDocumentTranslationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1047,16 +915,13 @@ public Builder setGlossaryDocumentTranslation( return this; } /** - * - * *
      * The document's translation output if a glossary is provided in the request.
      * This can be the same as [TranslateDocumentResponse.document_translation]
      * if no glossary terms apply.
      * 
* - * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; - * + * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; */ public Builder setGlossaryDocumentTranslation( com.google.cloud.translate.v3.DocumentTranslation.Builder builderForValue) { @@ -1070,26 +935,19 @@ public Builder setGlossaryDocumentTranslation( return this; } /** - * - * *
      * The document's translation output if a glossary is provided in the request.
      * This can be the same as [TranslateDocumentResponse.document_translation]
      * if no glossary terms apply.
      * 
* - * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; - * + * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; */ - public Builder mergeGlossaryDocumentTranslation( - com.google.cloud.translate.v3.DocumentTranslation value) { + public Builder mergeGlossaryDocumentTranslation(com.google.cloud.translate.v3.DocumentTranslation value) { if (glossaryDocumentTranslationBuilder_ == null) { if (glossaryDocumentTranslation_ != null) { glossaryDocumentTranslation_ = - com.google.cloud.translate.v3.DocumentTranslation.newBuilder( - glossaryDocumentTranslation_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.translate.v3.DocumentTranslation.newBuilder(glossaryDocumentTranslation_).mergeFrom(value).buildPartial(); } else { glossaryDocumentTranslation_ = value; } @@ -1101,16 +959,13 @@ public Builder mergeGlossaryDocumentTranslation( return this; } /** - * - * *
      * The document's translation output if a glossary is provided in the request.
      * This can be the same as [TranslateDocumentResponse.document_translation]
      * if no glossary terms apply.
      * 
* - * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; - * + * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; */ public Builder clearGlossaryDocumentTranslation() { if (glossaryDocumentTranslationBuilder_ == null) { @@ -1124,69 +979,54 @@ public Builder clearGlossaryDocumentTranslation() { return this; } /** - * - * *
      * The document's translation output if a glossary is provided in the request.
      * This can be the same as [TranslateDocumentResponse.document_translation]
      * if no glossary terms apply.
      * 
* - * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; - * + * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; */ - public com.google.cloud.translate.v3.DocumentTranslation.Builder - getGlossaryDocumentTranslationBuilder() { - + public com.google.cloud.translate.v3.DocumentTranslation.Builder getGlossaryDocumentTranslationBuilder() { + onChanged(); return getGlossaryDocumentTranslationFieldBuilder().getBuilder(); } /** - * - * *
      * The document's translation output if a glossary is provided in the request.
      * This can be the same as [TranslateDocumentResponse.document_translation]
      * if no glossary terms apply.
      * 
* - * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; - * + * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; */ - public com.google.cloud.translate.v3.DocumentTranslationOrBuilder - getGlossaryDocumentTranslationOrBuilder() { + public com.google.cloud.translate.v3.DocumentTranslationOrBuilder getGlossaryDocumentTranslationOrBuilder() { if (glossaryDocumentTranslationBuilder_ != null) { return glossaryDocumentTranslationBuilder_.getMessageOrBuilder(); } else { - return glossaryDocumentTranslation_ == null - ? com.google.cloud.translate.v3.DocumentTranslation.getDefaultInstance() - : glossaryDocumentTranslation_; + return glossaryDocumentTranslation_ == null ? + com.google.cloud.translate.v3.DocumentTranslation.getDefaultInstance() : glossaryDocumentTranslation_; } } /** - * - * *
      * The document's translation output if a glossary is provided in the request.
      * This can be the same as [TranslateDocumentResponse.document_translation]
      * if no glossary terms apply.
      * 
* - * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; - * + * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.DocumentTranslation, - com.google.cloud.translate.v3.DocumentTranslation.Builder, - com.google.cloud.translate.v3.DocumentTranslationOrBuilder> + com.google.cloud.translate.v3.DocumentTranslation, com.google.cloud.translate.v3.DocumentTranslation.Builder, com.google.cloud.translate.v3.DocumentTranslationOrBuilder> getGlossaryDocumentTranslationFieldBuilder() { if (glossaryDocumentTranslationBuilder_ == null) { - glossaryDocumentTranslationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.DocumentTranslation, - com.google.cloud.translate.v3.DocumentTranslation.Builder, - com.google.cloud.translate.v3.DocumentTranslationOrBuilder>( - getGlossaryDocumentTranslation(), getParentForChildren(), isClean()); + glossaryDocumentTranslationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3.DocumentTranslation, com.google.cloud.translate.v3.DocumentTranslation.Builder, com.google.cloud.translate.v3.DocumentTranslationOrBuilder>( + getGlossaryDocumentTranslation(), + getParentForChildren(), + isClean()); glossaryDocumentTranslation_ = null; } return glossaryDocumentTranslationBuilder_; @@ -1194,8 +1034,6 @@ public Builder clearGlossaryDocumentTranslation() { private java.lang.Object model_ = ""; /** - * - * *
      * Only present when 'model' is present in the request.
      * 'model' is normalized to have a project number.
@@ -1207,13 +1045,13 @@ public Builder clearGlossaryDocumentTranslation() {
      * 
* * string model = 3; - * * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; 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(); model_ = s; return s; @@ -1222,8 +1060,6 @@ public java.lang.String getModel() { } } /** - * - * *
      * Only present when 'model' is present in the request.
      * 'model' is normalized to have a project number.
@@ -1235,14 +1071,15 @@ public java.lang.String getModel() {
      * 
* * string model = 3; - * * @return The bytes for model. */ - public com.google.protobuf.ByteString getModelBytes() { + public com.google.protobuf.ByteString + getModelBytes() { java.lang.Object ref = model_; 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); model_ = b; return b; } else { @@ -1250,8 +1087,6 @@ public com.google.protobuf.ByteString getModelBytes() { } } /** - * - * *
      * Only present when 'model' is present in the request.
      * 'model' is normalized to have a project number.
@@ -1263,22 +1098,20 @@ public com.google.protobuf.ByteString getModelBytes() {
      * 
* * string model = 3; - * * @param value The model to set. * @return This builder for chaining. */ - public Builder setModel(java.lang.String value) { + public Builder setModel( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + model_ = value; onChanged(); return this; } /** - * - * *
      * Only present when 'model' is present in the request.
      * 'model' is normalized to have a project number.
@@ -1290,18 +1123,15 @@ public Builder setModel(java.lang.String value) {
      * 
* * string model = 3; - * * @return This builder for chaining. */ public Builder clearModel() { - + model_ = getDefaultInstance().getModel(); onChanged(); return this; } /** - * - * *
      * Only present when 'model' is present in the request.
      * 'model' is normalized to have a project number.
@@ -1313,16 +1143,16 @@ public Builder clearModel() {
      * 
* * string model = 3; - * * @param value The bytes for model to set. * @return This builder for chaining. */ - public Builder setModelBytes(com.google.protobuf.ByteString value) { + public Builder setModelBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + model_ = value; onChanged(); return this; @@ -1330,55 +1160,41 @@ public Builder setModelBytes(com.google.protobuf.ByteString value) { private com.google.cloud.translate.v3.TranslateTextGlossaryConfig glossaryConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.TranslateTextGlossaryConfig, - com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, - com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder> - glossaryConfigBuilder_; + com.google.cloud.translate.v3.TranslateTextGlossaryConfig, com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder> glossaryConfigBuilder_; /** - * - * *
      * The `glossary_config` used for this translation.
      * 
* * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 4; - * * @return Whether the glossaryConfig field is set. */ public boolean hasGlossaryConfig() { return glossaryConfigBuilder_ != null || glossaryConfig_ != null; } /** - * - * *
      * The `glossary_config` used for this translation.
      * 
* * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 4; - * * @return The glossaryConfig. */ public com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossaryConfig() { if (glossaryConfigBuilder_ == null) { - return glossaryConfig_ == null - ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() - : glossaryConfig_; + return glossaryConfig_ == null ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; } else { return glossaryConfigBuilder_.getMessage(); } } /** - * - * *
      * The `glossary_config` used for this translation.
      * 
* * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 4; */ - public Builder setGlossaryConfig( - com.google.cloud.translate.v3.TranslateTextGlossaryConfig value) { + public Builder setGlossaryConfig(com.google.cloud.translate.v3.TranslateTextGlossaryConfig value) { if (glossaryConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1392,8 +1208,6 @@ public Builder setGlossaryConfig( return this; } /** - * - * *
      * The `glossary_config` used for this translation.
      * 
@@ -1412,22 +1226,17 @@ public Builder setGlossaryConfig( return this; } /** - * - * *
      * The `glossary_config` used for this translation.
      * 
* * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 4; */ - public Builder mergeGlossaryConfig( - com.google.cloud.translate.v3.TranslateTextGlossaryConfig value) { + public Builder mergeGlossaryConfig(com.google.cloud.translate.v3.TranslateTextGlossaryConfig value) { if (glossaryConfigBuilder_ == null) { if (glossaryConfig_ != null) { glossaryConfig_ = - com.google.cloud.translate.v3.TranslateTextGlossaryConfig.newBuilder(glossaryConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.translate.v3.TranslateTextGlossaryConfig.newBuilder(glossaryConfig_).mergeFrom(value).buildPartial(); } else { glossaryConfig_ = value; } @@ -1439,8 +1248,6 @@ public Builder mergeGlossaryConfig( return this; } /** - * - * *
      * The `glossary_config` used for this translation.
      * 
@@ -1459,42 +1266,33 @@ public Builder clearGlossaryConfig() { return this; } /** - * - * *
      * The `glossary_config` used for this translation.
      * 
* * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 4; */ - public com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder - getGlossaryConfigBuilder() { - + public com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder getGlossaryConfigBuilder() { + onChanged(); return getGlossaryConfigFieldBuilder().getBuilder(); } /** - * - * *
      * The `glossary_config` used for this translation.
      * 
* * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 4; */ - public com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder - getGlossaryConfigOrBuilder() { + public com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder getGlossaryConfigOrBuilder() { if (glossaryConfigBuilder_ != null) { return glossaryConfigBuilder_.getMessageOrBuilder(); } else { - return glossaryConfig_ == null - ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() - : glossaryConfig_; + return glossaryConfig_ == null ? + com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; } } /** - * - * *
      * The `glossary_config` used for this translation.
      * 
@@ -1502,24 +1300,21 @@ public Builder clearGlossaryConfig() { * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.TranslateTextGlossaryConfig, - com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, - com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder> + com.google.cloud.translate.v3.TranslateTextGlossaryConfig, com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder> getGlossaryConfigFieldBuilder() { if (glossaryConfigBuilder_ == null) { - glossaryConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.TranslateTextGlossaryConfig, - com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, - com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder>( - getGlossaryConfig(), getParentForChildren(), isClean()); + glossaryConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3.TranslateTextGlossaryConfig, com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder>( + getGlossaryConfig(), + getParentForChildren(), + isClean()); glossaryConfig_ = null; } return glossaryConfigBuilder_; } - @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); } @@ -1529,12 +1324,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.TranslateDocumentResponse) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.TranslateDocumentResponse) private static final com.google.cloud.translate.v3.TranslateDocumentResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.TranslateDocumentResponse(); } @@ -1543,16 +1338,16 @@ public static com.google.cloud.translate.v3.TranslateDocumentResponse getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TranslateDocumentResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TranslateDocumentResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TranslateDocumentResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TranslateDocumentResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1567,4 +1362,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.translate.v3.TranslateDocumentResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentResponseOrBuilder.java b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentResponseOrBuilder.java similarity index 78% rename from proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentResponseOrBuilder.java rename to owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentResponseOrBuilder.java index fbd5e73d..f4a0d88c 100644 --- a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentResponseOrBuilder.java +++ b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentResponseOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 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/translate/v3/translation_service.proto package com.google.cloud.translate.v3; -public interface TranslateDocumentResponseOrBuilder - extends +public interface TranslateDocumentResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.TranslateDocumentResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Translated document.
    * 
* * .google.cloud.translation.v3.DocumentTranslation document_translation = 1; - * * @return Whether the documentTranslation field is set. */ boolean hasDocumentTranslation(); /** - * - * *
    * Translated document.
    * 
* * .google.cloud.translation.v3.DocumentTranslation document_translation = 1; - * * @return The documentTranslation. */ com.google.cloud.translate.v3.DocumentTranslation getDocumentTranslation(); /** - * - * *
    * Translated document.
    * 
@@ -59,53 +35,39 @@ public interface TranslateDocumentResponseOrBuilder com.google.cloud.translate.v3.DocumentTranslationOrBuilder getDocumentTranslationOrBuilder(); /** - * - * *
    * The document's translation output if a glossary is provided in the request.
    * This can be the same as [TranslateDocumentResponse.document_translation]
    * if no glossary terms apply.
    * 
* - * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; - * - * + * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; * @return Whether the glossaryDocumentTranslation field is set. */ boolean hasGlossaryDocumentTranslation(); /** - * - * *
    * The document's translation output if a glossary is provided in the request.
    * This can be the same as [TranslateDocumentResponse.document_translation]
    * if no glossary terms apply.
    * 
* - * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; - * - * + * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; * @return The glossaryDocumentTranslation. */ com.google.cloud.translate.v3.DocumentTranslation getGlossaryDocumentTranslation(); /** - * - * *
    * The document's translation output if a glossary is provided in the request.
    * This can be the same as [TranslateDocumentResponse.document_translation]
    * if no glossary terms apply.
    * 
* - * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; - * + * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; */ - com.google.cloud.translate.v3.DocumentTranslationOrBuilder - getGlossaryDocumentTranslationOrBuilder(); + com.google.cloud.translate.v3.DocumentTranslationOrBuilder getGlossaryDocumentTranslationOrBuilder(); /** - * - * *
    * Only present when 'model' is present in the request.
    * 'model' is normalized to have a project number.
@@ -117,13 +79,10 @@ public interface TranslateDocumentResponseOrBuilder
    * 
* * string model = 3; - * * @return The model. */ java.lang.String getModel(); /** - * - * *
    * Only present when 'model' is present in the request.
    * 'model' is normalized to have a project number.
@@ -135,38 +94,30 @@ public interface TranslateDocumentResponseOrBuilder
    * 
* * string model = 3; - * * @return The bytes for model. */ - com.google.protobuf.ByteString getModelBytes(); + com.google.protobuf.ByteString + getModelBytes(); /** - * - * *
    * The `glossary_config` used for this translation.
    * 
* * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 4; - * * @return Whether the glossaryConfig field is set. */ boolean hasGlossaryConfig(); /** - * - * *
    * The `glossary_config` used for this translation.
    * 
* * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 4; - * * @return The glossaryConfig. */ com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossaryConfig(); /** - * - * *
    * The `glossary_config` used for this translation.
    * 
diff --git a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextGlossaryConfig.java b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextGlossaryConfig.java similarity index 72% rename from proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextGlossaryConfig.java rename to owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextGlossaryConfig.java index aeee3232..466fdeef 100644 --- a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextGlossaryConfig.java +++ b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextGlossaryConfig.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 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/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** - * - * *
  * Configures which glossary should be used for a specific target language,
  * and defines options for applying that glossary.
@@ -28,31 +11,31 @@
  *
  * Protobuf type {@code google.cloud.translation.v3.TranslateTextGlossaryConfig}
  */
-public final class TranslateTextGlossaryConfig extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class TranslateTextGlossaryConfig extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.TranslateTextGlossaryConfig)
     TranslateTextGlossaryConfigOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use TranslateTextGlossaryConfig.newBuilder() to construct.
   private TranslateTextGlossaryConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private TranslateTextGlossaryConfig() {
     glossary_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new TranslateTextGlossaryConfig();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private TranslateTextGlossaryConfig(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -71,57 +54,52 @@ private TranslateTextGlossaryConfig(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              glossary_ = s;
-              break;
-            }
-          case 16:
-            {
-              ignoreCase_ = input.readBool();
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            glossary_ = s;
+            break;
+          }
+          case 16: {
+
+            ignoreCase_ = input.readBool();
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.translate.v3.TranslationServiceProto
-        .internal_static_google_cloud_translation_v3_TranslateTextGlossaryConfig_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateTextGlossaryConfig_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.translate.v3.TranslationServiceProto
-        .internal_static_google_cloud_translation_v3_TranslateTextGlossaryConfig_fieldAccessorTable
+    return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateTextGlossaryConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.translate.v3.TranslateTextGlossaryConfig.class,
-            com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder.class);
+            com.google.cloud.translate.v3.TranslateTextGlossaryConfig.class, com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder.class);
   }
 
   public static final int GLOSSARY_FIELD_NUMBER = 1;
   private volatile java.lang.Object glossary_;
   /**
-   *
-   *
    * 
    * Required. The `glossary` to be applied for this translation.
    * The format depends on glossary:
@@ -130,7 +108,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string glossary = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The glossary. */ @java.lang.Override @@ -139,15 +116,14 @@ public java.lang.String getGlossary() { 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(); glossary_ = s; return s; } } /** - * - * *
    * Required. The `glossary` to be applied for this translation.
    * The format depends on glossary:
@@ -156,15 +132,16 @@ public java.lang.String getGlossary() {
    * 
* * string glossary = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for glossary. */ @java.lang.Override - public com.google.protobuf.ByteString getGlossaryBytes() { + public com.google.protobuf.ByteString + getGlossaryBytes() { java.lang.Object ref = glossary_; 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); glossary_ = b; return b; } else { @@ -175,15 +152,12 @@ public com.google.protobuf.ByteString getGlossaryBytes() { public static final int IGNORE_CASE_FIELD_NUMBER = 2; private boolean ignoreCase_; /** - * - * *
    * Optional. Indicates match is case-insensitive.
    * Default value is false if missing.
    * 
* * bool ignore_case = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The ignoreCase. */ @java.lang.Override @@ -192,7 +166,6 @@ public boolean getIgnoreCase() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -204,8 +177,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getGlossaryBytes().isEmpty()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(glossary_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, glossary_); } if (ignoreCase_ != false) { @@ -220,11 +194,12 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getGlossaryBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(glossary_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, glossary_); } if (ignoreCase_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, ignoreCase_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, ignoreCase_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -234,16 +209,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.cloud.translate.v3.TranslateTextGlossaryConfig)) { return super.equals(obj); } - com.google.cloud.translate.v3.TranslateTextGlossaryConfig other = - (com.google.cloud.translate.v3.TranslateTextGlossaryConfig) obj; + com.google.cloud.translate.v3.TranslateTextGlossaryConfig other = (com.google.cloud.translate.v3.TranslateTextGlossaryConfig) obj; - if (!getGlossary().equals(other.getGlossary())) return false; - if (getIgnoreCase() != other.getIgnoreCase()) return false; + if (!getGlossary() + .equals(other.getGlossary())) return false; + if (getIgnoreCase() + != other.getIgnoreCase()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -258,111 +234,104 @@ public int hashCode() { hash = (37 * hash) + GLOSSARY_FIELD_NUMBER; hash = (53 * hash) + getGlossary().hashCode(); hash = (37 * hash) + IGNORE_CASE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIgnoreCase()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIgnoreCase()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.translate.v3.TranslateTextGlossaryConfig 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.cloud.translate.v3.TranslateTextGlossaryConfig 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.cloud.translate.v3.TranslateTextGlossaryConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.TranslateTextGlossaryConfig 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.cloud.translate.v3.TranslateTextGlossaryConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.TranslateTextGlossaryConfig 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.cloud.translate.v3.TranslateTextGlossaryConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.TranslateTextGlossaryConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.TranslateTextGlossaryConfig 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.cloud.translate.v3.TranslateTextGlossaryConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.TranslateTextGlossaryConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.TranslateTextGlossaryConfig 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.cloud.translate.v3.TranslateTextGlossaryConfig 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.cloud.translate.v3.TranslateTextGlossaryConfig 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.cloud.translate.v3.TranslateTextGlossaryConfig prototype) { + public static Builder newBuilder(com.google.cloud.translate.v3.TranslateTextGlossaryConfig 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; } /** - * - * *
    * Configures which glossary should be used for a specific target language,
    * and defines options for applying that glossary.
@@ -370,23 +339,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.translation.v3.TranslateTextGlossaryConfig}
    */
-  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.translation.v3.TranslateTextGlossaryConfig)
       com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.translate.v3.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3_TranslateTextGlossaryConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateTextGlossaryConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.translate.v3.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3_TranslateTextGlossaryConfig_fieldAccessorTable
+      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateTextGlossaryConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.translate.v3.TranslateTextGlossaryConfig.class,
-              com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder.class);
+              com.google.cloud.translate.v3.TranslateTextGlossaryConfig.class, com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.translate.v3.TranslateTextGlossaryConfig.newBuilder()
@@ -394,15 +361,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -414,9 +382,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.translate.v3.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3_TranslateTextGlossaryConfig_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateTextGlossaryConfig_descriptor;
     }
 
     @java.lang.Override
@@ -435,8 +403,7 @@ public com.google.cloud.translate.v3.TranslateTextGlossaryConfig build() {
 
     @java.lang.Override
     public com.google.cloud.translate.v3.TranslateTextGlossaryConfig buildPartial() {
-      com.google.cloud.translate.v3.TranslateTextGlossaryConfig result =
-          new com.google.cloud.translate.v3.TranslateTextGlossaryConfig(this);
+      com.google.cloud.translate.v3.TranslateTextGlossaryConfig result = new com.google.cloud.translate.v3.TranslateTextGlossaryConfig(this);
       result.glossary_ = glossary_;
       result.ignoreCase_ = ignoreCase_;
       onBuilt();
@@ -447,39 +414,38 @@ public com.google.cloud.translate.v3.TranslateTextGlossaryConfig 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.cloud.translate.v3.TranslateTextGlossaryConfig) {
-        return mergeFrom((com.google.cloud.translate.v3.TranslateTextGlossaryConfig) other);
+        return mergeFrom((com.google.cloud.translate.v3.TranslateTextGlossaryConfig)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -487,8 +453,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.translate.v3.TranslateTextGlossaryConfig other) {
-      if (other == com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance()) return this;
       if (!other.getGlossary().isEmpty()) {
         glossary_ = other.glossary_;
         onChanged();
@@ -515,8 +480,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.translate.v3.TranslateTextGlossaryConfig) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.translate.v3.TranslateTextGlossaryConfig) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -528,8 +492,6 @@ public Builder mergeFrom(
 
     private java.lang.Object glossary_ = "";
     /**
-     *
-     *
      * 
      * Required. The `glossary` to be applied for this translation.
      * The format depends on glossary:
@@ -538,13 +500,13 @@ public Builder mergeFrom(
      * 
* * string glossary = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The glossary. */ public java.lang.String getGlossary() { java.lang.Object ref = glossary_; 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(); glossary_ = s; return s; @@ -553,8 +515,6 @@ public java.lang.String getGlossary() { } } /** - * - * *
      * Required. The `glossary` to be applied for this translation.
      * The format depends on glossary:
@@ -563,14 +523,15 @@ public java.lang.String getGlossary() {
      * 
* * string glossary = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for glossary. */ - public com.google.protobuf.ByteString getGlossaryBytes() { + public com.google.protobuf.ByteString + getGlossaryBytes() { java.lang.Object ref = glossary_; 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); glossary_ = b; return b; } else { @@ -578,8 +539,6 @@ public com.google.protobuf.ByteString getGlossaryBytes() { } } /** - * - * *
      * Required. The `glossary` to be applied for this translation.
      * The format depends on glossary:
@@ -588,22 +547,20 @@ public com.google.protobuf.ByteString getGlossaryBytes() {
      * 
* * string glossary = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The glossary to set. * @return This builder for chaining. */ - public Builder setGlossary(java.lang.String value) { + public Builder setGlossary( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + glossary_ = value; onChanged(); return this; } /** - * - * *
      * Required. The `glossary` to be applied for this translation.
      * The format depends on glossary:
@@ -612,18 +569,15 @@ public Builder setGlossary(java.lang.String value) {
      * 
* * string glossary = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearGlossary() { - + glossary_ = getDefaultInstance().getGlossary(); onChanged(); return this; } /** - * - * *
      * Required. The `glossary` to be applied for this translation.
      * The format depends on glossary:
@@ -632,32 +586,29 @@ public Builder clearGlossary() {
      * 
* * string glossary = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for glossary to set. * @return This builder for chaining. */ - public Builder setGlossaryBytes(com.google.protobuf.ByteString value) { + public Builder setGlossaryBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + glossary_ = value; onChanged(); return this; } - private boolean ignoreCase_; + private boolean ignoreCase_ ; /** - * - * *
      * Optional. Indicates match is case-insensitive.
      * Default value is false if missing.
      * 
* * bool ignore_case = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The ignoreCase. */ @java.lang.Override @@ -665,45 +616,39 @@ public boolean getIgnoreCase() { return ignoreCase_; } /** - * - * *
      * Optional. Indicates match is case-insensitive.
      * Default value is false if missing.
      * 
* * bool ignore_case = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The ignoreCase to set. * @return This builder for chaining. */ public Builder setIgnoreCase(boolean value) { - + ignoreCase_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Indicates match is case-insensitive.
      * Default value is false if missing.
      * 
* * bool ignore_case = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearIgnoreCase() { - + ignoreCase_ = false; 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); } @@ -713,12 +658,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.TranslateTextGlossaryConfig) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.TranslateTextGlossaryConfig) private static final com.google.cloud.translate.v3.TranslateTextGlossaryConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.TranslateTextGlossaryConfig(); } @@ -727,16 +672,16 @@ public static com.google.cloud.translate.v3.TranslateTextGlossaryConfig getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TranslateTextGlossaryConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TranslateTextGlossaryConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TranslateTextGlossaryConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TranslateTextGlossaryConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -751,4 +696,6 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.translate.v3.TranslateTextGlossaryConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextGlossaryConfigOrBuilder.java b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextGlossaryConfigOrBuilder.java similarity index 64% rename from proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextGlossaryConfigOrBuilder.java rename to owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextGlossaryConfigOrBuilder.java index d4a47362..5b6f6e15 100644 --- a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextGlossaryConfigOrBuilder.java +++ b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextGlossaryConfigOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 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/translate/v3/translation_service.proto package com.google.cloud.translate.v3; -public interface TranslateTextGlossaryConfigOrBuilder - extends +public interface TranslateTextGlossaryConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.TranslateTextGlossaryConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The `glossary` to be applied for this translation.
    * The format depends on glossary:
@@ -34,13 +16,10 @@ public interface TranslateTextGlossaryConfigOrBuilder
    * 
* * string glossary = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The glossary. */ java.lang.String getGlossary(); /** - * - * *
    * Required. The `glossary` to be applied for this translation.
    * The format depends on glossary:
@@ -49,21 +28,18 @@ public interface TranslateTextGlossaryConfigOrBuilder
    * 
* * string glossary = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for glossary. */ - com.google.protobuf.ByteString getGlossaryBytes(); + com.google.protobuf.ByteString + getGlossaryBytes(); /** - * - * *
    * Optional. Indicates match is case-insensitive.
    * Default value is false if missing.
    * 
* * bool ignore_case = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The ignoreCase. */ boolean getIgnoreCase(); diff --git a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextRequest.java b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextRequest.java similarity index 73% rename from proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextRequest.java rename to owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextRequest.java index 926bcc23..5e91c614 100644 --- a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextRequest.java +++ b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 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/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** - * - * *
  * The request message for synchronous translation.
  * 
* * Protobuf type {@code google.cloud.translation.v3.TranslateTextRequest} */ -public final class TranslateTextRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class TranslateTextRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.TranslateTextRequest) TranslateTextRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use TranslateTextRequest.newBuilder() to construct. private TranslateTextRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TranslateTextRequest() { contents_ = com.google.protobuf.LazyStringArrayList.EMPTY; mimeType_ = ""; @@ -48,15 +30,16 @@ private TranslateTextRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TranslateTextRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private TranslateTextRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -76,94 +59,85 @@ private TranslateTextRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - contents_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - contents_.add(s); - break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + contents_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + contents_.add(s); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - mimeType_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + mimeType_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); - sourceLanguageCode_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); + sourceLanguageCode_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); - targetLanguageCode_ = s; - break; - } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); + targetLanguageCode_ = s; + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); - model_ = s; - break; + model_ = s; + break; + } + case 58: { + com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder subBuilder = null; + if (glossaryConfig_ != null) { + subBuilder = glossaryConfig_.toBuilder(); } - case 58: - { - com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder subBuilder = null; - if (glossaryConfig_ != null) { - subBuilder = glossaryConfig_.toBuilder(); - } - glossaryConfig_ = - input.readMessage( - com.google.cloud.translate.v3.TranslateTextGlossaryConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(glossaryConfig_); - glossaryConfig_ = subBuilder.buildPartial(); - } - - break; + glossaryConfig_ = input.readMessage(com.google.cloud.translate.v3.TranslateTextGlossaryConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(glossaryConfig_); + glossaryConfig_ = subBuilder.buildPartial(); } - case 66: - { - java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 82: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - labels_ = - com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000002; - } - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); - break; + break; + } + case 66: { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 82: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000002; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put( + labels__.getKey(), labels__.getValue()); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { contents_ = contents_.getUnmodifiableView(); @@ -172,38 +146,34 @@ private TranslateTextRequest( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_TranslateTextRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateTextRequest_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 10: 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.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_TranslateTextRequest_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateTextRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.TranslateTextRequest.class, - com.google.cloud.translate.v3.TranslateTextRequest.Builder.class); + com.google.cloud.translate.v3.TranslateTextRequest.class, com.google.cloud.translate.v3.TranslateTextRequest.Builder.class); } public static final int CONTENTS_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList contents_; /** - * - * *
    * Required. The content of the input in string format.
    * We recommend the total content be less than 30k codepoints. The max length
@@ -212,15 +182,13 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
    * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return A list containing the contents. */ - public com.google.protobuf.ProtocolStringList getContentsList() { + public com.google.protobuf.ProtocolStringList + getContentsList() { return contents_; } /** - * - * *
    * Required. The content of the input in string format.
    * We recommend the total content be less than 30k codepoints. The max length
@@ -229,15 +197,12 @@ public com.google.protobuf.ProtocolStringList getContentsList() {
    * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The count of contents. */ public int getContentsCount() { return contents_.size(); } /** - * - * *
    * Required. The content of the input in string format.
    * We recommend the total content be less than 30k codepoints. The max length
@@ -246,7 +211,6 @@ public int getContentsCount() {
    * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the element to return. * @return The contents at the given index. */ @@ -254,8 +218,6 @@ public java.lang.String getContents(int index) { return contents_.get(index); } /** - * - * *
    * Required. The content of the input in string format.
    * We recommend the total content be less than 30k codepoints. The max length
@@ -264,26 +226,23 @@ public java.lang.String getContents(int index) {
    * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the value to return. * @return The bytes of the contents at the given index. */ - public com.google.protobuf.ByteString getContentsBytes(int index) { + public com.google.protobuf.ByteString + getContentsBytes(int index) { return contents_.getByteString(index); } public static final int MIME_TYPE_FIELD_NUMBER = 3; private volatile java.lang.Object mimeType_; /** - * - * *
    * Optional. The format of the source text, for example, "text/html",
    *  "text/plain". If left blank, the MIME type defaults to "text/html".
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The mimeType. */ @java.lang.Override @@ -292,30 +251,30 @@ public java.lang.String getMimeType() { 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(); mimeType_ = s; return s; } } /** - * - * *
    * Optional. The format of the source text, for example, "text/html",
    *  "text/plain". If left blank, the MIME type defaults to "text/html".
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for mimeType. */ @java.lang.Override - public com.google.protobuf.ByteString getMimeTypeBytes() { + public com.google.protobuf.ByteString + getMimeTypeBytes() { java.lang.Object ref = mimeType_; 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); mimeType_ = b; return b; } else { @@ -326,8 +285,6 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { public static final int SOURCE_LANGUAGE_CODE_FIELD_NUMBER = 4; private volatile java.lang.Object sourceLanguageCode_; /** - * - * *
    * Optional. The BCP-47 language code of the input text if
    * known, for example, "en-US" or "sr-Latn". Supported language codes are
@@ -337,7 +294,6 @@ public com.google.protobuf.ByteString getMimeTypeBytes() {
    * 
* * string source_language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The sourceLanguageCode. */ @java.lang.Override @@ -346,15 +302,14 @@ public java.lang.String getSourceLanguageCode() { 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(); sourceLanguageCode_ = s; return s; } } /** - * - * *
    * Optional. The BCP-47 language code of the input text if
    * known, for example, "en-US" or "sr-Latn". Supported language codes are
@@ -364,15 +319,16 @@ public java.lang.String getSourceLanguageCode() {
    * 
* * string source_language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for sourceLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { + public com.google.protobuf.ByteString + getSourceLanguageCodeBytes() { java.lang.Object ref = sourceLanguageCode_; 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); sourceLanguageCode_ = b; return b; } else { @@ -383,15 +339,12 @@ public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { public static final int TARGET_LANGUAGE_CODE_FIELD_NUMBER = 5; private volatile java.lang.Object targetLanguageCode_; /** - * - * *
    * Required. The BCP-47 language code to use for translation of the input
    * text, set to one of the language codes listed in Language Support.
    * 
* * string target_language_code = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The targetLanguageCode. */ @java.lang.Override @@ -400,30 +353,30 @@ public java.lang.String getTargetLanguageCode() { 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(); targetLanguageCode_ = s; return s; } } /** - * - * *
    * Required. The BCP-47 language code to use for translation of the input
    * text, set to one of the language codes listed in Language Support.
    * 
* * string target_language_code = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for targetLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { + public com.google.protobuf.ByteString + getTargetLanguageCodeBytes() { java.lang.Object ref = targetLanguageCode_; 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); targetLanguageCode_ = b; return b; } else { @@ -434,8 +387,6 @@ public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { public static final int PARENT_FIELD_NUMBER = 8; private volatile java.lang.Object parent_; /** - * - * *
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -449,10 +400,7 @@ public com.google.protobuf.ByteString getTargetLanguageCodeBytes() {
    * location-id), otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -461,15 +409,14 @@ 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. Project or location to make a call. Must refer to a caller's
    * project.
@@ -483,18 +430,17 @@ public java.lang.String getParent() {
    * location-id), otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 8 [(.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 { @@ -505,8 +451,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int MODEL_FIELD_NUMBER = 6; private volatile java.lang.Object model_; /** - * - * *
    * Optional. The `model` type requested for this translation.
    * The format depends on model type:
@@ -521,7 +465,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The model. */ @java.lang.Override @@ -530,15 +473,14 @@ public java.lang.String getModel() { 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(); model_ = s; return s; } } /** - * - * *
    * Optional. The `model` type requested for this translation.
    * The format depends on model type:
@@ -553,15 +495,16 @@ public java.lang.String getModel() {
    * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for model. */ @java.lang.Override - public com.google.protobuf.ByteString getModelBytes() { + public com.google.protobuf.ByteString + getModelBytes() { java.lang.Object ref = model_; 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); model_ = b; return b; } else { @@ -572,18 +515,13 @@ public com.google.protobuf.ByteString getModelBytes() { public static final int GLOSSARY_CONFIG_FIELD_NUMBER = 7; private com.google.cloud.translate.v3.TranslateTextGlossaryConfig glossaryConfig_; /** - * - * *
    * Optional. Glossary to be applied. The glossary must be
    * within the same region (have the same location-id) as the model, otherwise
    * an INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the glossaryConfig field is set. */ @java.lang.Override @@ -591,63 +529,52 @@ public boolean hasGlossaryConfig() { return glossaryConfig_ != null; } /** - * - * *
    * Optional. Glossary to be applied. The glossary must be
    * within the same region (have the same location-id) as the model, otherwise
    * an INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The glossaryConfig. */ @java.lang.Override public com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossaryConfig() { - return glossaryConfig_ == null - ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() - : glossaryConfig_; + return glossaryConfig_ == null ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; } /** - * - * *
    * Optional. Glossary to be applied. The glossary must be
    * within the same region (have the same location-id) as the model, otherwise
    * an INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder - getGlossaryConfigOrBuilder() { + public com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder getGlossaryConfigOrBuilder() { return getGlossaryConfig(); } public static final int LABELS_FIELD_NUMBER = 10; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_TranslateTextRequest_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.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateTextRequest_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - - 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_; } @@ -656,8 +583,6 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Optional. The labels with user-defined metadata for the request.
    * Label keys and values can be no longer than 63 characters
@@ -670,22 +595,22 @@ public int getLabelsCount() {
    *
    * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
    */
+
   @java.lang.Override
-  public boolean containsLabels(java.lang.String key) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
+  public boolean containsLabels(
+      java.lang.String key) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
     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. The labels with user-defined metadata for the request.
    * Label keys and values can be no longer than 63 characters
@@ -699,12 +624,11 @@ public java.util.Map getLabels() {
    * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
+
   public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    * Label keys and values can be no longer than 63 characters
@@ -718,16 +642,16 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
-    java.util.Map map = internalGetLabels().getMap();
+
+  public java.lang.String getLabelsOrDefault(
+      java.lang.String key,
+      java.lang.String defaultValue) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    * Label keys and values can be no longer than 63 characters
@@ -741,11 +665,12 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin
    * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
-    java.util.Map map = internalGetLabels().getMap();
+
+  public java.lang.String getLabelsOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -753,7 +678,6 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -765,30 +689,35 @@ 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 < contents_.size(); i++) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, contents_.getRaw(i));
     }
-    if (!getMimeTypeBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mimeType_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 3, mimeType_);
     }
-    if (!getSourceLanguageCodeBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceLanguageCode_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 4, sourceLanguageCode_);
     }
-    if (!getTargetLanguageCodeBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetLanguageCode_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 5, targetLanguageCode_);
     }
-    if (!getModelBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(model_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 6, model_);
     }
     if (glossaryConfig_ != null) {
       output.writeMessage(7, getGlossaryConfig());
     }
-    if (!getParentBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 8, parent_);
     }
-    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
-        output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 10);
+    com.google.protobuf.GeneratedMessageV3
+      .serializeStringMapTo(
+        output,
+        internalGetLabels(),
+        LabelsDefaultEntryHolder.defaultEntry,
+        10);
     unknownFields.writeTo(output);
   }
 
@@ -806,33 +735,34 @@ public int getSerializedSize() {
       size += dataSize;
       size += 1 * getContentsList().size();
     }
-    if (!getMimeTypeBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mimeType_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, mimeType_);
     }
-    if (!getSourceLanguageCodeBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceLanguageCode_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, sourceLanguageCode_);
     }
-    if (!getTargetLanguageCodeBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetLanguageCode_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, targetLanguageCode_);
     }
-    if (!getModelBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(model_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, model_);
     }
     if (glossaryConfig_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getGlossaryConfig());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(7, getGlossaryConfig());
     }
-    if (!getParentBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, parent_);
     }
-    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(10, labels__);
+    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(10, labels__);
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -842,25 +772,32 @@ 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.cloud.translate.v3.TranslateTextRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3.TranslateTextRequest other =
-        (com.google.cloud.translate.v3.TranslateTextRequest) obj;
-
-    if (!getContentsList().equals(other.getContentsList())) return false;
-    if (!getMimeType().equals(other.getMimeType())) return false;
-    if (!getSourceLanguageCode().equals(other.getSourceLanguageCode())) return false;
-    if (!getTargetLanguageCode().equals(other.getTargetLanguageCode())) return false;
-    if (!getParent().equals(other.getParent())) return false;
-    if (!getModel().equals(other.getModel())) return false;
+    com.google.cloud.translate.v3.TranslateTextRequest other = (com.google.cloud.translate.v3.TranslateTextRequest) obj;
+
+    if (!getContentsList()
+        .equals(other.getContentsList())) return false;
+    if (!getMimeType()
+        .equals(other.getMimeType())) return false;
+    if (!getSourceLanguageCode()
+        .equals(other.getSourceLanguageCode())) return false;
+    if (!getTargetLanguageCode()
+        .equals(other.getTargetLanguageCode())) return false;
+    if (!getParent()
+        .equals(other.getParent())) return false;
+    if (!getModel()
+        .equals(other.getModel())) return false;
     if (hasGlossaryConfig() != other.hasGlossaryConfig()) return false;
     if (hasGlossaryConfig()) {
-      if (!getGlossaryConfig().equals(other.getGlossaryConfig())) return false;
+      if (!getGlossaryConfig()
+          .equals(other.getGlossaryConfig())) return false;
     }
-    if (!internalGetLabels().equals(other.internalGetLabels())) return false;
+    if (!internalGetLabels().equals(
+        other.internalGetLabels())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -900,146 +837,139 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3.TranslateTextRequest 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.cloud.translate.v3.TranslateTextRequest 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.cloud.translate.v3.TranslateTextRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3.TranslateTextRequest 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.cloud.translate.v3.TranslateTextRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3.TranslateTextRequest 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.cloud.translate.v3.TranslateTextRequest parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3.TranslateTextRequest parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3.TranslateTextRequest 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.cloud.translate.v3.TranslateTextRequest parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3.TranslateTextRequest parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3.TranslateTextRequest 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.cloud.translate.v3.TranslateTextRequest 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.cloud.translate.v3.TranslateTextRequest 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.cloud.translate.v3.TranslateTextRequest 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 for synchronous translation.
    * 
* * Protobuf type {@code google.cloud.translation.v3.TranslateTextRequest} */ - 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.translation.v3.TranslateTextRequest) com.google.cloud.translate.v3.TranslateTextRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_TranslateTextRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateTextRequest_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 10: 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 10: 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.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_TranslateTextRequest_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateTextRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.TranslateTextRequest.class, - com.google.cloud.translate.v3.TranslateTextRequest.Builder.class); + com.google.cloud.translate.v3.TranslateTextRequest.class, com.google.cloud.translate.v3.TranslateTextRequest.Builder.class); } // Construct using com.google.cloud.translate.v3.TranslateTextRequest.newBuilder() @@ -1047,15 +977,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1082,9 +1013,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_TranslateTextRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateTextRequest_descriptor; } @java.lang.Override @@ -1103,8 +1034,7 @@ public com.google.cloud.translate.v3.TranslateTextRequest build() { @java.lang.Override public com.google.cloud.translate.v3.TranslateTextRequest buildPartial() { - com.google.cloud.translate.v3.TranslateTextRequest result = - new com.google.cloud.translate.v3.TranslateTextRequest(this); + com.google.cloud.translate.v3.TranslateTextRequest result = new com.google.cloud.translate.v3.TranslateTextRequest(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { contents_ = contents_.getUnmodifiableView(); @@ -1131,39 +1061,38 @@ public com.google.cloud.translate.v3.TranslateTextRequest 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.cloud.translate.v3.TranslateTextRequest) { - return mergeFrom((com.google.cloud.translate.v3.TranslateTextRequest) other); + return mergeFrom((com.google.cloud.translate.v3.TranslateTextRequest)other); } else { super.mergeFrom(other); return this; @@ -1171,8 +1100,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.TranslateTextRequest other) { - if (other == com.google.cloud.translate.v3.TranslateTextRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3.TranslateTextRequest.getDefaultInstance()) return this; if (!other.contents_.isEmpty()) { if (contents_.isEmpty()) { contents_ = other.contents_; @@ -1206,7 +1134,8 @@ public Builder mergeFrom(com.google.cloud.translate.v3.TranslateTextRequest othe if (other.hasGlossaryConfig()) { mergeGlossaryConfig(other.getGlossaryConfig()); } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -1226,8 +1155,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.translate.v3.TranslateTextRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.translate.v3.TranslateTextRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1236,21 +1164,16 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private com.google.protobuf.LazyStringList contents_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList contents_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureContentsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { contents_ = new com.google.protobuf.LazyStringArrayList(contents_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * Required. The content of the input in string format.
      * We recommend the total content be less than 30k codepoints. The max length
@@ -1259,15 +1182,13 @@ private void ensureContentsIsMutable() {
      * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return A list containing the contents. */ - public com.google.protobuf.ProtocolStringList getContentsList() { + public com.google.protobuf.ProtocolStringList + getContentsList() { return contents_.getUnmodifiableView(); } /** - * - * *
      * Required. The content of the input in string format.
      * We recommend the total content be less than 30k codepoints. The max length
@@ -1276,15 +1197,12 @@ public com.google.protobuf.ProtocolStringList getContentsList() {
      * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The count of contents. */ public int getContentsCount() { return contents_.size(); } /** - * - * *
      * Required. The content of the input in string format.
      * We recommend the total content be less than 30k codepoints. The max length
@@ -1293,7 +1211,6 @@ public int getContentsCount() {
      * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the element to return. * @return The contents at the given index. */ @@ -1301,8 +1218,6 @@ public java.lang.String getContents(int index) { return contents_.get(index); } /** - * - * *
      * Required. The content of the input in string format.
      * We recommend the total content be less than 30k codepoints. The max length
@@ -1311,16 +1226,14 @@ public java.lang.String getContents(int index) {
      * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the value to return. * @return The bytes of the contents at the given index. */ - public com.google.protobuf.ByteString getContentsBytes(int index) { + public com.google.protobuf.ByteString + getContentsBytes(int index) { return contents_.getByteString(index); } /** - * - * *
      * Required. The content of the input in string format.
      * We recommend the total content be less than 30k codepoints. The max length
@@ -1329,23 +1242,21 @@ public com.google.protobuf.ByteString getContentsBytes(int index) {
      * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index to set the value at. * @param value The contents to set. * @return This builder for chaining. */ - public Builder setContents(int index, java.lang.String value) { + public Builder setContents( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureContentsIsMutable(); + throw new NullPointerException(); + } + ensureContentsIsMutable(); contents_.set(index, value); onChanged(); return this; } /** - * - * *
      * Required. The content of the input in string format.
      * We recommend the total content be less than 30k codepoints. The max length
@@ -1354,22 +1265,20 @@ public Builder setContents(int index, java.lang.String value) {
      * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The contents to add. * @return This builder for chaining. */ - public Builder addContents(java.lang.String value) { + public Builder addContents( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureContentsIsMutable(); + throw new NullPointerException(); + } + ensureContentsIsMutable(); contents_.add(value); onChanged(); return this; } /** - * - * *
      * Required. The content of the input in string format.
      * We recommend the total content be less than 30k codepoints. The max length
@@ -1378,19 +1287,18 @@ public Builder addContents(java.lang.String value) {
      * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param values The contents to add. * @return This builder for chaining. */ - public Builder addAllContents(java.lang.Iterable values) { + public Builder addAllContents( + java.lang.Iterable values) { ensureContentsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, contents_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, contents_); onChanged(); return this; } /** - * - * *
      * Required. The content of the input in string format.
      * We recommend the total content be less than 30k codepoints. The max length
@@ -1399,7 +1307,6 @@ public Builder addAllContents(java.lang.Iterable values) {
      * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearContents() { @@ -1409,8 +1316,6 @@ public Builder clearContents() { return this; } /** - * - * *
      * Required. The content of the input in string format.
      * We recommend the total content be less than 30k codepoints. The max length
@@ -1419,15 +1324,15 @@ public Builder clearContents() {
      * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes of the contents to add. * @return This builder for chaining. */ - public Builder addContentsBytes(com.google.protobuf.ByteString value) { + public Builder addContentsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureContentsIsMutable(); contents_.add(value); onChanged(); @@ -1436,21 +1341,19 @@ public Builder addContentsBytes(com.google.protobuf.ByteString value) { private java.lang.Object mimeType_ = ""; /** - * - * *
      * Optional. The format of the source text, for example, "text/html",
      *  "text/plain". If left blank, the MIME type defaults to "text/html".
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The mimeType. */ public java.lang.String getMimeType() { java.lang.Object ref = mimeType_; 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(); mimeType_ = s; return s; @@ -1459,22 +1362,21 @@ public java.lang.String getMimeType() { } } /** - * - * *
      * Optional. The format of the source text, for example, "text/html",
      *  "text/plain". If left blank, the MIME type defaults to "text/html".
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for mimeType. */ - public com.google.protobuf.ByteString getMimeTypeBytes() { + public com.google.protobuf.ByteString + getMimeTypeBytes() { java.lang.Object ref = mimeType_; 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); mimeType_ = b; return b; } else { @@ -1482,64 +1384,57 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { } } /** - * - * *
      * Optional. The format of the source text, for example, "text/html",
      *  "text/plain". If left blank, the MIME type defaults to "text/html".
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The mimeType to set. * @return This builder for chaining. */ - public Builder setMimeType(java.lang.String value) { + public Builder setMimeType( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + mimeType_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The format of the source text, for example, "text/html",
      *  "text/plain". If left blank, the MIME type defaults to "text/html".
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearMimeType() { - + mimeType_ = getDefaultInstance().getMimeType(); onChanged(); return this; } /** - * - * *
      * Optional. The format of the source text, for example, "text/html",
      *  "text/plain". If left blank, the MIME type defaults to "text/html".
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for mimeType to set. * @return This builder for chaining. */ - public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { + public Builder setMimeTypeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mimeType_ = value; onChanged(); return this; @@ -1547,8 +1442,6 @@ public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { private java.lang.Object sourceLanguageCode_ = ""; /** - * - * *
      * Optional. The BCP-47 language code of the input text if
      * known, for example, "en-US" or "sr-Latn". Supported language codes are
@@ -1558,13 +1451,13 @@ public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) {
      * 
* * string source_language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The sourceLanguageCode. */ public java.lang.String getSourceLanguageCode() { java.lang.Object ref = sourceLanguageCode_; 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(); sourceLanguageCode_ = s; return s; @@ -1573,8 +1466,6 @@ public java.lang.String getSourceLanguageCode() { } } /** - * - * *
      * Optional. The BCP-47 language code of the input text if
      * known, for example, "en-US" or "sr-Latn". Supported language codes are
@@ -1584,14 +1475,15 @@ public java.lang.String getSourceLanguageCode() {
      * 
* * string source_language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for sourceLanguageCode. */ - public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { + public com.google.protobuf.ByteString + getSourceLanguageCodeBytes() { java.lang.Object ref = sourceLanguageCode_; 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); sourceLanguageCode_ = b; return b; } else { @@ -1599,8 +1491,6 @@ public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { } } /** - * - * *
      * Optional. The BCP-47 language code of the input text if
      * known, for example, "en-US" or "sr-Latn". Supported language codes are
@@ -1610,22 +1500,20 @@ public com.google.protobuf.ByteString getSourceLanguageCodeBytes() {
      * 
* * string source_language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCode(java.lang.String value) { + public Builder setSourceLanguageCode( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + sourceLanguageCode_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The BCP-47 language code of the input text if
      * known, for example, "en-US" or "sr-Latn". Supported language codes are
@@ -1635,18 +1523,15 @@ public Builder setSourceLanguageCode(java.lang.String value) {
      * 
* * string source_language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearSourceLanguageCode() { - + sourceLanguageCode_ = getDefaultInstance().getSourceLanguageCode(); onChanged(); return this; } /** - * - * *
      * Optional. The BCP-47 language code of the input text if
      * known, for example, "en-US" or "sr-Latn". Supported language codes are
@@ -1656,16 +1541,16 @@ public Builder clearSourceLanguageCode() {
      * 
* * string source_language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCodeBytes(com.google.protobuf.ByteString value) { + public Builder setSourceLanguageCodeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceLanguageCode_ = value; onChanged(); return this; @@ -1673,21 +1558,19 @@ public Builder setSourceLanguageCodeBytes(com.google.protobuf.ByteString value) private java.lang.Object targetLanguageCode_ = ""; /** - * - * *
      * Required. The BCP-47 language code to use for translation of the input
      * text, set to one of the language codes listed in Language Support.
      * 
* * string target_language_code = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The targetLanguageCode. */ public java.lang.String getTargetLanguageCode() { java.lang.Object ref = targetLanguageCode_; 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(); targetLanguageCode_ = s; return s; @@ -1696,22 +1579,21 @@ public java.lang.String getTargetLanguageCode() { } } /** - * - * *
      * Required. The BCP-47 language code to use for translation of the input
      * text, set to one of the language codes listed in Language Support.
      * 
* * string target_language_code = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for targetLanguageCode. */ - public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { + public com.google.protobuf.ByteString + getTargetLanguageCodeBytes() { java.lang.Object ref = targetLanguageCode_; 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); targetLanguageCode_ = b; return b; } else { @@ -1719,64 +1601,57 @@ public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { } } /** - * - * *
      * Required. The BCP-47 language code to use for translation of the input
      * text, set to one of the language codes listed in Language Support.
      * 
* * string target_language_code = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The targetLanguageCode to set. * @return This builder for chaining. */ - public Builder setTargetLanguageCode(java.lang.String value) { + public Builder setTargetLanguageCode( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + targetLanguageCode_ = value; onChanged(); return this; } /** - * - * *
      * Required. The BCP-47 language code to use for translation of the input
      * text, set to one of the language codes listed in Language Support.
      * 
* * string target_language_code = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearTargetLanguageCode() { - + targetLanguageCode_ = getDefaultInstance().getTargetLanguageCode(); onChanged(); return this; } /** - * - * *
      * Required. The BCP-47 language code to use for translation of the input
      * text, set to one of the language codes listed in Language Support.
      * 
* * string target_language_code = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for targetLanguageCode to set. * @return This builder for chaining. */ - public Builder setTargetLanguageCodeBytes(com.google.protobuf.ByteString value) { + public Builder setTargetLanguageCodeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + targetLanguageCode_ = value; onChanged(); return this; @@ -1784,8 +1659,6 @@ public Builder setTargetLanguageCodeBytes(com.google.protobuf.ByteString value) private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -1799,16 +1672,14 @@ public Builder setTargetLanguageCodeBytes(com.google.protobuf.ByteString value)
      * location-id), otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 8 [(.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; @@ -1817,8 +1688,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -1832,17 +1701,16 @@ public java.lang.String getParent() {
      * location-id), otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 8 [(.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 { @@ -1850,8 +1718,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -1865,25 +1731,21 @@ public com.google.protobuf.ByteString getParentBytes() {
      * location-id), otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 8 [(.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) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -1897,21 +1759,16 @@ public Builder setParent(java.lang.String value) {
      * location-id), otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -1925,19 +1782,17 @@ public Builder clearParent() {
      * location-id), otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 8 [(.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) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -1945,8 +1800,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object model_ = ""; /** - * - * *
      * Optional. The `model` type requested for this translation.
      * The format depends on model type:
@@ -1961,13 +1814,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; 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(); model_ = s; return s; @@ -1976,8 +1829,6 @@ public java.lang.String getModel() { } } /** - * - * *
      * Optional. The `model` type requested for this translation.
      * The format depends on model type:
@@ -1992,14 +1843,15 @@ public java.lang.String getModel() {
      * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for model. */ - public com.google.protobuf.ByteString getModelBytes() { + public com.google.protobuf.ByteString + getModelBytes() { java.lang.Object ref = model_; 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); model_ = b; return b; } else { @@ -2007,8 +1859,6 @@ public com.google.protobuf.ByteString getModelBytes() { } } /** - * - * *
      * Optional. The `model` type requested for this translation.
      * The format depends on model type:
@@ -2023,22 +1873,20 @@ public com.google.protobuf.ByteString getModelBytes() {
      * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The model to set. * @return This builder for chaining. */ - public Builder setModel(java.lang.String value) { + public Builder setModel( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + model_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The `model` type requested for this translation.
      * The format depends on model type:
@@ -2053,18 +1901,15 @@ public Builder setModel(java.lang.String value) {
      * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearModel() { - + model_ = getDefaultInstance().getModel(); onChanged(); return this; } /** - * - * *
      * Optional. The `model` type requested for this translation.
      * The format depends on model type:
@@ -2079,16 +1924,16 @@ public Builder clearModel() {
      * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for model to set. * @return This builder for chaining. */ - public Builder setModelBytes(com.google.protobuf.ByteString value) { + public Builder setModelBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + model_ = value; onChanged(); return this; @@ -2096,67 +1941,47 @@ public Builder setModelBytes(com.google.protobuf.ByteString value) { private com.google.cloud.translate.v3.TranslateTextGlossaryConfig glossaryConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.TranslateTextGlossaryConfig, - com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, - com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder> - glossaryConfigBuilder_; + com.google.cloud.translate.v3.TranslateTextGlossaryConfig, com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder> glossaryConfigBuilder_; /** - * - * *
      * Optional. Glossary to be applied. The glossary must be
      * within the same region (have the same location-id) as the model, otherwise
      * an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the glossaryConfig field is set. */ public boolean hasGlossaryConfig() { return glossaryConfigBuilder_ != null || glossaryConfig_ != null; } /** - * - * *
      * Optional. Glossary to be applied. The glossary must be
      * within the same region (have the same location-id) as the model, otherwise
      * an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The glossaryConfig. */ public com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossaryConfig() { if (glossaryConfigBuilder_ == null) { - return glossaryConfig_ == null - ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() - : glossaryConfig_; + return glossaryConfig_ == null ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; } else { return glossaryConfigBuilder_.getMessage(); } } /** - * - * *
      * Optional. Glossary to be applied. The glossary must be
      * within the same region (have the same location-id) as the model, otherwise
      * an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setGlossaryConfig( - com.google.cloud.translate.v3.TranslateTextGlossaryConfig value) { + public Builder setGlossaryConfig(com.google.cloud.translate.v3.TranslateTextGlossaryConfig value) { if (glossaryConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2170,17 +1995,13 @@ public Builder setGlossaryConfig( return this; } /** - * - * *
      * Optional. Glossary to be applied. The glossary must be
      * within the same region (have the same location-id) as the model, otherwise
      * an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setGlossaryConfig( com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder builderForValue) { @@ -2194,26 +2015,19 @@ public Builder setGlossaryConfig( return this; } /** - * - * *
      * Optional. Glossary to be applied. The glossary must be
      * within the same region (have the same location-id) as the model, otherwise
      * an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergeGlossaryConfig( - com.google.cloud.translate.v3.TranslateTextGlossaryConfig value) { + public Builder mergeGlossaryConfig(com.google.cloud.translate.v3.TranslateTextGlossaryConfig value) { if (glossaryConfigBuilder_ == null) { if (glossaryConfig_ != null) { glossaryConfig_ = - com.google.cloud.translate.v3.TranslateTextGlossaryConfig.newBuilder(glossaryConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.translate.v3.TranslateTextGlossaryConfig.newBuilder(glossaryConfig_).mergeFrom(value).buildPartial(); } else { glossaryConfig_ = value; } @@ -2225,17 +2039,13 @@ public Builder mergeGlossaryConfig( return this; } /** - * - * *
      * Optional. Glossary to be applied. The glossary must be
      * within the same region (have the same location-id) as the model, otherwise
      * an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearGlossaryConfig() { if (glossaryConfigBuilder_ == null) { @@ -2249,92 +2059,75 @@ public Builder clearGlossaryConfig() { return this; } /** - * - * *
      * Optional. Glossary to be applied. The glossary must be
      * within the same region (have the same location-id) as the model, otherwise
      * an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder - getGlossaryConfigBuilder() { - + public com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder getGlossaryConfigBuilder() { + onChanged(); return getGlossaryConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Glossary to be applied. The glossary must be
      * within the same region (have the same location-id) as the model, otherwise
      * an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder - getGlossaryConfigOrBuilder() { + public com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder getGlossaryConfigOrBuilder() { if (glossaryConfigBuilder_ != null) { return glossaryConfigBuilder_.getMessageOrBuilder(); } else { - return glossaryConfig_ == null - ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() - : glossaryConfig_; + return glossaryConfig_ == null ? + com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; } } /** - * - * *
      * Optional. Glossary to be applied. The glossary must be
      * within the same region (have the same location-id) as the model, otherwise
      * an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.TranslateTextGlossaryConfig, - com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, - com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder> + com.google.cloud.translate.v3.TranslateTextGlossaryConfig, com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder> getGlossaryConfigFieldBuilder() { if (glossaryConfigBuilder_ == null) { - glossaryConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.TranslateTextGlossaryConfig, - com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, - com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder>( - getGlossaryConfig(), getParentForChildren(), isClean()); + glossaryConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3.TranslateTextGlossaryConfig, com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder>( + getGlossaryConfig(), + getParentForChildren(), + isClean()); glossaryConfig_ = null; } return glossaryConfigBuilder_; } - 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() { - onChanged(); - ; + internalGetMutableLabels() { + onChanged();; 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(); @@ -2346,8 +2139,6 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Optional. The labels with user-defined metadata for the request.
      * Label keys and values can be no longer than 63 characters
@@ -2360,22 +2151,22 @@ public int getLabelsCount() {
      *
      * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
      */
+
     @java.lang.Override
-    public boolean containsLabels(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
+    public boolean containsLabels(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
       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. The labels with user-defined metadata for the request.
      * Label keys and values can be no longer than 63 characters
@@ -2389,12 +2180,11 @@ public java.util.Map getLabels() {
      * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
+
     public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      * Label keys and values can be no longer than 63 characters
@@ -2408,17 +2198,16 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
+
     public java.lang.String getLabelsOrDefault(
-        java.lang.String key, java.lang.String defaultValue) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      java.util.Map map = internalGetLabels().getMap();
+        java.lang.String key,
+        java.lang.String defaultValue) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      * Label keys and values can be no longer than 63 characters
@@ -2432,11 +2221,12 @@ public java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public java.lang.String getLabelsOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      java.util.Map map = internalGetLabels().getMap();
+
+    public java.lang.String getLabelsOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -2444,12 +2234,11 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
     }
 
     public Builder clearLabels() {
-      internalGetMutableLabels().getMutableMap().clear();
+      internalGetMutableLabels().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      * Label keys and values can be no longer than 63 characters
@@ -2462,21 +2251,23 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder removeLabels(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      internalGetMutableLabels().getMutableMap().remove(key);
+
+    public Builder removeLabels(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      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() {
       return internalGetMutableLabels().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      * Label keys and values can be no longer than 63 characters
@@ -2489,19 +2280,16 @@ public java.util.Map getMutableLabels() {
      *
      * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putLabels(java.lang.String key, java.lang.String value) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      if (value == null) {
-        throw new java.lang.NullPointerException();
-      }
-      internalGetMutableLabels().getMutableMap().put(key, value);
+    public Builder putLabels(
+        java.lang.String key,
+        java.lang.String value) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      if (value == null) { throw new java.lang.NullPointerException(); }
+      internalGetMutableLabels().getMutableMap()
+          .put(key, value);
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      * Label keys and values can be no longer than 63 characters
@@ -2514,13 +2302,16 @@ public Builder putLabels(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> labels = 10 [(.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);
       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);
     }
 
@@ -2530,12 +2321,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.TranslateTextRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.TranslateTextRequest)
   private static final com.google.cloud.translate.v3.TranslateTextRequest DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3.TranslateTextRequest();
   }
@@ -2544,16 +2335,16 @@ public static com.google.cloud.translate.v3.TranslateTextRequest getDefaultInsta
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public TranslateTextRequest parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new TranslateTextRequest(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public TranslateTextRequest parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new TranslateTextRequest(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2568,4 +2359,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3.TranslateTextRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextRequestOrBuilder.java b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextRequestOrBuilder.java
similarity index 82%
rename from proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextRequestOrBuilder.java
rename to owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextRequestOrBuilder.java
index cac410ea..37788a84 100644
--- a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextRequestOrBuilder.java
+++ b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextRequestOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2020 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/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
-public interface TranslateTextRequestOrBuilder
-    extends
+public interface TranslateTextRequestOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.TranslateTextRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. The content of the input in string format.
    * We recommend the total content be less than 30k codepoints. The max length
@@ -34,13 +16,11 @@ public interface TranslateTextRequestOrBuilder
    * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return A list containing the contents. */ - java.util.List getContentsList(); + java.util.List + getContentsList(); /** - * - * *
    * Required. The content of the input in string format.
    * We recommend the total content be less than 30k codepoints. The max length
@@ -49,13 +29,10 @@ public interface TranslateTextRequestOrBuilder
    * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The count of contents. */ int getContentsCount(); /** - * - * *
    * Required. The content of the input in string format.
    * We recommend the total content be less than 30k codepoints. The max length
@@ -64,14 +41,11 @@ public interface TranslateTextRequestOrBuilder
    * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the element to return. * @return The contents at the given index. */ java.lang.String getContents(int index); /** - * - * *
    * Required. The content of the input in string format.
    * We recommend the total content be less than 30k codepoints. The max length
@@ -80,42 +54,35 @@ public interface TranslateTextRequestOrBuilder
    * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the value to return. * @return The bytes of the contents at the given index. */ - com.google.protobuf.ByteString getContentsBytes(int index); + com.google.protobuf.ByteString + getContentsBytes(int index); /** - * - * *
    * Optional. The format of the source text, for example, "text/html",
    *  "text/plain". If left blank, the MIME type defaults to "text/html".
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The mimeType. */ java.lang.String getMimeType(); /** - * - * *
    * Optional. The format of the source text, for example, "text/html",
    *  "text/plain". If left blank, the MIME type defaults to "text/html".
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for mimeType. */ - com.google.protobuf.ByteString getMimeTypeBytes(); + com.google.protobuf.ByteString + getMimeTypeBytes(); /** - * - * *
    * Optional. The BCP-47 language code of the input text if
    * known, for example, "en-US" or "sr-Latn". Supported language codes are
@@ -125,13 +92,10 @@ public interface TranslateTextRequestOrBuilder
    * 
* * string source_language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The sourceLanguageCode. */ java.lang.String getSourceLanguageCode(); /** - * - * *
    * Optional. The BCP-47 language code of the input text if
    * known, for example, "en-US" or "sr-Latn". Supported language codes are
@@ -141,41 +105,34 @@ public interface TranslateTextRequestOrBuilder
    * 
* * string source_language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for sourceLanguageCode. */ - com.google.protobuf.ByteString getSourceLanguageCodeBytes(); + com.google.protobuf.ByteString + getSourceLanguageCodeBytes(); /** - * - * *
    * Required. The BCP-47 language code to use for translation of the input
    * text, set to one of the language codes listed in Language Support.
    * 
* * string target_language_code = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The targetLanguageCode. */ java.lang.String getTargetLanguageCode(); /** - * - * *
    * Required. The BCP-47 language code to use for translation of the input
    * text, set to one of the language codes listed in Language Support.
    * 
* * string target_language_code = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for targetLanguageCode. */ - com.google.protobuf.ByteString getTargetLanguageCodeBytes(); + com.google.protobuf.ByteString + getTargetLanguageCodeBytes(); /** - * - * *
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -189,16 +146,11 @@ public interface TranslateTextRequestOrBuilder
    * location-id), otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -212,17 +164,13 @@ public interface TranslateTextRequestOrBuilder
    * location-id), otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 8 [(.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 `model` type requested for this translation.
    * The format depends on model type:
@@ -237,13 +185,10 @@ public interface TranslateTextRequestOrBuilder
    * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The model. */ java.lang.String getModel(); /** - * - * *
    * Optional. The `model` type requested for this translation.
    * The format depends on model type:
@@ -258,61 +203,45 @@ public interface TranslateTextRequestOrBuilder
    * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for model. */ - com.google.protobuf.ByteString getModelBytes(); + com.google.protobuf.ByteString + getModelBytes(); /** - * - * *
    * Optional. Glossary to be applied. The glossary must be
    * within the same region (have the same location-id) as the model, otherwise
    * an INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the glossaryConfig field is set. */ boolean hasGlossaryConfig(); /** - * - * *
    * Optional. Glossary to be applied. The glossary must be
    * within the same region (have the same location-id) as the model, otherwise
    * an INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The glossaryConfig. */ com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossaryConfig(); /** - * - * *
    * Optional. Glossary to be applied. The glossary must be
    * within the same region (have the same location-id) as the model, otherwise
    * an INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder getGlossaryConfigOrBuilder(); /** - * - * *
    * Optional. The labels with user-defined metadata for the request.
    * Label keys and values can be no longer than 63 characters
@@ -327,8 +256,6 @@ public interface TranslateTextRequestOrBuilder
    */
   int getLabelsCount();
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    * Label keys and values can be no longer than 63 characters
@@ -341,13 +268,15 @@ public interface TranslateTextRequestOrBuilder
    *
    * map<string, string> labels = 10 [(.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. The labels with user-defined metadata for the request.
    * Label keys and values can be no longer than 63 characters
@@ -360,10 +289,9 @@ public interface TranslateTextRequestOrBuilder
    *
    * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.util.Map getLabelsMap();
+  java.util.Map
+  getLabelsMap();
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    * Label keys and values can be no longer than 63 characters
@@ -376,10 +304,11 @@ public interface TranslateTextRequestOrBuilder
    *
    * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue);
+
+  java.lang.String getLabelsOrDefault(
+      java.lang.String key,
+      java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    * Label keys and values can be no longer than 63 characters
@@ -392,5 +321,7 @@ public interface TranslateTextRequestOrBuilder
    *
    * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.lang.String getLabelsOrThrow(java.lang.String key);
+
+  java.lang.String getLabelsOrThrow(
+      java.lang.String key);
 }
diff --git a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextResponse.java b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextResponse.java
similarity index 80%
rename from proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextResponse.java
rename to owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextResponse.java
index 802a04be..2d8466ee 100644
--- a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextResponse.java
+++ b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextResponse.java
@@ -1,34 +1,20 @@
-/*
- * Copyright 2020 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/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
-/** Protobuf type {@code google.cloud.translation.v3.TranslateTextResponse} */
-public final class TranslateTextResponse extends com.google.protobuf.GeneratedMessageV3
-    implements
+/**
+ * Protobuf type {@code google.cloud.translation.v3.TranslateTextResponse}
+ */
+public final class TranslateTextResponse extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.TranslateTextResponse)
     TranslateTextResponseOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use TranslateTextResponse.newBuilder() to construct.
   private TranslateTextResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private TranslateTextResponse() {
     translations_ = java.util.Collections.emptyList();
     glossaryTranslations_ = java.util.Collections.emptyList();
@@ -36,15 +22,16 @@ private TranslateTextResponse() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new TranslateTextResponse();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private TranslateTextResponse(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -64,43 +51,38 @@ private TranslateTextResponse(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                translations_ =
-                    new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              translations_.add(
-                  input.readMessage(
-                      com.google.cloud.translate.v3.Translation.parser(), extensionRegistry));
-              break;
+          case 10: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              translations_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 26:
-            {
-              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-                glossaryTranslations_ =
-                    new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000002;
-              }
-              glossaryTranslations_.add(
-                  input.readMessage(
-                      com.google.cloud.translate.v3.Translation.parser(), extensionRegistry));
-              break;
+            translations_.add(
+                input.readMessage(com.google.cloud.translate.v3.Translation.parser(), extensionRegistry));
+            break;
+          }
+          case 26: {
+            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+              glossaryTranslations_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000002;
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            glossaryTranslations_.add(
+                input.readMessage(com.google.cloud.translate.v3.Translation.parser(), extensionRegistry));
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         translations_ = java.util.Collections.unmodifiableList(translations_);
@@ -112,27 +94,22 @@ private TranslateTextResponse(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.translate.v3.TranslationServiceProto
-        .internal_static_google_cloud_translation_v3_TranslateTextResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateTextResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.translate.v3.TranslationServiceProto
-        .internal_static_google_cloud_translation_v3_TranslateTextResponse_fieldAccessorTable
+    return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateTextResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.translate.v3.TranslateTextResponse.class,
-            com.google.cloud.translate.v3.TranslateTextResponse.Builder.class);
+            com.google.cloud.translate.v3.TranslateTextResponse.class, com.google.cloud.translate.v3.TranslateTextResponse.Builder.class);
   }
 
   public static final int TRANSLATIONS_FIELD_NUMBER = 1;
   private java.util.List translations_;
   /**
-   *
-   *
    * 
    * Text translation responses with no glossary applied.
    * This field has the same length as
@@ -146,8 +123,6 @@ public java.util.List getTranslations
     return translations_;
   }
   /**
-   *
-   *
    * 
    * Text translation responses with no glossary applied.
    * This field has the same length as
@@ -157,13 +132,11 @@ public java.util.List getTranslations
    * repeated .google.cloud.translation.v3.Translation translations = 1;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getTranslationsOrBuilderList() {
     return translations_;
   }
   /**
-   *
-   *
    * 
    * Text translation responses with no glossary applied.
    * This field has the same length as
@@ -177,8 +150,6 @@ public int getTranslationsCount() {
     return translations_.size();
   }
   /**
-   *
-   *
    * 
    * Text translation responses with no glossary applied.
    * This field has the same length as
@@ -192,8 +163,6 @@ public com.google.cloud.translate.v3.Translation getTranslations(int index) {
     return translations_.get(index);
   }
   /**
-   *
-   *
    * 
    * Text translation responses with no glossary applied.
    * This field has the same length as
@@ -203,15 +172,14 @@ public com.google.cloud.translate.v3.Translation getTranslations(int index) {
    * repeated .google.cloud.translation.v3.Translation translations = 1;
    */
   @java.lang.Override
-  public com.google.cloud.translate.v3.TranslationOrBuilder getTranslationsOrBuilder(int index) {
+  public com.google.cloud.translate.v3.TranslationOrBuilder getTranslationsOrBuilder(
+      int index) {
     return translations_.get(index);
   }
 
   public static final int GLOSSARY_TRANSLATIONS_FIELD_NUMBER = 3;
   private java.util.List glossaryTranslations_;
   /**
-   *
-   *
    * 
    * Text translation responses if a glossary is provided in the request.
    * This can be the same as
@@ -227,8 +195,6 @@ public java.util.List getGlossaryTran
     return glossaryTranslations_;
   }
   /**
-   *
-   *
    * 
    * Text translation responses if a glossary is provided in the request.
    * This can be the same as
@@ -240,13 +206,11 @@ public java.util.List getGlossaryTran
    * repeated .google.cloud.translation.v3.Translation glossary_translations = 3;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getGlossaryTranslationsOrBuilderList() {
     return glossaryTranslations_;
   }
   /**
-   *
-   *
    * 
    * Text translation responses if a glossary is provided in the request.
    * This can be the same as
@@ -262,8 +226,6 @@ public int getGlossaryTranslationsCount() {
     return glossaryTranslations_.size();
   }
   /**
-   *
-   *
    * 
    * Text translation responses if a glossary is provided in the request.
    * This can be the same as
@@ -279,8 +241,6 @@ public com.google.cloud.translate.v3.Translation getGlossaryTranslations(int ind
     return glossaryTranslations_.get(index);
   }
   /**
-   *
-   *
    * 
    * Text translation responses if a glossary is provided in the request.
    * This can be the same as
@@ -298,7 +258,6 @@ public com.google.cloud.translate.v3.TranslationOrBuilder getGlossaryTranslation
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -310,7 +269,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 < translations_.size(); i++) {
       output.writeMessage(1, translations_.get(i));
     }
@@ -327,11 +287,12 @@ public int getSerializedSize() {
 
     size = 0;
     for (int i = 0; i < translations_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, translations_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, translations_.get(i));
     }
     for (int i = 0; i < glossaryTranslations_.size(); i++) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(3, glossaryTranslations_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(3, glossaryTranslations_.get(i));
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -341,16 +302,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.cloud.translate.v3.TranslateTextResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3.TranslateTextResponse other =
-        (com.google.cloud.translate.v3.TranslateTextResponse) obj;
+    com.google.cloud.translate.v3.TranslateTextResponse other = (com.google.cloud.translate.v3.TranslateTextResponse) obj;
 
-    if (!getTranslationsList().equals(other.getTranslationsList())) return false;
-    if (!getGlossaryTranslationsList().equals(other.getGlossaryTranslationsList())) return false;
+    if (!getTranslationsList()
+        .equals(other.getTranslationsList())) return false;
+    if (!getGlossaryTranslationsList()
+        .equals(other.getGlossaryTranslationsList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -376,118 +338,113 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3.TranslateTextResponse 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.cloud.translate.v3.TranslateTextResponse 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.cloud.translate.v3.TranslateTextResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3.TranslateTextResponse 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.cloud.translate.v3.TranslateTextResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3.TranslateTextResponse 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.cloud.translate.v3.TranslateTextResponse parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3.TranslateTextResponse parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3.TranslateTextResponse 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.cloud.translate.v3.TranslateTextResponse parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3.TranslateTextResponse parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3.TranslateTextResponse 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.cloud.translate.v3.TranslateTextResponse 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.cloud.translate.v3.TranslateTextResponse 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.cloud.translate.v3.TranslateTextResponse 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.translation.v3.TranslateTextResponse} */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  /**
+   * Protobuf type {@code google.cloud.translation.v3.TranslateTextResponse}
+   */
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.TranslateTextResponse)
       com.google.cloud.translate.v3.TranslateTextResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.translate.v3.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3_TranslateTextResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateTextResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.translate.v3.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3_TranslateTextResponse_fieldAccessorTable
+      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateTextResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.translate.v3.TranslateTextResponse.class,
-              com.google.cloud.translate.v3.TranslateTextResponse.Builder.class);
+              com.google.cloud.translate.v3.TranslateTextResponse.class, com.google.cloud.translate.v3.TranslateTextResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.translate.v3.TranslateTextResponse.newBuilder()
@@ -495,18 +452,18 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getTranslationsFieldBuilder();
         getGlossaryTranslationsFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -526,9 +483,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.translate.v3.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3_TranslateTextResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateTextResponse_descriptor;
     }
 
     @java.lang.Override
@@ -547,8 +504,7 @@ public com.google.cloud.translate.v3.TranslateTextResponse build() {
 
     @java.lang.Override
     public com.google.cloud.translate.v3.TranslateTextResponse buildPartial() {
-      com.google.cloud.translate.v3.TranslateTextResponse result =
-          new com.google.cloud.translate.v3.TranslateTextResponse(this);
+      com.google.cloud.translate.v3.TranslateTextResponse result = new com.google.cloud.translate.v3.TranslateTextResponse(this);
       int from_bitField0_ = bitField0_;
       if (translationsBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -576,39 +532,38 @@ public com.google.cloud.translate.v3.TranslateTextResponse 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.cloud.translate.v3.TranslateTextResponse) {
-        return mergeFrom((com.google.cloud.translate.v3.TranslateTextResponse) other);
+        return mergeFrom((com.google.cloud.translate.v3.TranslateTextResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -616,8 +571,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.translate.v3.TranslateTextResponse other) {
-      if (other == com.google.cloud.translate.v3.TranslateTextResponse.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.translate.v3.TranslateTextResponse.getDefaultInstance()) return this;
       if (translationsBuilder_ == null) {
         if (!other.translations_.isEmpty()) {
           if (translations_.isEmpty()) {
@@ -636,10 +590,9 @@ public Builder mergeFrom(com.google.cloud.translate.v3.TranslateTextResponse oth
             translationsBuilder_ = null;
             translations_ = other.translations_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            translationsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getTranslationsFieldBuilder()
-                    : null;
+            translationsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getTranslationsFieldBuilder() : null;
           } else {
             translationsBuilder_.addAllMessages(other.translations_);
           }
@@ -663,10 +616,9 @@ public Builder mergeFrom(com.google.cloud.translate.v3.TranslateTextResponse oth
             glossaryTranslationsBuilder_ = null;
             glossaryTranslations_ = other.glossaryTranslations_;
             bitField0_ = (bitField0_ & ~0x00000002);
-            glossaryTranslationsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getGlossaryTranslationsFieldBuilder()
-                    : null;
+            glossaryTranslationsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getGlossaryTranslationsFieldBuilder() : null;
           } else {
             glossaryTranslationsBuilder_.addAllMessages(other.glossaryTranslations_);
           }
@@ -691,8 +643,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.translate.v3.TranslateTextResponse) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.translate.v3.TranslateTextResponse) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -701,29 +652,21 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private java.util.List translations_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureTranslationsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        translations_ =
-            new java.util.ArrayList(translations_);
+        translations_ = new java.util.ArrayList(translations_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.translate.v3.Translation,
-            com.google.cloud.translate.v3.Translation.Builder,
-            com.google.cloud.translate.v3.TranslationOrBuilder>
-        translationsBuilder_;
+        com.google.cloud.translate.v3.Translation, com.google.cloud.translate.v3.Translation.Builder, com.google.cloud.translate.v3.TranslationOrBuilder> translationsBuilder_;
 
     /**
-     *
-     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -740,8 +683,6 @@ public java.util.List getTranslations
       }
     }
     /**
-     *
-     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -758,8 +699,6 @@ public int getTranslationsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -776,8 +715,6 @@ public com.google.cloud.translate.v3.Translation getTranslations(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -786,7 +723,8 @@ public com.google.cloud.translate.v3.Translation getTranslations(int index) {
      *
      * repeated .google.cloud.translation.v3.Translation translations = 1;
      */
-    public Builder setTranslations(int index, com.google.cloud.translate.v3.Translation value) {
+    public Builder setTranslations(
+        int index, com.google.cloud.translate.v3.Translation value) {
       if (translationsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -800,8 +738,6 @@ public Builder setTranslations(int index, com.google.cloud.translate.v3.Translat
       return this;
     }
     /**
-     *
-     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -822,8 +758,6 @@ public Builder setTranslations(
       return this;
     }
     /**
-     *
-     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -846,8 +780,6 @@ public Builder addTranslations(com.google.cloud.translate.v3.Translation value)
       return this;
     }
     /**
-     *
-     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -856,7 +788,8 @@ public Builder addTranslations(com.google.cloud.translate.v3.Translation value)
      *
      * repeated .google.cloud.translation.v3.Translation translations = 1;
      */
-    public Builder addTranslations(int index, com.google.cloud.translate.v3.Translation value) {
+    public Builder addTranslations(
+        int index, com.google.cloud.translate.v3.Translation value) {
       if (translationsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -870,8 +803,6 @@ public Builder addTranslations(int index, com.google.cloud.translate.v3.Translat
       return this;
     }
     /**
-     *
-     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -892,8 +823,6 @@ public Builder addTranslations(
       return this;
     }
     /**
-     *
-     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -914,8 +843,6 @@ public Builder addTranslations(
       return this;
     }
     /**
-     *
-     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -928,7 +855,8 @@ public Builder addAllTranslations(
         java.lang.Iterable values) {
       if (translationsBuilder_ == null) {
         ensureTranslationsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, translations_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, translations_);
         onChanged();
       } else {
         translationsBuilder_.addAllMessages(values);
@@ -936,8 +864,6 @@ public Builder addAllTranslations(
       return this;
     }
     /**
-     *
-     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -957,8 +883,6 @@ public Builder clearTranslations() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -978,8 +902,6 @@ public Builder removeTranslations(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -988,12 +910,11 @@ public Builder removeTranslations(int index) {
      *
      * repeated .google.cloud.translation.v3.Translation translations = 1;
      */
-    public com.google.cloud.translate.v3.Translation.Builder getTranslationsBuilder(int index) {
+    public com.google.cloud.translate.v3.Translation.Builder getTranslationsBuilder(
+        int index) {
       return getTranslationsFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -1002,16 +923,14 @@ public com.google.cloud.translate.v3.Translation.Builder getTranslationsBuilder(
      *
      * repeated .google.cloud.translation.v3.Translation translations = 1;
      */
-    public com.google.cloud.translate.v3.TranslationOrBuilder getTranslationsOrBuilder(int index) {
+    public com.google.cloud.translate.v3.TranslationOrBuilder getTranslationsOrBuilder(
+        int index) {
       if (translationsBuilder_ == null) {
-        return translations_.get(index);
-      } else {
+        return translations_.get(index);  } else {
         return translationsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -1020,8 +939,8 @@ public com.google.cloud.translate.v3.TranslationOrBuilder getTranslationsOrBuild
      *
      * repeated .google.cloud.translation.v3.Translation translations = 1;
      */
-    public java.util.List
-        getTranslationsOrBuilderList() {
+    public java.util.List 
+         getTranslationsOrBuilderList() {
       if (translationsBuilder_ != null) {
         return translationsBuilder_.getMessageOrBuilderList();
       } else {
@@ -1029,8 +948,6 @@ public com.google.cloud.translate.v3.TranslationOrBuilder getTranslationsOrBuild
       }
     }
     /**
-     *
-     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -1040,12 +957,10 @@ public com.google.cloud.translate.v3.TranslationOrBuilder getTranslationsOrBuild
      * repeated .google.cloud.translation.v3.Translation translations = 1;
      */
     public com.google.cloud.translate.v3.Translation.Builder addTranslationsBuilder() {
-      return getTranslationsFieldBuilder()
-          .addBuilder(com.google.cloud.translate.v3.Translation.getDefaultInstance());
+      return getTranslationsFieldBuilder().addBuilder(
+          com.google.cloud.translate.v3.Translation.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -1054,13 +969,12 @@ public com.google.cloud.translate.v3.Translation.Builder addTranslationsBuilder(
      *
      * repeated .google.cloud.translation.v3.Translation translations = 1;
      */
-    public com.google.cloud.translate.v3.Translation.Builder addTranslationsBuilder(int index) {
-      return getTranslationsFieldBuilder()
-          .addBuilder(index, com.google.cloud.translate.v3.Translation.getDefaultInstance());
+    public com.google.cloud.translate.v3.Translation.Builder addTranslationsBuilder(
+        int index) {
+      return getTranslationsFieldBuilder().addBuilder(
+          index, com.google.cloud.translate.v3.Translation.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -1069,49 +983,38 @@ public com.google.cloud.translate.v3.Translation.Builder addTranslationsBuilder(
      *
      * repeated .google.cloud.translation.v3.Translation translations = 1;
      */
-    public java.util.List
-        getTranslationsBuilderList() {
+    public java.util.List 
+         getTranslationsBuilderList() {
       return getTranslationsFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.translate.v3.Translation,
-            com.google.cloud.translate.v3.Translation.Builder,
-            com.google.cloud.translate.v3.TranslationOrBuilder>
+        com.google.cloud.translate.v3.Translation, com.google.cloud.translate.v3.Translation.Builder, com.google.cloud.translate.v3.TranslationOrBuilder> 
         getTranslationsFieldBuilder() {
       if (translationsBuilder_ == null) {
-        translationsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.translate.v3.Translation,
-                com.google.cloud.translate.v3.Translation.Builder,
-                com.google.cloud.translate.v3.TranslationOrBuilder>(
-                translations_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        translationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.translate.v3.Translation, com.google.cloud.translate.v3.Translation.Builder, com.google.cloud.translate.v3.TranslationOrBuilder>(
+                translations_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         translations_ = null;
       }
       return translationsBuilder_;
     }
 
     private java.util.List glossaryTranslations_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureGlossaryTranslationsIsMutable() {
       if (!((bitField0_ & 0x00000002) != 0)) {
-        glossaryTranslations_ =
-            new java.util.ArrayList(
-                glossaryTranslations_);
+        glossaryTranslations_ = new java.util.ArrayList(glossaryTranslations_);
         bitField0_ |= 0x00000002;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.translate.v3.Translation,
-            com.google.cloud.translate.v3.Translation.Builder,
-            com.google.cloud.translate.v3.TranslationOrBuilder>
-        glossaryTranslationsBuilder_;
+        com.google.cloud.translate.v3.Translation, com.google.cloud.translate.v3.Translation.Builder, com.google.cloud.translate.v3.TranslationOrBuilder> glossaryTranslationsBuilder_;
 
     /**
-     *
-     *
      * 
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1130,8 +1033,6 @@ public java.util.List getGlossaryTran
       }
     }
     /**
-     *
-     *
      * 
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1150,8 +1051,6 @@ public int getGlossaryTranslationsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1170,8 +1069,6 @@ public com.google.cloud.translate.v3.Translation getGlossaryTranslations(int ind
       }
     }
     /**
-     *
-     *
      * 
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1197,8 +1094,6 @@ public Builder setGlossaryTranslations(
       return this;
     }
     /**
-     *
-     *
      * 
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1221,8 +1116,6 @@ public Builder setGlossaryTranslations(
       return this;
     }
     /**
-     *
-     *
      * 
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1247,8 +1140,6 @@ public Builder addGlossaryTranslations(com.google.cloud.translate.v3.Translation
       return this;
     }
     /**
-     *
-     *
      * 
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1274,8 +1165,6 @@ public Builder addGlossaryTranslations(
       return this;
     }
     /**
-     *
-     *
      * 
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1298,8 +1187,6 @@ public Builder addGlossaryTranslations(
       return this;
     }
     /**
-     *
-     *
      * 
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1322,8 +1209,6 @@ public Builder addGlossaryTranslations(
       return this;
     }
     /**
-     *
-     *
      * 
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1338,7 +1223,8 @@ public Builder addAllGlossaryTranslations(
         java.lang.Iterable values) {
       if (glossaryTranslationsBuilder_ == null) {
         ensureGlossaryTranslationsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, glossaryTranslations_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, glossaryTranslations_);
         onChanged();
       } else {
         glossaryTranslationsBuilder_.addAllMessages(values);
@@ -1346,8 +1232,6 @@ public Builder addAllGlossaryTranslations(
       return this;
     }
     /**
-     *
-     *
      * 
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1369,8 +1253,6 @@ public Builder clearGlossaryTranslations() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1392,8 +1274,6 @@ public Builder removeGlossaryTranslations(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1409,8 +1289,6 @@ public com.google.cloud.translate.v3.Translation.Builder getGlossaryTranslations
       return getGlossaryTranslationsFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1424,14 +1302,11 @@ public com.google.cloud.translate.v3.Translation.Builder getGlossaryTranslations
     public com.google.cloud.translate.v3.TranslationOrBuilder getGlossaryTranslationsOrBuilder(
         int index) {
       if (glossaryTranslationsBuilder_ == null) {
-        return glossaryTranslations_.get(index);
-      } else {
+        return glossaryTranslations_.get(index);  } else {
         return glossaryTranslationsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1442,8 +1317,8 @@ public com.google.cloud.translate.v3.TranslationOrBuilder getGlossaryTranslation
      *
      * repeated .google.cloud.translation.v3.Translation glossary_translations = 3;
      */
-    public java.util.List
-        getGlossaryTranslationsOrBuilderList() {
+    public java.util.List 
+         getGlossaryTranslationsOrBuilderList() {
       if (glossaryTranslationsBuilder_ != null) {
         return glossaryTranslationsBuilder_.getMessageOrBuilderList();
       } else {
@@ -1451,8 +1326,6 @@ public com.google.cloud.translate.v3.TranslationOrBuilder getGlossaryTranslation
       }
     }
     /**
-     *
-     *
      * 
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1464,12 +1337,10 @@ public com.google.cloud.translate.v3.TranslationOrBuilder getGlossaryTranslation
      * repeated .google.cloud.translation.v3.Translation glossary_translations = 3;
      */
     public com.google.cloud.translate.v3.Translation.Builder addGlossaryTranslationsBuilder() {
-      return getGlossaryTranslationsFieldBuilder()
-          .addBuilder(com.google.cloud.translate.v3.Translation.getDefaultInstance());
+      return getGlossaryTranslationsFieldBuilder().addBuilder(
+          com.google.cloud.translate.v3.Translation.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1482,12 +1353,10 @@ public com.google.cloud.translate.v3.Translation.Builder addGlossaryTranslations
      */
     public com.google.cloud.translate.v3.Translation.Builder addGlossaryTranslationsBuilder(
         int index) {
-      return getGlossaryTranslationsFieldBuilder()
-          .addBuilder(index, com.google.cloud.translate.v3.Translation.getDefaultInstance());
+      return getGlossaryTranslationsFieldBuilder().addBuilder(
+          index, com.google.cloud.translate.v3.Translation.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1498,22 +1367,16 @@ public com.google.cloud.translate.v3.Translation.Builder addGlossaryTranslations
      *
      * repeated .google.cloud.translation.v3.Translation glossary_translations = 3;
      */
-    public java.util.List
-        getGlossaryTranslationsBuilderList() {
+    public java.util.List 
+         getGlossaryTranslationsBuilderList() {
       return getGlossaryTranslationsFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.translate.v3.Translation,
-            com.google.cloud.translate.v3.Translation.Builder,
-            com.google.cloud.translate.v3.TranslationOrBuilder>
+        com.google.cloud.translate.v3.Translation, com.google.cloud.translate.v3.Translation.Builder, com.google.cloud.translate.v3.TranslationOrBuilder> 
         getGlossaryTranslationsFieldBuilder() {
       if (glossaryTranslationsBuilder_ == null) {
-        glossaryTranslationsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.translate.v3.Translation,
-                com.google.cloud.translate.v3.Translation.Builder,
-                com.google.cloud.translate.v3.TranslationOrBuilder>(
+        glossaryTranslationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.translate.v3.Translation, com.google.cloud.translate.v3.Translation.Builder, com.google.cloud.translate.v3.TranslationOrBuilder>(
                 glossaryTranslations_,
                 ((bitField0_ & 0x00000002) != 0),
                 getParentForChildren(),
@@ -1522,9 +1385,9 @@ public com.google.cloud.translate.v3.Translation.Builder addGlossaryTranslations
       }
       return glossaryTranslationsBuilder_;
     }
-
     @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);
     }
 
@@ -1534,12 +1397,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.TranslateTextResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.TranslateTextResponse)
   private static final com.google.cloud.translate.v3.TranslateTextResponse DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3.TranslateTextResponse();
   }
@@ -1548,16 +1411,16 @@ public static com.google.cloud.translate.v3.TranslateTextResponse getDefaultInst
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public TranslateTextResponse parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new TranslateTextResponse(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public TranslateTextResponse parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new TranslateTextResponse(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1572,4 +1435,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3.TranslateTextResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextResponseOrBuilder.java b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextResponseOrBuilder.java
similarity index 82%
rename from proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextResponseOrBuilder.java
rename to owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextResponseOrBuilder.java
index 9d9910be..8a9c20ed 100644
--- a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextResponseOrBuilder.java
+++ b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextResponseOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2020 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/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
-public interface TranslateTextResponseOrBuilder
-    extends
+public interface TranslateTextResponseOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.TranslateTextResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Text translation responses with no glossary applied.
    * This field has the same length as
@@ -34,10 +16,9 @@ public interface TranslateTextResponseOrBuilder
    *
    * repeated .google.cloud.translation.v3.Translation translations = 1;
    */
-  java.util.List getTranslationsList();
+  java.util.List 
+      getTranslationsList();
   /**
-   *
-   *
    * 
    * Text translation responses with no glossary applied.
    * This field has the same length as
@@ -48,8 +29,6 @@ public interface TranslateTextResponseOrBuilder
    */
   com.google.cloud.translate.v3.Translation getTranslations(int index);
   /**
-   *
-   *
    * 
    * Text translation responses with no glossary applied.
    * This field has the same length as
@@ -60,8 +39,6 @@ public interface TranslateTextResponseOrBuilder
    */
   int getTranslationsCount();
   /**
-   *
-   *
    * 
    * Text translation responses with no glossary applied.
    * This field has the same length as
@@ -70,11 +47,9 @@ public interface TranslateTextResponseOrBuilder
    *
    * repeated .google.cloud.translation.v3.Translation translations = 1;
    */
-  java.util.List
+  java.util.List 
       getTranslationsOrBuilderList();
   /**
-   *
-   *
    * 
    * Text translation responses with no glossary applied.
    * This field has the same length as
@@ -83,11 +58,10 @@ public interface TranslateTextResponseOrBuilder
    *
    * repeated .google.cloud.translation.v3.Translation translations = 1;
    */
-  com.google.cloud.translate.v3.TranslationOrBuilder getTranslationsOrBuilder(int index);
+  com.google.cloud.translate.v3.TranslationOrBuilder getTranslationsOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * Text translation responses if a glossary is provided in the request.
    * This can be the same as
@@ -98,10 +72,9 @@ public interface TranslateTextResponseOrBuilder
    *
    * repeated .google.cloud.translation.v3.Translation glossary_translations = 3;
    */
-  java.util.List getGlossaryTranslationsList();
+  java.util.List 
+      getGlossaryTranslationsList();
   /**
-   *
-   *
    * 
    * Text translation responses if a glossary is provided in the request.
    * This can be the same as
@@ -114,8 +87,6 @@ public interface TranslateTextResponseOrBuilder
    */
   com.google.cloud.translate.v3.Translation getGlossaryTranslations(int index);
   /**
-   *
-   *
    * 
    * Text translation responses if a glossary is provided in the request.
    * This can be the same as
@@ -128,8 +99,6 @@ public interface TranslateTextResponseOrBuilder
    */
   int getGlossaryTranslationsCount();
   /**
-   *
-   *
    * 
    * Text translation responses if a glossary is provided in the request.
    * This can be the same as
@@ -140,11 +109,9 @@ public interface TranslateTextResponseOrBuilder
    *
    * repeated .google.cloud.translation.v3.Translation glossary_translations = 3;
    */
-  java.util.List
+  java.util.List 
       getGlossaryTranslationsOrBuilderList();
   /**
-   *
-   *
    * 
    * Text translation responses if a glossary is provided in the request.
    * This can be the same as
@@ -155,5 +122,6 @@ public interface TranslateTextResponseOrBuilder
    *
    * repeated .google.cloud.translation.v3.Translation glossary_translations = 3;
    */
-  com.google.cloud.translate.v3.TranslationOrBuilder getGlossaryTranslationsOrBuilder(int index);
+  com.google.cloud.translate.v3.TranslationOrBuilder getGlossaryTranslationsOrBuilder(
+      int index);
 }
diff --git a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/Translation.java b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/Translation.java
similarity index 74%
rename from proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/Translation.java
rename to owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/Translation.java
index ac1df570..012270dc 100644
--- a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/Translation.java
+++ b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/Translation.java
@@ -1,42 +1,24 @@
-/*
- * Copyright 2020 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/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
 /**
- *
- *
  * 
  * A single translation response.
  * 
* * Protobuf type {@code google.cloud.translation.v3.Translation} */ -public final class Translation extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Translation extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.Translation) TranslationOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Translation.newBuilder() to construct. private Translation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Translation() { translatedText_ = ""; model_ = ""; @@ -45,15 +27,16 @@ private Translation() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Translation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Translation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,83 +55,72 @@ private Translation( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - translatedText_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + translatedText_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - model_ = s; - break; + model_ = s; + break; + } + case 26: { + com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder subBuilder = null; + if (glossaryConfig_ != null) { + subBuilder = glossaryConfig_.toBuilder(); } - case 26: - { - com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder subBuilder = null; - if (glossaryConfig_ != null) { - subBuilder = glossaryConfig_.toBuilder(); - } - glossaryConfig_ = - input.readMessage( - com.google.cloud.translate.v3.TranslateTextGlossaryConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(glossaryConfig_); - glossaryConfig_ = subBuilder.buildPartial(); - } - - break; + glossaryConfig_ = input.readMessage(com.google.cloud.translate.v3.TranslateTextGlossaryConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(glossaryConfig_); + glossaryConfig_ = subBuilder.buildPartial(); } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - detectedLanguageCode_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + detectedLanguageCode_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_Translation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_Translation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_Translation_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_Translation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.Translation.class, - com.google.cloud.translate.v3.Translation.Builder.class); + com.google.cloud.translate.v3.Translation.class, com.google.cloud.translate.v3.Translation.Builder.class); } public static final int TRANSLATED_TEXT_FIELD_NUMBER = 1; private volatile java.lang.Object translatedText_; /** - * - * *
    * Text translated into the target language.
    * If an error occurs during translation, this field might be excluded from
@@ -156,7 +128,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string translated_text = 1; - * * @return The translatedText. */ @java.lang.Override @@ -165,15 +136,14 @@ public java.lang.String getTranslatedText() { 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(); translatedText_ = s; return s; } } /** - * - * *
    * Text translated into the target language.
    * If an error occurs during translation, this field might be excluded from
@@ -181,15 +151,16 @@ public java.lang.String getTranslatedText() {
    * 
* * string translated_text = 1; - * * @return The bytes for translatedText. */ @java.lang.Override - public com.google.protobuf.ByteString getTranslatedTextBytes() { + public com.google.protobuf.ByteString + getTranslatedTextBytes() { java.lang.Object ref = translatedText_; 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); translatedText_ = b; return b; } else { @@ -200,8 +171,6 @@ public com.google.protobuf.ByteString getTranslatedTextBytes() { public static final int MODEL_FIELD_NUMBER = 2; private volatile java.lang.Object model_; /** - * - * *
    * Only present when `model` is present in the request.
    * `model` here is normalized to have project number.
@@ -213,7 +182,6 @@ public com.google.protobuf.ByteString getTranslatedTextBytes() {
    * 
* * string model = 2; - * * @return The model. */ @java.lang.Override @@ -222,15 +190,14 @@ public java.lang.String getModel() { 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(); model_ = s; return s; } } /** - * - * *
    * Only present when `model` is present in the request.
    * `model` here is normalized to have project number.
@@ -242,15 +209,16 @@ public java.lang.String getModel() {
    * 
* * string model = 2; - * * @return The bytes for model. */ @java.lang.Override - public com.google.protobuf.ByteString getModelBytes() { + public com.google.protobuf.ByteString + getModelBytes() { java.lang.Object ref = model_; 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); model_ = b; return b; } else { @@ -261,8 +229,6 @@ public com.google.protobuf.ByteString getModelBytes() { public static final int DETECTED_LANGUAGE_CODE_FIELD_NUMBER = 4; private volatile java.lang.Object detectedLanguageCode_; /** - * - * *
    * The BCP-47 language code of source text in the initial request, detected
    * automatically, if no source language was passed within the initial
@@ -271,7 +237,6 @@ public com.google.protobuf.ByteString getModelBytes() {
    * 
* * string detected_language_code = 4; - * * @return The detectedLanguageCode. */ @java.lang.Override @@ -280,15 +245,14 @@ public java.lang.String getDetectedLanguageCode() { 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(); detectedLanguageCode_ = s; return s; } } /** - * - * *
    * The BCP-47 language code of source text in the initial request, detected
    * automatically, if no source language was passed within the initial
@@ -297,15 +261,16 @@ public java.lang.String getDetectedLanguageCode() {
    * 
* * string detected_language_code = 4; - * * @return The bytes for detectedLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getDetectedLanguageCodeBytes() { + public com.google.protobuf.ByteString + getDetectedLanguageCodeBytes() { java.lang.Object ref = detectedLanguageCode_; 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); detectedLanguageCode_ = b; return b; } else { @@ -316,14 +281,11 @@ public com.google.protobuf.ByteString getDetectedLanguageCodeBytes() { public static final int GLOSSARY_CONFIG_FIELD_NUMBER = 3; private com.google.cloud.translate.v3.TranslateTextGlossaryConfig glossaryConfig_; /** - * - * *
    * The `glossary_config` used for this translation.
    * 
* * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 3; - * * @return Whether the glossaryConfig field is set. */ @java.lang.Override @@ -331,25 +293,18 @@ public boolean hasGlossaryConfig() { return glossaryConfig_ != null; } /** - * - * *
    * The `glossary_config` used for this translation.
    * 
* * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 3; - * * @return The glossaryConfig. */ @java.lang.Override public com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossaryConfig() { - return glossaryConfig_ == null - ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() - : glossaryConfig_; + return glossaryConfig_ == null ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; } /** - * - * *
    * The `glossary_config` used for this translation.
    * 
@@ -357,13 +312,11 @@ public com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossaryConf * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 3; */ @java.lang.Override - public com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder - getGlossaryConfigOrBuilder() { + public com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder getGlossaryConfigOrBuilder() { return getGlossaryConfig(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -375,17 +328,18 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getTranslatedTextBytes().isEmpty()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(translatedText_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, translatedText_); } - if (!getModelBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(model_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, model_); } if (glossaryConfig_ != null) { output.writeMessage(3, getGlossaryConfig()); } - if (!getDetectedLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(detectedLanguageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, detectedLanguageCode_); } unknownFields.writeTo(output); @@ -397,16 +351,17 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getTranslatedTextBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(translatedText_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, translatedText_); } - if (!getModelBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(model_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, model_); } if (glossaryConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getGlossaryConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getGlossaryConfig()); } - if (!getDetectedLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(detectedLanguageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, detectedLanguageCode_); } size += unknownFields.getSerializedSize(); @@ -417,20 +372,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.cloud.translate.v3.Translation)) { return super.equals(obj); } - com.google.cloud.translate.v3.Translation other = - (com.google.cloud.translate.v3.Translation) obj; + com.google.cloud.translate.v3.Translation other = (com.google.cloud.translate.v3.Translation) obj; - if (!getTranslatedText().equals(other.getTranslatedText())) return false; - if (!getModel().equals(other.getModel())) return false; - if (!getDetectedLanguageCode().equals(other.getDetectedLanguageCode())) return false; + if (!getTranslatedText() + .equals(other.getTranslatedText())) return false; + if (!getModel() + .equals(other.getModel())) return false; + if (!getDetectedLanguageCode() + .equals(other.getDetectedLanguageCode())) return false; if (hasGlossaryConfig() != other.hasGlossaryConfig()) return false; if (hasGlossaryConfig()) { - if (!getGlossaryConfig().equals(other.getGlossaryConfig())) return false; + if (!getGlossaryConfig() + .equals(other.getGlossaryConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -458,127 +416,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.translate.v3.Translation parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.translate.v3.Translation parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.Translation 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.cloud.translate.v3.Translation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.Translation 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.cloud.translate.v3.Translation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.Translation 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.cloud.translate.v3.Translation 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.cloud.translate.v3.Translation 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.cloud.translate.v3.Translation parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.Translation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.Translation 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.cloud.translate.v3.Translation 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.cloud.translate.v3.Translation 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.cloud.translate.v3.Translation 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 single translation response.
    * 
* * Protobuf type {@code google.cloud.translation.v3.Translation} */ - 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.translation.v3.Translation) com.google.cloud.translate.v3.TranslationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_Translation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_Translation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_Translation_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_Translation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.Translation.class, - com.google.cloud.translate.v3.Translation.Builder.class); + com.google.cloud.translate.v3.Translation.class, com.google.cloud.translate.v3.Translation.Builder.class); } // Construct using com.google.cloud.translate.v3.Translation.newBuilder() @@ -586,15 +535,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -614,9 +564,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_Translation_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_Translation_descriptor; } @java.lang.Override @@ -635,8 +585,7 @@ public com.google.cloud.translate.v3.Translation build() { @java.lang.Override public com.google.cloud.translate.v3.Translation buildPartial() { - com.google.cloud.translate.v3.Translation result = - new com.google.cloud.translate.v3.Translation(this); + com.google.cloud.translate.v3.Translation result = new com.google.cloud.translate.v3.Translation(this); result.translatedText_ = translatedText_; result.model_ = model_; result.detectedLanguageCode_ = detectedLanguageCode_; @@ -653,39 +602,38 @@ public com.google.cloud.translate.v3.Translation 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.cloud.translate.v3.Translation) { - return mergeFrom((com.google.cloud.translate.v3.Translation) other); + return mergeFrom((com.google.cloud.translate.v3.Translation)other); } else { super.mergeFrom(other); return this; @@ -740,8 +688,6 @@ public Builder mergeFrom( private java.lang.Object translatedText_ = ""; /** - * - * *
      * Text translated into the target language.
      * If an error occurs during translation, this field might be excluded from
@@ -749,13 +695,13 @@ public Builder mergeFrom(
      * 
* * string translated_text = 1; - * * @return The translatedText. */ public java.lang.String getTranslatedText() { java.lang.Object ref = translatedText_; 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(); translatedText_ = s; return s; @@ -764,8 +710,6 @@ public java.lang.String getTranslatedText() { } } /** - * - * *
      * Text translated into the target language.
      * If an error occurs during translation, this field might be excluded from
@@ -773,14 +717,15 @@ public java.lang.String getTranslatedText() {
      * 
* * string translated_text = 1; - * * @return The bytes for translatedText. */ - public com.google.protobuf.ByteString getTranslatedTextBytes() { + public com.google.protobuf.ByteString + getTranslatedTextBytes() { java.lang.Object ref = translatedText_; 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); translatedText_ = b; return b; } else { @@ -788,8 +733,6 @@ public com.google.protobuf.ByteString getTranslatedTextBytes() { } } /** - * - * *
      * Text translated into the target language.
      * If an error occurs during translation, this field might be excluded from
@@ -797,22 +740,20 @@ public com.google.protobuf.ByteString getTranslatedTextBytes() {
      * 
* * string translated_text = 1; - * * @param value The translatedText to set. * @return This builder for chaining. */ - public Builder setTranslatedText(java.lang.String value) { + public Builder setTranslatedText( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + translatedText_ = value; onChanged(); return this; } /** - * - * *
      * Text translated into the target language.
      * If an error occurs during translation, this field might be excluded from
@@ -820,18 +761,15 @@ public Builder setTranslatedText(java.lang.String value) {
      * 
* * string translated_text = 1; - * * @return This builder for chaining. */ public Builder clearTranslatedText() { - + translatedText_ = getDefaultInstance().getTranslatedText(); onChanged(); return this; } /** - * - * *
      * Text translated into the target language.
      * If an error occurs during translation, this field might be excluded from
@@ -839,16 +777,16 @@ public Builder clearTranslatedText() {
      * 
* * string translated_text = 1; - * * @param value The bytes for translatedText to set. * @return This builder for chaining. */ - public Builder setTranslatedTextBytes(com.google.protobuf.ByteString value) { + public Builder setTranslatedTextBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + translatedText_ = value; onChanged(); return this; @@ -856,8 +794,6 @@ public Builder setTranslatedTextBytes(com.google.protobuf.ByteString value) { private java.lang.Object model_ = ""; /** - * - * *
      * Only present when `model` is present in the request.
      * `model` here is normalized to have project number.
@@ -869,13 +805,13 @@ public Builder setTranslatedTextBytes(com.google.protobuf.ByteString value) {
      * 
* * string model = 2; - * * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; 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(); model_ = s; return s; @@ -884,8 +820,6 @@ public java.lang.String getModel() { } } /** - * - * *
      * Only present when `model` is present in the request.
      * `model` here is normalized to have project number.
@@ -897,14 +831,15 @@ public java.lang.String getModel() {
      * 
* * string model = 2; - * * @return The bytes for model. */ - public com.google.protobuf.ByteString getModelBytes() { + public com.google.protobuf.ByteString + getModelBytes() { java.lang.Object ref = model_; 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); model_ = b; return b; } else { @@ -912,8 +847,6 @@ public com.google.protobuf.ByteString getModelBytes() { } } /** - * - * *
      * Only present when `model` is present in the request.
      * `model` here is normalized to have project number.
@@ -925,22 +858,20 @@ public com.google.protobuf.ByteString getModelBytes() {
      * 
* * string model = 2; - * * @param value The model to set. * @return This builder for chaining. */ - public Builder setModel(java.lang.String value) { + public Builder setModel( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + model_ = value; onChanged(); return this; } /** - * - * *
      * Only present when `model` is present in the request.
      * `model` here is normalized to have project number.
@@ -952,18 +883,15 @@ public Builder setModel(java.lang.String value) {
      * 
* * string model = 2; - * * @return This builder for chaining. */ public Builder clearModel() { - + model_ = getDefaultInstance().getModel(); onChanged(); return this; } /** - * - * *
      * Only present when `model` is present in the request.
      * `model` here is normalized to have project number.
@@ -975,16 +903,16 @@ public Builder clearModel() {
      * 
* * string model = 2; - * * @param value The bytes for model to set. * @return This builder for chaining. */ - public Builder setModelBytes(com.google.protobuf.ByteString value) { + public Builder setModelBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + model_ = value; onChanged(); return this; @@ -992,8 +920,6 @@ public Builder setModelBytes(com.google.protobuf.ByteString value) { private java.lang.Object detectedLanguageCode_ = ""; /** - * - * *
      * The BCP-47 language code of source text in the initial request, detected
      * automatically, if no source language was passed within the initial
@@ -1002,13 +928,13 @@ public Builder setModelBytes(com.google.protobuf.ByteString value) {
      * 
* * string detected_language_code = 4; - * * @return The detectedLanguageCode. */ public java.lang.String getDetectedLanguageCode() { java.lang.Object ref = detectedLanguageCode_; 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(); detectedLanguageCode_ = s; return s; @@ -1017,8 +943,6 @@ public java.lang.String getDetectedLanguageCode() { } } /** - * - * *
      * The BCP-47 language code of source text in the initial request, detected
      * automatically, if no source language was passed within the initial
@@ -1027,14 +951,15 @@ public java.lang.String getDetectedLanguageCode() {
      * 
* * string detected_language_code = 4; - * * @return The bytes for detectedLanguageCode. */ - public com.google.protobuf.ByteString getDetectedLanguageCodeBytes() { + public com.google.protobuf.ByteString + getDetectedLanguageCodeBytes() { java.lang.Object ref = detectedLanguageCode_; 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); detectedLanguageCode_ = b; return b; } else { @@ -1042,8 +967,6 @@ public com.google.protobuf.ByteString getDetectedLanguageCodeBytes() { } } /** - * - * *
      * The BCP-47 language code of source text in the initial request, detected
      * automatically, if no source language was passed within the initial
@@ -1052,22 +975,20 @@ public com.google.protobuf.ByteString getDetectedLanguageCodeBytes() {
      * 
* * string detected_language_code = 4; - * * @param value The detectedLanguageCode to set. * @return This builder for chaining. */ - public Builder setDetectedLanguageCode(java.lang.String value) { + public Builder setDetectedLanguageCode( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + detectedLanguageCode_ = value; onChanged(); return this; } /** - * - * *
      * The BCP-47 language code of source text in the initial request, detected
      * automatically, if no source language was passed within the initial
@@ -1076,18 +997,15 @@ public Builder setDetectedLanguageCode(java.lang.String value) {
      * 
* * string detected_language_code = 4; - * * @return This builder for chaining. */ public Builder clearDetectedLanguageCode() { - + detectedLanguageCode_ = getDefaultInstance().getDetectedLanguageCode(); onChanged(); return this; } /** - * - * *
      * The BCP-47 language code of source text in the initial request, detected
      * automatically, if no source language was passed within the initial
@@ -1096,16 +1014,16 @@ public Builder clearDetectedLanguageCode() {
      * 
* * string detected_language_code = 4; - * * @param value The bytes for detectedLanguageCode to set. * @return This builder for chaining. */ - public Builder setDetectedLanguageCodeBytes(com.google.protobuf.ByteString value) { + public Builder setDetectedLanguageCodeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + detectedLanguageCode_ = value; onChanged(); return this; @@ -1113,55 +1031,41 @@ public Builder setDetectedLanguageCodeBytes(com.google.protobuf.ByteString value private com.google.cloud.translate.v3.TranslateTextGlossaryConfig glossaryConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.TranslateTextGlossaryConfig, - com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, - com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder> - glossaryConfigBuilder_; + com.google.cloud.translate.v3.TranslateTextGlossaryConfig, com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder> glossaryConfigBuilder_; /** - * - * *
      * The `glossary_config` used for this translation.
      * 
* * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 3; - * * @return Whether the glossaryConfig field is set. */ public boolean hasGlossaryConfig() { return glossaryConfigBuilder_ != null || glossaryConfig_ != null; } /** - * - * *
      * The `glossary_config` used for this translation.
      * 
* * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 3; - * * @return The glossaryConfig. */ public com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossaryConfig() { if (glossaryConfigBuilder_ == null) { - return glossaryConfig_ == null - ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() - : glossaryConfig_; + return glossaryConfig_ == null ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; } else { return glossaryConfigBuilder_.getMessage(); } } /** - * - * *
      * The `glossary_config` used for this translation.
      * 
* * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 3; */ - public Builder setGlossaryConfig( - com.google.cloud.translate.v3.TranslateTextGlossaryConfig value) { + public Builder setGlossaryConfig(com.google.cloud.translate.v3.TranslateTextGlossaryConfig value) { if (glossaryConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1175,8 +1079,6 @@ public Builder setGlossaryConfig( return this; } /** - * - * *
      * The `glossary_config` used for this translation.
      * 
@@ -1195,22 +1097,17 @@ public Builder setGlossaryConfig( return this; } /** - * - * *
      * The `glossary_config` used for this translation.
      * 
* * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 3; */ - public Builder mergeGlossaryConfig( - com.google.cloud.translate.v3.TranslateTextGlossaryConfig value) { + public Builder mergeGlossaryConfig(com.google.cloud.translate.v3.TranslateTextGlossaryConfig value) { if (glossaryConfigBuilder_ == null) { if (glossaryConfig_ != null) { glossaryConfig_ = - com.google.cloud.translate.v3.TranslateTextGlossaryConfig.newBuilder(glossaryConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.translate.v3.TranslateTextGlossaryConfig.newBuilder(glossaryConfig_).mergeFrom(value).buildPartial(); } else { glossaryConfig_ = value; } @@ -1222,8 +1119,6 @@ public Builder mergeGlossaryConfig( return this; } /** - * - * *
      * The `glossary_config` used for this translation.
      * 
@@ -1242,42 +1137,33 @@ public Builder clearGlossaryConfig() { return this; } /** - * - * *
      * The `glossary_config` used for this translation.
      * 
* * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 3; */ - public com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder - getGlossaryConfigBuilder() { - + public com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder getGlossaryConfigBuilder() { + onChanged(); return getGlossaryConfigFieldBuilder().getBuilder(); } /** - * - * *
      * The `glossary_config` used for this translation.
      * 
* * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 3; */ - public com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder - getGlossaryConfigOrBuilder() { + public com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder getGlossaryConfigOrBuilder() { if (glossaryConfigBuilder_ != null) { return glossaryConfigBuilder_.getMessageOrBuilder(); } else { - return glossaryConfig_ == null - ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() - : glossaryConfig_; + return glossaryConfig_ == null ? + com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; } } /** - * - * *
      * The `glossary_config` used for this translation.
      * 
@@ -1285,24 +1171,21 @@ public Builder clearGlossaryConfig() { * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.TranslateTextGlossaryConfig, - com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, - com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder> + com.google.cloud.translate.v3.TranslateTextGlossaryConfig, com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder> getGlossaryConfigFieldBuilder() { if (glossaryConfigBuilder_ == null) { - glossaryConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.TranslateTextGlossaryConfig, - com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, - com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder>( - getGlossaryConfig(), getParentForChildren(), isClean()); + glossaryConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3.TranslateTextGlossaryConfig, com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder>( + getGlossaryConfig(), + getParentForChildren(), + isClean()); glossaryConfig_ = null; } return glossaryConfigBuilder_; } - @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); } @@ -1312,12 +1195,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.Translation) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.Translation) private static final com.google.cloud.translate.v3.Translation DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.Translation(); } @@ -1326,16 +1209,16 @@ public static com.google.cloud.translate.v3.Translation getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Translation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Translation(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Translation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Translation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1350,4 +1233,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.Translation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationOrBuilder.java b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationOrBuilder.java similarity index 79% rename from proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationOrBuilder.java rename to owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationOrBuilder.java index 5bddec80..1b1cbafe 100644 --- a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationOrBuilder.java +++ b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 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/translate/v3/translation_service.proto package com.google.cloud.translate.v3; -public interface TranslationOrBuilder - extends +public interface TranslationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.Translation) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Text translated into the target language.
    * If an error occurs during translation, this field might be excluded from
@@ -33,13 +15,10 @@ public interface TranslationOrBuilder
    * 
* * string translated_text = 1; - * * @return The translatedText. */ java.lang.String getTranslatedText(); /** - * - * *
    * Text translated into the target language.
    * If an error occurs during translation, this field might be excluded from
@@ -47,14 +26,12 @@ public interface TranslationOrBuilder
    * 
* * string translated_text = 1; - * * @return The bytes for translatedText. */ - com.google.protobuf.ByteString getTranslatedTextBytes(); + com.google.protobuf.ByteString + getTranslatedTextBytes(); /** - * - * *
    * Only present when `model` is present in the request.
    * `model` here is normalized to have project number.
@@ -66,13 +43,10 @@ public interface TranslationOrBuilder
    * 
* * string model = 2; - * * @return The model. */ java.lang.String getModel(); /** - * - * *
    * Only present when `model` is present in the request.
    * `model` here is normalized to have project number.
@@ -84,14 +58,12 @@ public interface TranslationOrBuilder
    * 
* * string model = 2; - * * @return The bytes for model. */ - com.google.protobuf.ByteString getModelBytes(); + com.google.protobuf.ByteString + getModelBytes(); /** - * - * *
    * The BCP-47 language code of source text in the initial request, detected
    * automatically, if no source language was passed within the initial
@@ -100,13 +72,10 @@ public interface TranslationOrBuilder
    * 
* * string detected_language_code = 4; - * * @return The detectedLanguageCode. */ java.lang.String getDetectedLanguageCode(); /** - * - * *
    * The BCP-47 language code of source text in the initial request, detected
    * automatically, if no source language was passed within the initial
@@ -115,38 +84,30 @@ public interface TranslationOrBuilder
    * 
* * string detected_language_code = 4; - * * @return The bytes for detectedLanguageCode. */ - com.google.protobuf.ByteString getDetectedLanguageCodeBytes(); + com.google.protobuf.ByteString + getDetectedLanguageCodeBytes(); /** - * - * *
    * The `glossary_config` used for this translation.
    * 
* * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 3; - * * @return Whether the glossaryConfig field is set. */ boolean hasGlossaryConfig(); /** - * - * *
    * The `glossary_config` used for this translation.
    * 
* * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 3; - * * @return The glossaryConfig. */ com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossaryConfig(); /** - * - * *
    * The `glossary_config` used for this translation.
    * 
diff --git a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationServiceProto.java b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationServiceProto.java new file mode 100644 index 00000000..ce6d37ee --- /dev/null +++ b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationServiceProto.java @@ -0,0 +1,878 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/translate/v3/translation_service.proto + +package com.google.cloud.translate.v3; + +public final class TranslationServiceProto { + private TranslationServiceProto() {} + 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_translation_v3_TranslateTextGlossaryConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_TranslateTextGlossaryConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_TranslateTextRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_TranslateTextRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_TranslateTextRequest_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_TranslateTextRequest_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_TranslateTextResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_TranslateTextResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_Translation_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_Translation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_DetectLanguageRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_DetectLanguageRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_DetectLanguageRequest_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_DetectLanguageRequest_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_DetectedLanguage_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_DetectedLanguage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_DetectLanguageResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_DetectLanguageResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_GetSupportedLanguagesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_GetSupportedLanguagesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_SupportedLanguages_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_SupportedLanguages_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_SupportedLanguage_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_SupportedLanguage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_GcsSource_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_GcsSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_InputConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_InputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_GcsDestination_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_GcsDestination_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_OutputConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_OutputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_DocumentInputConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_DocumentInputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_DocumentOutputConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_DocumentOutputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_TranslateDocumentRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_TranslateDocumentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_TranslateDocumentRequest_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_TranslateDocumentRequest_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_DocumentTranslation_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_DocumentTranslation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_TranslateDocumentResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_TranslateDocumentResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_ModelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_ModelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_GlossariesEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_GlossariesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_BatchTranslateMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_BatchTranslateMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_BatchTranslateResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_BatchTranslateResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_GlossaryInputConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_GlossaryInputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_Glossary_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_Glossary_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_Glossary_LanguageCodePair_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_Glossary_LanguageCodePair_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_Glossary_LanguageCodesSet_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_Glossary_LanguageCodesSet_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_CreateGlossaryRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_CreateGlossaryRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_GetGlossaryRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_GetGlossaryRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_DeleteGlossaryRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_DeleteGlossaryRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_ListGlossariesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_ListGlossariesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_ListGlossariesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_ListGlossariesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_CreateGlossaryMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_CreateGlossaryMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_DeleteGlossaryMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_DeleteGlossaryMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_DeleteGlossaryResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_DeleteGlossaryResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_ModelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_ModelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_GlossariesEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_GlossariesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_FormatConversionsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_FormatConversionsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_BatchDocumentInputConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_BatchDocumentInputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_BatchDocumentOutputConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_BatchDocumentOutputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_BatchTranslateDocumentResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_BatchTranslateDocumentResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_BatchTranslateDocumentMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_BatchTranslateDocumentMetadata_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n3google/cloud/translate/v3/translation_" + + "service.proto\022\033google.cloud.translation." + + "v3\032\034google/api/annotations.proto\032\027google" + + "/api/client.proto\032\037google/api/field_beha" + + "vior.proto\032\031google/api/resource.proto\032#g" + + "oogle/longrunning/operations.proto\032\033goog" + + "le/protobuf/empty.proto\032\037google/protobuf" + + "/timestamp.proto\032\027google/rpc/status.prot" + + "o\"N\n\033TranslateTextGlossaryConfig\022\025\n\010glos" + + "sary\030\001 \001(\tB\003\340A\002\022\030\n\013ignore_case\030\002 \001(\010B\003\340A" + + "\001\"\265\003\n\024TranslateTextRequest\022\025\n\010contents\030\001" + + " \003(\tB\003\340A\002\022\026\n\tmime_type\030\003 \001(\tB\003\340A\001\022!\n\024sou" + + "rce_language_code\030\004 \001(\tB\003\340A\001\022!\n\024target_l" + + "anguage_code\030\005 \001(\tB\003\340A\002\0229\n\006parent\030\010 \001(\tB" + + ")\340A\002\372A#\n!locations.googleapis.com/Locati" + + "on\022\022\n\005model\030\006 \001(\tB\003\340A\001\022V\n\017glossary_confi" + + "g\030\007 \001(\01328.google.cloud.translation.v3.Tr" + + "anslateTextGlossaryConfigB\003\340A\001\022R\n\006labels" + + "\030\n \003(\0132=.google.cloud.translation.v3.Tra" + + "nslateTextRequest.LabelsEntryB\003\340A\001\032-\n\013La" + + "belsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" + + "\001\"\240\001\n\025TranslateTextResponse\022>\n\014translati" + + "ons\030\001 \003(\0132(.google.cloud.translation.v3." + + "Translation\022G\n\025glossary_translations\030\003 \003" + + "(\0132(.google.cloud.translation.v3.Transla" + + "tion\"\250\001\n\013Translation\022\027\n\017translated_text\030" + + "\001 \001(\t\022\r\n\005model\030\002 \001(\t\022\036\n\026detected_languag" + + "e_code\030\004 \001(\t\022Q\n\017glossary_config\030\003 \001(\01328." + + "google.cloud.translation.v3.TranslateTex" + + "tGlossaryConfig\"\237\002\n\025DetectLanguageReques" + + "t\0229\n\006parent\030\005 \001(\tB)\340A\002\372A#\n!locations.goo" + + "gleapis.com/Location\022\022\n\005model\030\004 \001(\tB\003\340A\001" + + "\022\021\n\007content\030\001 \001(\tH\000\022\026\n\tmime_type\030\003 \001(\tB\003" + + "\340A\001\022S\n\006labels\030\006 \003(\0132>.google.cloud.trans" + + "lation.v3.DetectLanguageRequest.LabelsEn" + + "tryB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" + + "value\030\002 \001(\t:\0028\001B\010\n\006source\"=\n\020DetectedLan" + + "guage\022\025\n\rlanguage_code\030\001 \001(\t\022\022\n\nconfiden" + + "ce\030\002 \001(\002\"Z\n\026DetectLanguageResponse\022@\n\tla" + + "nguages\030\001 \003(\0132-.google.cloud.translation" + + ".v3.DetectedLanguage\"\221\001\n\034GetSupportedLan" + + "guagesRequest\0229\n\006parent\030\003 \001(\tB)\340A\002\372A#\n!l" + + "ocations.googleapis.com/Location\022\"\n\025disp" + + "lay_language_code\030\001 \001(\tB\003\340A\001\022\022\n\005model\030\002 " + + "\001(\tB\003\340A\001\"W\n\022SupportedLanguages\022A\n\tlangua" + + "ges\030\001 \003(\0132..google.cloud.translation.v3." + + "SupportedLanguage\"p\n\021SupportedLanguage\022\025" + + "\n\rlanguage_code\030\001 \001(\t\022\024\n\014display_name\030\002 " + + "\001(\t\022\026\n\016support_source\030\003 \001(\010\022\026\n\016support_t" + + "arget\030\004 \001(\010\"#\n\tGcsSource\022\026\n\tinput_uri\030\001 " + + "\001(\tB\003\340A\002\"m\n\013InputConfig\022\026\n\tmime_type\030\001 \001" + + "(\tB\003\340A\001\022<\n\ngcs_source\030\002 \001(\0132&.google.clo" + + "ud.translation.v3.GcsSourceH\000B\010\n\006source\"" + + "0\n\016GcsDestination\022\036\n\021output_uri_prefix\030\001" + + " \001(\tB\003\340A\002\"e\n\014OutputConfig\022F\n\017gcs_destina" + + "tion\030\001 \001(\0132+.google.cloud.translation.v3" + + ".GcsDestinationH\000B\r\n\013destination\"\203\001\n\023Doc" + + "umentInputConfig\022\021\n\007content\030\001 \001(\014H\000\022<\n\ng" + + "cs_source\030\002 \001(\0132&.google.cloud.translati" + + "on.v3.GcsSourceH\000\022\021\n\tmime_type\030\004 \001(\tB\010\n\006" + + "source\"\212\001\n\024DocumentOutputConfig\022K\n\017gcs_d" + + "estination\030\001 \001(\0132+.google.cloud.translat" + + "ion.v3.GcsDestinationB\003\340A\001H\000\022\026\n\tmime_typ" + + "e\030\003 \001(\tB\003\340A\001B\r\n\013destination\"\226\004\n\030Translat" + + "eDocumentRequest\022\023\n\006parent\030\001 \001(\tB\003\340A\002\022!\n" + + "\024source_language_code\030\002 \001(\tB\003\340A\001\022!\n\024targ" + + "et_language_code\030\003 \001(\tB\003\340A\002\022T\n\025document_" + + "input_config\030\004 \001(\01320.google.cloud.transl" + + "ation.v3.DocumentInputConfigB\003\340A\002\022V\n\026doc" + + "ument_output_config\030\005 \001(\01321.google.cloud" + + ".translation.v3.DocumentOutputConfigB\003\340A" + + "\001\022\022\n\005model\030\006 \001(\tB\003\340A\001\022V\n\017glossary_config" + + "\030\007 \001(\01328.google.cloud.translation.v3.Tra" + + "nslateTextGlossaryConfigB\003\340A\001\022V\n\006labels\030" + + "\010 \003(\0132A.google.cloud.translation.v3.Tran" + + "slateDocumentRequest.LabelsEntryB\003\340A\001\032-\n" + + "\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t" + + ":\0028\001\"e\n\023DocumentTranslation\022\033\n\023byte_stre" + + "am_outputs\030\001 \003(\014\022\021\n\tmime_type\030\002 \001(\t\022\036\n\026d" + + "etected_language_code\030\003 \001(\t\"\246\002\n\031Translat" + + "eDocumentResponse\022N\n\024document_translatio" + + "n\030\001 \001(\01320.google.cloud.translation.v3.Do" + + "cumentTranslation\022W\n\035glossary_document_t" + + "ranslation\030\002 \001(\01320.google.cloud.translat" + + "ion.v3.DocumentTranslation\022\r\n\005model\030\003 \001(" + + "\t\022Q\n\017glossary_config\030\004 \001(\01328.google.clou" + + "d.translation.v3.TranslateTextGlossaryCo" + + "nfig\"\210\006\n\031BatchTranslateTextRequest\0229\n\006pa" + + "rent\030\001 \001(\tB)\340A\002\372A#\n!locations.googleapis" + + ".com/Location\022!\n\024source_language_code\030\002 " + + "\001(\tB\003\340A\002\022\"\n\025target_language_codes\030\003 \003(\tB" + + "\003\340A\002\022W\n\006models\030\004 \003(\0132B.google.cloud.tran" + + "slation.v3.BatchTranslateTextRequest.Mod" + + "elsEntryB\003\340A\001\022D\n\rinput_configs\030\005 \003(\0132(.g" + + "oogle.cloud.translation.v3.InputConfigB\003" + + "\340A\002\022E\n\routput_config\030\006 \001(\0132).google.clou" + + "d.translation.v3.OutputConfigB\003\340A\002\022_\n\ngl" + + "ossaries\030\007 \003(\0132F.google.cloud.translatio" + + "n.v3.BatchTranslateTextRequest.Glossarie" + + "sEntryB\003\340A\001\022W\n\006labels\030\t \003(\0132B.google.clo" + + "ud.translation.v3.BatchTranslateTextRequ" + + "est.LabelsEntryB\003\340A\001\032-\n\013ModelsEntry\022\013\n\003k" + + "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032k\n\017Glossarie" + + "sEntry\022\013\n\003key\030\001 \001(\t\022G\n\005value\030\002 \001(\01328.goo" + + "gle.cloud.translation.v3.TranslateTextGl" + + "ossaryConfig:\0028\001\032-\n\013LabelsEntry\022\013\n\003key\030\001" + + " \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\316\002\n\026BatchTransla" + + "teMetadata\022H\n\005state\030\001 \001(\01629.google.cloud" + + ".translation.v3.BatchTranslateMetadata.S" + + "tate\022\035\n\025translated_characters\030\002 \001(\003\022\031\n\021f" + + "ailed_characters\030\003 \001(\003\022\030\n\020total_characte" + + "rs\030\004 \001(\003\022/\n\013submit_time\030\005 \001(\0132\032.google.p" + + "rotobuf.Timestamp\"e\n\005State\022\025\n\021STATE_UNSP" + + "ECIFIED\020\000\022\013\n\007RUNNING\020\001\022\r\n\tSUCCEEDED\020\002\022\n\n" + + "\006FAILED\020\003\022\016\n\nCANCELLING\020\004\022\r\n\tCANCELLED\020\005" + + "\"\313\001\n\026BatchTranslateResponse\022\030\n\020total_cha" + + "racters\030\001 \001(\003\022\035\n\025translated_characters\030\002" + + " \001(\003\022\031\n\021failed_characters\030\003 \001(\003\022/\n\013submi" + + "t_time\030\004 \001(\0132\032.google.protobuf.Timestamp" + + "\022,\n\010end_time\030\005 \001(\0132\032.google.protobuf.Tim" + + "estamp\"]\n\023GlossaryInputConfig\022<\n\ngcs_sou" + + "rce\030\001 \001(\0132&.google.cloud.translation.v3." + + "GcsSourceH\000B\010\n\006source\"\377\004\n\010Glossary\022\021\n\004na" + + "me\030\001 \001(\tB\003\340A\002\022O\n\rlanguage_pair\030\003 \001(\01326.g" + + "oogle.cloud.translation.v3.Glossary.Lang" + + "uageCodePairH\000\022T\n\022language_codes_set\030\004 \001" + + "(\01326.google.cloud.translation.v3.Glossar" + + "y.LanguageCodesSetH\000\022F\n\014input_config\030\005 \001" + + "(\01320.google.cloud.translation.v3.Glossar" + + "yInputConfig\022\030\n\013entry_count\030\006 \001(\005B\003\340A\003\0224" + + "\n\013submit_time\030\007 \001(\0132\032.google.protobuf.Ti" + + "mestampB\003\340A\003\0221\n\010end_time\030\010 \001(\0132\032.google." + + "protobuf.TimestampB\003\340A\003\032N\n\020LanguageCodeP" + + "air\022\034\n\024source_language_code\030\001 \001(\t\022\034\n\024tar" + + "get_language_code\030\002 \001(\t\032*\n\020LanguageCodes" + + "Set\022\026\n\016language_codes\030\001 \003(\t:e\352Ab\n!transl" + + "ate.googleapis.com/Glossary\022=projects/{p" + + "roject}/locations/{location}/glossaries/" + + "{glossary}B\013\n\tlanguages\"\220\001\n\025CreateGlossa" + + "ryRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locat" + + "ions.googleapis.com/Location\022<\n\010glossary" + + "\030\002 \001(\0132%.google.cloud.translation.v3.Glo" + + "ssaryB\003\340A\002\"M\n\022GetGlossaryRequest\0227\n\004name" + + "\030\001 \001(\tB)\340A\002\372A#\n!translate.googleapis.com" + + "/Glossary\"P\n\025DeleteGlossaryRequest\0227\n\004na" + + "me\030\001 \001(\tB)\340A\002\372A#\n!translate.googleapis.c" + + "om/Glossary\"\230\001\n\025ListGlossariesRequest\0229\n" + + "\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.googlea" + + "pis.com/Location\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001" + + "\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\022\023\n\006filter\030\004 \001(" + + "\tB\003\340A\001\"l\n\026ListGlossariesResponse\0229\n\nglos" + + "saries\030\001 \003(\0132%.google.cloud.translation." + + "v3.Glossary\022\027\n\017next_page_token\030\002 \001(\t\"\210\002\n" + + "\026CreateGlossaryMetadata\022\014\n\004name\030\001 \001(\t\022H\n" + + "\005state\030\002 \001(\01629.google.cloud.translation." + + "v3.CreateGlossaryMetadata.State\022/\n\013submi" + + "t_time\030\003 \001(\0132\032.google.protobuf.Timestamp" + + "\"e\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007RUNN" + + "ING\020\001\022\r\n\tSUCCEEDED\020\002\022\n\n\006FAILED\020\003\022\016\n\nCANC" + + "ELLING\020\004\022\r\n\tCANCELLED\020\005\"\210\002\n\026DeleteGlossa" + + "ryMetadata\022\014\n\004name\030\001 \001(\t\022H\n\005state\030\002 \001(\0162" + + "9.google.cloud.translation.v3.DeleteGlos" + + "saryMetadata.State\022/\n\013submit_time\030\003 \001(\0132" + + "\032.google.protobuf.Timestamp\"e\n\005State\022\025\n\021" + + "STATE_UNSPECIFIED\020\000\022\013\n\007RUNNING\020\001\022\r\n\tSUCC" + + "EEDED\020\002\022\n\n\006FAILED\020\003\022\016\n\nCANCELLING\020\004\022\r\n\tC" + + "ANCELLED\020\005\"\205\001\n\026DeleteGlossaryResponse\022\014\n" + + "\004name\030\001 \001(\t\022/\n\013submit_time\030\002 \001(\0132\032.googl" + + "e.protobuf.Timestamp\022,\n\010end_time\030\003 \001(\0132\032" + + ".google.protobuf.Timestamp\"\324\006\n\035BatchTran" + + "slateDocumentRequest\0229\n\006parent\030\001 \001(\tB)\340A" + + "\002\372A#\n!locations.googleapis.com/Location\022" + + "!\n\024source_language_code\030\002 \001(\tB\003\340A\002\022\"\n\025ta" + + "rget_language_codes\030\003 \003(\tB\003\340A\002\022Q\n\rinput_" + + "configs\030\004 \003(\01325.google.cloud.translation" + + ".v3.BatchDocumentInputConfigB\003\340A\002\022R\n\rout" + + "put_config\030\005 \001(\01326.google.cloud.translat" + + "ion.v3.BatchDocumentOutputConfigB\003\340A\002\022[\n" + + "\006models\030\006 \003(\0132F.google.cloud.translation" + + ".v3.BatchTranslateDocumentRequest.Models" + + "EntryB\003\340A\001\022c\n\nglossaries\030\007 \003(\0132J.google." + + "cloud.translation.v3.BatchTranslateDocum" + + "entRequest.GlossariesEntryB\003\340A\001\022r\n\022forma" + + "t_conversions\030\010 \003(\0132Q.google.cloud.trans" + + "lation.v3.BatchTranslateDocumentRequest." + + "FormatConversionsEntryB\003\340A\001\032-\n\013ModelsEnt" + + "ry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032k\n\017Gl" + + "ossariesEntry\022\013\n\003key\030\001 \001(\t\022G\n\005value\030\002 \001(" + + "\01328.google.cloud.translation.v3.Translat" + + "eTextGlossaryConfig:\0028\001\0328\n\026FormatConvers" + + "ionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" + + "\001\"b\n\030BatchDocumentInputConfig\022<\n\ngcs_sou" + + "rce\030\001 \001(\0132&.google.cloud.translation.v3." + + "GcsSourceH\000B\010\n\006source\"r\n\031BatchDocumentOu" + + "tputConfig\022F\n\017gcs_destination\030\001 \001(\0132+.go" + + "ogle.cloud.translation.v3.GcsDestination" + + "H\000B\r\n\013destination\"\331\002\n\036BatchTranslateDocu" + + "mentResponse\022\023\n\013total_pages\030\001 \001(\003\022\030\n\020tra" + + "nslated_pages\030\002 \001(\003\022\024\n\014failed_pages\030\003 \001(" + + "\003\022\034\n\024total_billable_pages\030\004 \001(\003\022\030\n\020total" + + "_characters\030\005 \001(\003\022\035\n\025translated_characte" + + "rs\030\006 \001(\003\022\031\n\021failed_characters\030\007 \001(\003\022!\n\031t" + + "otal_billable_characters\030\010 \001(\003\022/\n\013submit" + + "_time\030\t \001(\0132\032.google.protobuf.Timestamp\022" + + ",\n\010end_time\030\n \001(\0132\032.google.protobuf.Time" + + "stamp\"\344\003\n\036BatchTranslateDocumentMetadata" + + "\022P\n\005state\030\001 \001(\0162A.google.cloud.translati" + + "on.v3.BatchTranslateDocumentMetadata.Sta" + + "te\022\023\n\013total_pages\030\002 \001(\003\022\030\n\020translated_pa" + + "ges\030\003 \001(\003\022\024\n\014failed_pages\030\004 \001(\003\022\034\n\024total" + + "_billable_pages\030\005 \001(\003\022\030\n\020total_character" + + "s\030\006 \001(\003\022\035\n\025translated_characters\030\007 \001(\003\022\031" + + "\n\021failed_characters\030\010 \001(\003\022!\n\031total_billa" + + "ble_characters\030\t \001(\003\022/\n\013submit_time\030\n \001(" + + "\0132\032.google.protobuf.Timestamp\"e\n\005State\022\025" + + "\n\021STATE_UNSPECIFIED\020\000\022\013\n\007RUNNING\020\001\022\r\n\tSU" + + "CCEEDED\020\002\022\n\n\006FAILED\020\003\022\016\n\nCANCELLING\020\004\022\r\n" + + "\tCANCELLED\020\0052\246\024\n\022TranslationService\022\324\002\n\r" + + "TranslateText\0221.google.cloud.translation" + + ".v3.TranslateTextRequest\0322.google.cloud." + + "translation.v3.TranslateTextResponse\"\333\001\202" + + "\323\344\223\002b\"1/v3/{parent=projects/*/locations/" + + "*}:translateText:\001*Z*\"%/v3/{parent=proje" + + "cts/*}:translateText:\001*\332A$parent,target_" + + "language_code,contents\332AIparent,model,mi" + + "me_type,source_language_code,target_lang" + + "uage_code,contents\022\207\002\n\016DetectLanguage\0222." + + "google.cloud.translation.v3.DetectLangua" + + "geRequest\0323.google.cloud.translation.v3." + + "DetectLanguageResponse\"\213\001\202\323\344\223\002d\"2/v3/{pa" + + "rent=projects/*/locations/*}:detectLangu" + + "age:\001*Z+\"&/v3/{parent=projects/*}:detect" + + "Language:\001*\332A\036parent,model,mime_type,con" + + "tent\022\227\002\n\025GetSupportedLanguages\0229.google." + + "cloud.translation.v3.GetSupportedLanguag" + + "esRequest\032/.google.cloud.translation.v3." + + "SupportedLanguages\"\221\001\202\323\344\223\002f\0226/v3/{parent" + + "=projects/*/locations/*}/supportedLangua" + + "gesZ,\022*/v3/{parent=projects/*}/supported" + + "Languages\332A\"parent,model,display_languag" + + "e_code\022\304\001\n\021TranslateDocument\0225.google.cl" + + "oud.translation.v3.TranslateDocumentRequ" + + "est\0326.google.cloud.translation.v3.Transl" + + "ateDocumentResponse\"@\202\323\344\223\002:\"5/v3/{parent" + + "=projects/*/locations/*}:translateDocume" + + "nt:\001*\022\341\001\n\022BatchTranslateText\0226.google.cl" + + "oud.translation.v3.BatchTranslateTextReq" + + "uest\032\035.google.longrunning.Operation\"t\202\323\344" + + "\223\002;\"6/v3/{parent=projects/*/locations/*}" + + ":batchTranslateText:\001*\312A0\n\026BatchTranslat" + + "eResponse\022\026BatchTranslateMetadata\022\316\002\n\026Ba" + + "tchTranslateDocument\022:.google.cloud.tran" + + "slation.v3.BatchTranslateDocumentRequest" + + "\032\035.google.longrunning.Operation\"\330\001\202\323\344\223\002?" + + "\":/v3/{parent=projects/*/locations/*}:ba" + + "tchTranslateDocument:\001*\332AMparent,source_" + + "language_code,target_language_codes,inpu" + + "t_configs,output_config\312A@\n\036BatchTransla" + + "teDocumentResponse\022\036BatchTranslateDocume" + + "ntMetadata\022\334\001\n\016CreateGlossary\0222.google.c" + + "loud.translation.v3.CreateGlossaryReques" + + "t\032\035.google.longrunning.Operation\"w\202\323\344\223\002:" + + "\"./v3/{parent=projects/*/locations/*}/gl" + + "ossaries:\010glossary\332A\017parent,glossary\312A\"\n" + + "\010Glossary\022\026CreateGlossaryMetadata\022\272\001\n\016Li" + + "stGlossaries\0222.google.cloud.translation." + + "v3.ListGlossariesRequest\0323.google.cloud." + + "translation.v3.ListGlossariesResponse\"?\202" + + "\323\344\223\0020\022./v3/{parent=projects/*/locations/" + + "*}/glossaries\332A\006parent\022\244\001\n\013GetGlossary\022/" + + ".google.cloud.translation.v3.GetGlossary" + + "Request\032%.google.cloud.translation.v3.Gl" + + "ossary\"=\202\323\344\223\0020\022./v3/{name=projects/*/loc" + + "ations/*/glossaries/*}\332A\004name\022\325\001\n\016Delete" + + "Glossary\0222.google.cloud.translation.v3.D" + + "eleteGlossaryRequest\032\035.google.longrunnin" + + "g.Operation\"p\202\323\344\223\0020*./v3/{name=projects/" + + "*/locations/*/glossaries/*}\332A\004name\312A0\n\026D" + + "eleteGlossaryResponse\022\026DeleteGlossaryMet" + + "adata\032~\312A\030translate.googleapis.com\322A`htt" + + "ps://www.googleapis.com/auth/cloud-platf" + + "orm,https://www.googleapis.com/auth/clou" + + "d-translationB\330\001\n\035com.google.cloud.trans" + + "late.v3B\027TranslationServiceProtoP\001ZBgoog" + + "le.golang.org/genproto/googleapis/cloud/" + + "translate/v3;translate\370\001\001\252\002\031Google.Cloud" + + ".Translate.V3\312\002\031Google\\Cloud\\Translate\\V" + + "3\352\002\034Google::Cloud::Translate::V3b\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.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), + }); + internal_static_google_cloud_translation_v3_TranslateTextGlossaryConfig_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_translation_v3_TranslateTextGlossaryConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_TranslateTextGlossaryConfig_descriptor, + new java.lang.String[] { "Glossary", "IgnoreCase", }); + internal_static_google_cloud_translation_v3_TranslateTextRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_translation_v3_TranslateTextRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_TranslateTextRequest_descriptor, + new java.lang.String[] { "Contents", "MimeType", "SourceLanguageCode", "TargetLanguageCode", "Parent", "Model", "GlossaryConfig", "Labels", }); + internal_static_google_cloud_translation_v3_TranslateTextRequest_LabelsEntry_descriptor = + internal_static_google_cloud_translation_v3_TranslateTextRequest_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_translation_v3_TranslateTextRequest_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_TranslateTextRequest_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_translation_v3_TranslateTextResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_translation_v3_TranslateTextResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_TranslateTextResponse_descriptor, + new java.lang.String[] { "Translations", "GlossaryTranslations", }); + internal_static_google_cloud_translation_v3_Translation_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_translation_v3_Translation_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_Translation_descriptor, + new java.lang.String[] { "TranslatedText", "Model", "DetectedLanguageCode", "GlossaryConfig", }); + internal_static_google_cloud_translation_v3_DetectLanguageRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_translation_v3_DetectLanguageRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_DetectLanguageRequest_descriptor, + new java.lang.String[] { "Parent", "Model", "Content", "MimeType", "Labels", "Source", }); + internal_static_google_cloud_translation_v3_DetectLanguageRequest_LabelsEntry_descriptor = + internal_static_google_cloud_translation_v3_DetectLanguageRequest_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_translation_v3_DetectLanguageRequest_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_DetectLanguageRequest_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_translation_v3_DetectedLanguage_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_translation_v3_DetectedLanguage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_DetectedLanguage_descriptor, + new java.lang.String[] { "LanguageCode", "Confidence", }); + internal_static_google_cloud_translation_v3_DetectLanguageResponse_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_translation_v3_DetectLanguageResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_DetectLanguageResponse_descriptor, + new java.lang.String[] { "Languages", }); + internal_static_google_cloud_translation_v3_GetSupportedLanguagesRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_translation_v3_GetSupportedLanguagesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_GetSupportedLanguagesRequest_descriptor, + new java.lang.String[] { "Parent", "DisplayLanguageCode", "Model", }); + internal_static_google_cloud_translation_v3_SupportedLanguages_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_translation_v3_SupportedLanguages_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_SupportedLanguages_descriptor, + new java.lang.String[] { "Languages", }); + internal_static_google_cloud_translation_v3_SupportedLanguage_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_translation_v3_SupportedLanguage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_SupportedLanguage_descriptor, + new java.lang.String[] { "LanguageCode", "DisplayName", "SupportSource", "SupportTarget", }); + internal_static_google_cloud_translation_v3_GcsSource_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_translation_v3_GcsSource_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_GcsSource_descriptor, + new java.lang.String[] { "InputUri", }); + internal_static_google_cloud_translation_v3_InputConfig_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_translation_v3_InputConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_InputConfig_descriptor, + new java.lang.String[] { "MimeType", "GcsSource", "Source", }); + internal_static_google_cloud_translation_v3_GcsDestination_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_translation_v3_GcsDestination_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_GcsDestination_descriptor, + new java.lang.String[] { "OutputUriPrefix", }); + internal_static_google_cloud_translation_v3_OutputConfig_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_translation_v3_OutputConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_OutputConfig_descriptor, + new java.lang.String[] { "GcsDestination", "Destination", }); + internal_static_google_cloud_translation_v3_DocumentInputConfig_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_translation_v3_DocumentInputConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_DocumentInputConfig_descriptor, + new java.lang.String[] { "Content", "GcsSource", "MimeType", "Source", }); + internal_static_google_cloud_translation_v3_DocumentOutputConfig_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_translation_v3_DocumentOutputConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_DocumentOutputConfig_descriptor, + new java.lang.String[] { "GcsDestination", "MimeType", "Destination", }); + internal_static_google_cloud_translation_v3_TranslateDocumentRequest_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_translation_v3_TranslateDocumentRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_TranslateDocumentRequest_descriptor, + new java.lang.String[] { "Parent", "SourceLanguageCode", "TargetLanguageCode", "DocumentInputConfig", "DocumentOutputConfig", "Model", "GlossaryConfig", "Labels", }); + internal_static_google_cloud_translation_v3_TranslateDocumentRequest_LabelsEntry_descriptor = + internal_static_google_cloud_translation_v3_TranslateDocumentRequest_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_translation_v3_TranslateDocumentRequest_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_TranslateDocumentRequest_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_translation_v3_DocumentTranslation_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_translation_v3_DocumentTranslation_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_DocumentTranslation_descriptor, + new java.lang.String[] { "ByteStreamOutputs", "MimeType", "DetectedLanguageCode", }); + internal_static_google_cloud_translation_v3_TranslateDocumentResponse_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_translation_v3_TranslateDocumentResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_TranslateDocumentResponse_descriptor, + new java.lang.String[] { "DocumentTranslation", "GlossaryDocumentTranslation", "Model", "GlossaryConfig", }); + internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_descriptor, + new java.lang.String[] { "Parent", "SourceLanguageCode", "TargetLanguageCodes", "Models", "InputConfigs", "OutputConfig", "Glossaries", "Labels", }); + internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_ModelsEntry_descriptor = + internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_ModelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_ModelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_GlossariesEntry_descriptor = + internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_GlossariesEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_GlossariesEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_LabelsEntry_descriptor = + internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_translation_v3_BatchTranslateMetadata_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_translation_v3_BatchTranslateMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_BatchTranslateMetadata_descriptor, + new java.lang.String[] { "State", "TranslatedCharacters", "FailedCharacters", "TotalCharacters", "SubmitTime", }); + internal_static_google_cloud_translation_v3_BatchTranslateResponse_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_translation_v3_BatchTranslateResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_BatchTranslateResponse_descriptor, + new java.lang.String[] { "TotalCharacters", "TranslatedCharacters", "FailedCharacters", "SubmitTime", "EndTime", }); + internal_static_google_cloud_translation_v3_GlossaryInputConfig_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_cloud_translation_v3_GlossaryInputConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_GlossaryInputConfig_descriptor, + new java.lang.String[] { "GcsSource", "Source", }); + internal_static_google_cloud_translation_v3_Glossary_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_cloud_translation_v3_Glossary_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_Glossary_descriptor, + new java.lang.String[] { "Name", "LanguagePair", "LanguageCodesSet", "InputConfig", "EntryCount", "SubmitTime", "EndTime", "Languages", }); + internal_static_google_cloud_translation_v3_Glossary_LanguageCodePair_descriptor = + internal_static_google_cloud_translation_v3_Glossary_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_translation_v3_Glossary_LanguageCodePair_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_Glossary_LanguageCodePair_descriptor, + new java.lang.String[] { "SourceLanguageCode", "TargetLanguageCode", }); + internal_static_google_cloud_translation_v3_Glossary_LanguageCodesSet_descriptor = + internal_static_google_cloud_translation_v3_Glossary_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_translation_v3_Glossary_LanguageCodesSet_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_Glossary_LanguageCodesSet_descriptor, + new java.lang.String[] { "LanguageCodes", }); + internal_static_google_cloud_translation_v3_CreateGlossaryRequest_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_cloud_translation_v3_CreateGlossaryRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_CreateGlossaryRequest_descriptor, + new java.lang.String[] { "Parent", "Glossary", }); + internal_static_google_cloud_translation_v3_GetGlossaryRequest_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_google_cloud_translation_v3_GetGlossaryRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_GetGlossaryRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_translation_v3_DeleteGlossaryRequest_descriptor = + getDescriptor().getMessageTypes().get(26); + internal_static_google_cloud_translation_v3_DeleteGlossaryRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_DeleteGlossaryRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_translation_v3_ListGlossariesRequest_descriptor = + getDescriptor().getMessageTypes().get(27); + internal_static_google_cloud_translation_v3_ListGlossariesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_ListGlossariesRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", }); + internal_static_google_cloud_translation_v3_ListGlossariesResponse_descriptor = + getDescriptor().getMessageTypes().get(28); + internal_static_google_cloud_translation_v3_ListGlossariesResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_ListGlossariesResponse_descriptor, + new java.lang.String[] { "Glossaries", "NextPageToken", }); + internal_static_google_cloud_translation_v3_CreateGlossaryMetadata_descriptor = + getDescriptor().getMessageTypes().get(29); + internal_static_google_cloud_translation_v3_CreateGlossaryMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_CreateGlossaryMetadata_descriptor, + new java.lang.String[] { "Name", "State", "SubmitTime", }); + internal_static_google_cloud_translation_v3_DeleteGlossaryMetadata_descriptor = + getDescriptor().getMessageTypes().get(30); + internal_static_google_cloud_translation_v3_DeleteGlossaryMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_DeleteGlossaryMetadata_descriptor, + new java.lang.String[] { "Name", "State", "SubmitTime", }); + internal_static_google_cloud_translation_v3_DeleteGlossaryResponse_descriptor = + getDescriptor().getMessageTypes().get(31); + internal_static_google_cloud_translation_v3_DeleteGlossaryResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_DeleteGlossaryResponse_descriptor, + new java.lang.String[] { "Name", "SubmitTime", "EndTime", }); + internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_descriptor = + getDescriptor().getMessageTypes().get(32); + internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_descriptor, + new java.lang.String[] { "Parent", "SourceLanguageCode", "TargetLanguageCodes", "InputConfigs", "OutputConfig", "Models", "Glossaries", "FormatConversions", }); + internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_ModelsEntry_descriptor = + internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_ModelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_ModelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_GlossariesEntry_descriptor = + internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_GlossariesEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_GlossariesEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_FormatConversionsEntry_descriptor = + internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_FormatConversionsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_FormatConversionsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_translation_v3_BatchDocumentInputConfig_descriptor = + getDescriptor().getMessageTypes().get(33); + internal_static_google_cloud_translation_v3_BatchDocumentInputConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_BatchDocumentInputConfig_descriptor, + new java.lang.String[] { "GcsSource", "Source", }); + internal_static_google_cloud_translation_v3_BatchDocumentOutputConfig_descriptor = + getDescriptor().getMessageTypes().get(34); + internal_static_google_cloud_translation_v3_BatchDocumentOutputConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_BatchDocumentOutputConfig_descriptor, + new java.lang.String[] { "GcsDestination", "Destination", }); + internal_static_google_cloud_translation_v3_BatchTranslateDocumentResponse_descriptor = + getDescriptor().getMessageTypes().get(35); + internal_static_google_cloud_translation_v3_BatchTranslateDocumentResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_BatchTranslateDocumentResponse_descriptor, + new java.lang.String[] { "TotalPages", "TranslatedPages", "FailedPages", "TotalBillablePages", "TotalCharacters", "TranslatedCharacters", "FailedCharacters", "TotalBillableCharacters", "SubmitTime", "EndTime", }); + internal_static_google_cloud_translation_v3_BatchTranslateDocumentMetadata_descriptor = + getDescriptor().getMessageTypes().get(36); + internal_static_google_cloud_translation_v3_BatchTranslateDocumentMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_BatchTranslateDocumentMetadata_descriptor, + new java.lang.String[] { "State", "TotalPages", "TranslatedPages", "FailedPages", "TotalBillablePages", "TotalCharacters", "TranslatedCharacters", "FailedCharacters", "TotalBillableCharacters", "SubmitTime", }); + 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); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + 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.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-translate-v3/src/main/proto/google/cloud/location/locations.proto b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/proto/google/cloud/location/locations.proto similarity index 100% rename from proto-google-cloud-translate-v3/src/main/proto/google/cloud/location/locations.proto rename to owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/proto/google/cloud/location/locations.proto diff --git a/proto-google-cloud-translate-v3/src/main/proto/google/cloud/translate/v3/translation_service.proto b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/proto/google/cloud/translate/v3/translation_service.proto similarity index 99% rename from proto-google-cloud-translate-v3/src/main/proto/google/cloud/translate/v3/translation_service.proto rename to owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/proto/google/cloud/translate/v3/translation_service.proto index 070786ce..9f770248 100644 --- a/proto-google-cloud-translate-v3/src/main/proto/google/cloud/translate/v3/translation_service.proto +++ b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/proto/google/cloud/translate/v3/translation_service.proto @@ -123,6 +123,8 @@ service TranslationService { post: "/v3/{parent=projects/*/locations/*}:batchTranslateDocument" body: "*" }; + option (google.api.method_signature) = + "parent,source_language_code,target_language_codes,input_configs,output_config"; option (google.longrunning.operation_info) = { response_type: "BatchTranslateDocumentResponse" metadata_type: "BatchTranslateDocumentMetadata" diff --git a/owl-bot-staging/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceClient.java b/owl-bot-staging/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceClient.java new file mode 100644 index 00000000..d8beaef8 --- /dev/null +++ b/owl-bot-staging/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceClient.java @@ -0,0 +1,1547 @@ +/* + * Copyright 2021 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.cloud.translate.v3beta1; + +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.longrunning.OperationFuture; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.translate.v3beta1.stub.TranslationServiceStub; +import com.google.cloud.translate.v3beta1.stub.TranslationServiceStubSettings; +import com.google.common.util.concurrent.MoreExecutors; +import com.google.longrunning.Operation; +import com.google.longrunning.OperationsClient; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Provides natural language translation operations. + * + *

This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *

{@code
+ * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+ *   TranslateTextRequest request =
+ *       TranslateTextRequest.newBuilder()
+ *           .addAllContents(new ArrayList())
+ *           .setMimeType("mimeType-1392120434")
+ *           .setSourceLanguageCode("sourceLanguageCode1645917472")
+ *           .setTargetLanguageCode("targetLanguageCode-106414698")
+ *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ *           .setModel("model104069929")
+ *           .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build())
+ *           .putAllLabels(new HashMap())
+ *           .build();
+ *   TranslateTextResponse response = translationServiceClient.translateText(request);
+ * }
+ * }
+ * + *

Note: close() needs to be called on the TranslationServiceClient object to clean up resources + * such as threads. In the example above, try-with-resources is used, which automatically calls + * close(). + * + *

The surface of this class includes several types of Java methods for each of the API's + * methods: + * + *

    + *
  1. A "flattened" method. With this type of method, the fields of the request type have been + * converted into function parameters. It may be the case that not all fields are available as + * parameters, and not every API method will have a flattened method entry point. + *
  2. A "request object" method. This type of method only takes one parameter, a request object, + * which must be constructed before the call. Not every API method will have a request object + * method. + *
  3. A "callable" method. This type of method takes no parameters and returns an immutable API + * callable object, which can be used to initiate calls to the service. + *
+ * + *

See the individual methods for example code. + * + *

Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *

This class can be customized by passing in a custom instance of TranslationServiceSettings to + * create(). For example: + * + *

To customize credentials: + * + *

{@code
+ * TranslationServiceSettings translationServiceSettings =
+ *     TranslationServiceSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * TranslationServiceClient translationServiceClient =
+ *     TranslationServiceClient.create(translationServiceSettings);
+ * }
+ * + *

To customize the endpoint: + * + *

{@code
+ * TranslationServiceSettings translationServiceSettings =
+ *     TranslationServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * TranslationServiceClient translationServiceClient =
+ *     TranslationServiceClient.create(translationServiceSettings);
+ * }
+ * + *

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class TranslationServiceClient implements BackgroundResource { + private final TranslationServiceSettings settings; + private final TranslationServiceStub stub; + private final OperationsClient operationsClient; + + /** Constructs an instance of TranslationServiceClient with default settings. */ + public static final TranslationServiceClient create() throws IOException { + return create(TranslationServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of TranslationServiceClient, using the given settings. The channels are + * created based on the settings passed in, or defaults for any settings that are not set. + */ + public static final TranslationServiceClient create(TranslationServiceSettings settings) + throws IOException { + return new TranslationServiceClient(settings); + } + + /** + * Constructs an instance of TranslationServiceClient, using the given stub for making calls. This + * is for advanced usage - prefer using create(TranslationServiceSettings). + */ + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public static final TranslationServiceClient create(TranslationServiceStub stub) { + return new TranslationServiceClient(stub); + } + + /** + * Constructs an instance of TranslationServiceClient, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected TranslationServiceClient(TranslationServiceSettings settings) throws IOException { + this.settings = settings; + this.stub = ((TranslationServiceStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + protected TranslationServiceClient(TranslationServiceStub stub) { + this.settings = null; + this.stub = stub; + this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); + } + + public final TranslationServiceSettings getSettings() { + return settings; + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public TranslationServiceStub getStub() { + return stub; + } + + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + public final OperationsClient getOperationsClient() { + return operationsClient; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Translates input text and returns translated text. + * + *

Sample code: + * + *

{@code
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   TranslateTextRequest request =
+   *       TranslateTextRequest.newBuilder()
+   *           .addAllContents(new ArrayList())
+   *           .setMimeType("mimeType-1392120434")
+   *           .setSourceLanguageCode("sourceLanguageCode1645917472")
+   *           .setTargetLanguageCode("targetLanguageCode-106414698")
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setModel("model104069929")
+   *           .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build())
+   *           .putAllLabels(new HashMap())
+   *           .build();
+   *   TranslateTextResponse response = translationServiceClient.translateText(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final TranslateTextResponse translateText(TranslateTextRequest request) { + return translateTextCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Translates input text and returns translated text. + * + *

Sample code: + * + *

{@code
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   TranslateTextRequest request =
+   *       TranslateTextRequest.newBuilder()
+   *           .addAllContents(new ArrayList())
+   *           .setMimeType("mimeType-1392120434")
+   *           .setSourceLanguageCode("sourceLanguageCode1645917472")
+   *           .setTargetLanguageCode("targetLanguageCode-106414698")
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setModel("model104069929")
+   *           .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build())
+   *           .putAllLabels(new HashMap())
+   *           .build();
+   *   ApiFuture future =
+   *       translationServiceClient.translateTextCallable().futureCall(request);
+   *   // Do something.
+   *   TranslateTextResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable translateTextCallable() { + return stub.translateTextCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Detects the language of text within a request. + * + *

Sample code: + * + *

{@code
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   String model = "model104069929";
+   *   String mimeType = "mimeType-1392120434";
+   *   DetectLanguageResponse response =
+   *       translationServiceClient.detectLanguage(parent, model, mimeType);
+   * }
+   * }
+ * + * @param parent Required. Project or location to make a call. Must refer to a caller's project. + *

Format: `projects/{project-number-or-id}/locations/{location-id}` or + * `projects/{project-number-or-id}`. + *

For global calls, use `projects/{project-number-or-id}/locations/global` or + * `projects/{project-number-or-id}`. + *

Only models within the same region (has same location-id) can be used. Otherwise an + * INVALID_ARGUMENT (400) error is returned. + * @param model Optional. The language detection model to be used. + *

Format: + * `projects/{project-number-or-id}/locations/{location-id}/models/language-detection/{model-id}` + *

Only one language detection model is currently supported: + * `projects/{project-number-or-id}/locations/{location-id}/models/language-detection/default`. + *

If not specified, the default model is used. + * @param mimeType Optional. The format of the source text, for example, "text/html", + * "text/plain". If left blank, the MIME type defaults to "text/html". + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DetectLanguageResponse detectLanguage( + LocationName parent, String model, String mimeType) { + DetectLanguageRequest request = + DetectLanguageRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setModel(model) + .setMimeType(mimeType) + .build(); + return detectLanguage(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Detects the language of text within a request. + * + *

Sample code: + * + *

{@code
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   String model = "model104069929";
+   *   String mimeType = "mimeType-1392120434";
+   *   DetectLanguageResponse response =
+   *       translationServiceClient.detectLanguage(parent, model, mimeType);
+   * }
+   * }
+ * + * @param parent Required. Project or location to make a call. Must refer to a caller's project. + *

Format: `projects/{project-number-or-id}/locations/{location-id}` or + * `projects/{project-number-or-id}`. + *

For global calls, use `projects/{project-number-or-id}/locations/global` or + * `projects/{project-number-or-id}`. + *

Only models within the same region (has same location-id) can be used. Otherwise an + * INVALID_ARGUMENT (400) error is returned. + * @param model Optional. The language detection model to be used. + *

Format: + * `projects/{project-number-or-id}/locations/{location-id}/models/language-detection/{model-id}` + *

Only one language detection model is currently supported: + * `projects/{project-number-or-id}/locations/{location-id}/models/language-detection/default`. + *

If not specified, the default model is used. + * @param mimeType Optional. The format of the source text, for example, "text/html", + * "text/plain". If left blank, the MIME type defaults to "text/html". + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DetectLanguageResponse detectLanguage(String parent, String model, String mimeType) { + DetectLanguageRequest request = + DetectLanguageRequest.newBuilder() + .setParent(parent) + .setModel(model) + .setMimeType(mimeType) + .build(); + return detectLanguage(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Detects the language of text within a request. + * + *

Sample code: + * + *

{@code
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   DetectLanguageRequest request =
+   *       DetectLanguageRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setModel("model104069929")
+   *           .setMimeType("mimeType-1392120434")
+   *           .putAllLabels(new HashMap())
+   *           .build();
+   *   DetectLanguageResponse response = translationServiceClient.detectLanguage(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DetectLanguageResponse detectLanguage(DetectLanguageRequest request) { + return detectLanguageCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Detects the language of text within a request. + * + *

Sample code: + * + *

{@code
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   DetectLanguageRequest request =
+   *       DetectLanguageRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setModel("model104069929")
+   *           .setMimeType("mimeType-1392120434")
+   *           .putAllLabels(new HashMap())
+   *           .build();
+   *   ApiFuture future =
+   *       translationServiceClient.detectLanguageCallable().futureCall(request);
+   *   // Do something.
+   *   DetectLanguageResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + detectLanguageCallable() { + return stub.detectLanguageCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns a list of supported languages for translation. + * + *

Sample code: + * + *

{@code
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   String displayLanguageCode = "displayLanguageCode-1457478841";
+   *   String model = "model104069929";
+   *   SupportedLanguages response =
+   *       translationServiceClient.getSupportedLanguages(parent, displayLanguageCode, model);
+   * }
+   * }
+ * + * @param parent Required. Project or location to make a call. Must refer to a caller's project. + *

Format: `projects/{project-number-or-id}` or + * `projects/{project-number-or-id}/locations/{location-id}`. + *

For global calls, use `projects/{project-number-or-id}/locations/global` or + * `projects/{project-number-or-id}`. + *

Non-global location is required for AutoML models. + *

Only models within the same region (have same location-id) can be used, otherwise an + * INVALID_ARGUMENT (400) error is returned. + * @param displayLanguageCode Optional. The language to use to return localized, human readable + * names of supported languages. If missing, then display names are not returned in a + * response. + * @param model Optional. Get supported languages of this model. + *

The format depends on model type: + *

- AutoML Translation models: + * `projects/{project-number-or-id}/locations/{location-id}/models/{model-id}` + *

- General (built-in) models: + * `projects/{project-number-or-id}/locations/{location-id}/models/general/nmt`, + *

Returns languages supported by the specified model. If missing, we get supported + * languages of Google general NMT model. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SupportedLanguages getSupportedLanguages( + LocationName parent, String displayLanguageCode, String model) { + GetSupportedLanguagesRequest request = + GetSupportedLanguagesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setDisplayLanguageCode(displayLanguageCode) + .setModel(model) + .build(); + return getSupportedLanguages(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns a list of supported languages for translation. + * + *

Sample code: + * + *

{@code
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   String displayLanguageCode = "displayLanguageCode-1457478841";
+   *   String model = "model104069929";
+   *   SupportedLanguages response =
+   *       translationServiceClient.getSupportedLanguages(parent, displayLanguageCode, model);
+   * }
+   * }
+ * + * @param parent Required. Project or location to make a call. Must refer to a caller's project. + *

Format: `projects/{project-number-or-id}` or + * `projects/{project-number-or-id}/locations/{location-id}`. + *

For global calls, use `projects/{project-number-or-id}/locations/global` or + * `projects/{project-number-or-id}`. + *

Non-global location is required for AutoML models. + *

Only models within the same region (have same location-id) can be used, otherwise an + * INVALID_ARGUMENT (400) error is returned. + * @param displayLanguageCode Optional. The language to use to return localized, human readable + * names of supported languages. If missing, then display names are not returned in a + * response. + * @param model Optional. Get supported languages of this model. + *

The format depends on model type: + *

- AutoML Translation models: + * `projects/{project-number-or-id}/locations/{location-id}/models/{model-id}` + *

- General (built-in) models: + * `projects/{project-number-or-id}/locations/{location-id}/models/general/nmt`, + *

Returns languages supported by the specified model. If missing, we get supported + * languages of Google general NMT model. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SupportedLanguages getSupportedLanguages( + String parent, String displayLanguageCode, String model) { + GetSupportedLanguagesRequest request = + GetSupportedLanguagesRequest.newBuilder() + .setParent(parent) + .setDisplayLanguageCode(displayLanguageCode) + .setModel(model) + .build(); + return getSupportedLanguages(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns a list of supported languages for translation. + * + *

Sample code: + * + *

{@code
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   GetSupportedLanguagesRequest request =
+   *       GetSupportedLanguagesRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setDisplayLanguageCode("displayLanguageCode-1457478841")
+   *           .setModel("model104069929")
+   *           .build();
+   *   SupportedLanguages response = translationServiceClient.getSupportedLanguages(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SupportedLanguages getSupportedLanguages(GetSupportedLanguagesRequest request) { + return getSupportedLanguagesCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns a list of supported languages for translation. + * + *

Sample code: + * + *

{@code
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   GetSupportedLanguagesRequest request =
+   *       GetSupportedLanguagesRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setDisplayLanguageCode("displayLanguageCode-1457478841")
+   *           .setModel("model104069929")
+   *           .build();
+   *   ApiFuture future =
+   *       translationServiceClient.getSupportedLanguagesCallable().futureCall(request);
+   *   // Do something.
+   *   SupportedLanguages response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + getSupportedLanguagesCallable() { + return stub.getSupportedLanguagesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Translates documents in synchronous mode. + * + *

Sample code: + * + *

{@code
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   TranslateDocumentRequest request =
+   *       TranslateDocumentRequest.newBuilder()
+   *           .setParent("parent-995424086")
+   *           .setSourceLanguageCode("sourceLanguageCode1645917472")
+   *           .setTargetLanguageCode("targetLanguageCode-106414698")
+   *           .setDocumentInputConfig(DocumentInputConfig.newBuilder().build())
+   *           .setDocumentOutputConfig(DocumentOutputConfig.newBuilder().build())
+   *           .setModel("model104069929")
+   *           .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build())
+   *           .putAllLabels(new HashMap())
+   *           .build();
+   *   TranslateDocumentResponse response = translationServiceClient.translateDocument(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final TranslateDocumentResponse translateDocument(TranslateDocumentRequest request) { + return translateDocumentCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Translates documents in synchronous mode. + * + *

Sample code: + * + *

{@code
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   TranslateDocumentRequest request =
+   *       TranslateDocumentRequest.newBuilder()
+   *           .setParent("parent-995424086")
+   *           .setSourceLanguageCode("sourceLanguageCode1645917472")
+   *           .setTargetLanguageCode("targetLanguageCode-106414698")
+   *           .setDocumentInputConfig(DocumentInputConfig.newBuilder().build())
+   *           .setDocumentOutputConfig(DocumentOutputConfig.newBuilder().build())
+   *           .setModel("model104069929")
+   *           .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build())
+   *           .putAllLabels(new HashMap())
+   *           .build();
+   *   ApiFuture future =
+   *       translationServiceClient.translateDocumentCallable().futureCall(request);
+   *   // Do something.
+   *   TranslateDocumentResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + translateDocumentCallable() { + return stub.translateDocumentCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Translates a large volume of text in asynchronous batch mode. This function provides real-time + * output as the inputs are being processed. If caller cancels a request, the partial results (for + * an input file, it's all or nothing) may still be available on the specified output location. + * + *

This call returns immediately and you can use google.longrunning.Operation.name to poll the + * status of the call. + * + *

Sample code: + * + *

{@code
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   BatchTranslateTextRequest request =
+   *       BatchTranslateTextRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setSourceLanguageCode("sourceLanguageCode1645917472")
+   *           .addAllTargetLanguageCodes(new ArrayList())
+   *           .putAllModels(new HashMap())
+   *           .addAllInputConfigs(new ArrayList())
+   *           .setOutputConfig(OutputConfig.newBuilder().build())
+   *           .putAllGlossaries(new HashMap())
+   *           .putAllLabels(new HashMap())
+   *           .build();
+   *   BatchTranslateResponse response =
+   *       translationServiceClient.batchTranslateTextAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + batchTranslateTextAsync(BatchTranslateTextRequest request) { + return batchTranslateTextOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Translates a large volume of text in asynchronous batch mode. This function provides real-time + * output as the inputs are being processed. If caller cancels a request, the partial results (for + * an input file, it's all or nothing) may still be available on the specified output location. + * + *

This call returns immediately and you can use google.longrunning.Operation.name to poll the + * status of the call. + * + *

Sample code: + * + *

{@code
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   BatchTranslateTextRequest request =
+   *       BatchTranslateTextRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setSourceLanguageCode("sourceLanguageCode1645917472")
+   *           .addAllTargetLanguageCodes(new ArrayList())
+   *           .putAllModels(new HashMap())
+   *           .addAllInputConfigs(new ArrayList())
+   *           .setOutputConfig(OutputConfig.newBuilder().build())
+   *           .putAllGlossaries(new HashMap())
+   *           .putAllLabels(new HashMap())
+   *           .build();
+   *   OperationFuture future =
+   *       translationServiceClient.batchTranslateTextOperationCallable().futureCall(request);
+   *   // Do something.
+   *   BatchTranslateResponse response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> + batchTranslateTextOperationCallable() { + return stub.batchTranslateTextOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Translates a large volume of text in asynchronous batch mode. This function provides real-time + * output as the inputs are being processed. If caller cancels a request, the partial results (for + * an input file, it's all or nothing) may still be available on the specified output location. + * + *

This call returns immediately and you can use google.longrunning.Operation.name to poll the + * status of the call. + * + *

Sample code: + * + *

{@code
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   BatchTranslateTextRequest request =
+   *       BatchTranslateTextRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setSourceLanguageCode("sourceLanguageCode1645917472")
+   *           .addAllTargetLanguageCodes(new ArrayList())
+   *           .putAllModels(new HashMap())
+   *           .addAllInputConfigs(new ArrayList())
+   *           .setOutputConfig(OutputConfig.newBuilder().build())
+   *           .putAllGlossaries(new HashMap())
+   *           .putAllLabels(new HashMap())
+   *           .build();
+   *   ApiFuture future =
+   *       translationServiceClient.batchTranslateTextCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable batchTranslateTextCallable() { + return stub.batchTranslateTextCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Translates a large volume of documents in asynchronous batch mode. This function provides + * real-time output as the inputs are being processed. If caller cancels a request, the partial + * results (for an input file, it's all or nothing) may still be available on the specified output + * location. + * + *

This call returns immediately and you can use google.longrunning.Operation.name to poll the + * status of the call. + * + *

Sample code: + * + *

{@code
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   String sourceLanguageCode = "sourceLanguageCode1645917472";
+   *   List targetLanguageCodes = new ArrayList<>();
+   *   List inputConfigs = new ArrayList<>();
+   *   BatchDocumentOutputConfig outputConfig = BatchDocumentOutputConfig.newBuilder().build();
+   *   BatchTranslateDocumentResponse response =
+   *       translationServiceClient
+   *           .batchTranslateDocumentAsync(
+   *               parent, sourceLanguageCode, targetLanguageCodes, inputConfigs, outputConfig)
+   *           .get();
+   * }
+   * }
+ * + * @param parent Required. Location to make a regional call. + *

Format: `projects/{project-number-or-id}/locations/{location-id}`. + *

The `global` location is not supported for batch translation. + *

Only AutoML Translation models or glossaries within the same region (have the same + * location-id) can be used, otherwise an INVALID_ARGUMENT (400) error is returned. + * @param sourceLanguageCode Required. The BCP-47 language code of the input document if known, + * for example, "en-US" or "sr-Latn". Supported language codes are listed in Language Support + * (https://cloud.google.com/translate/docs/languages). + * @param targetLanguageCodes Required. The BCP-47 language code to use for translation of the + * input document. Specify up to 10 language codes here. + * @param inputConfigs Required. Input configurations. The total number of files matched should be + * <= 100. The total content size to translate should be <= 100M Unicode codepoints. The + * files must use UTF-8 encoding. + * @param outputConfig Required. Output configuration. If 2 input configs match to the same file + * (that is, same input path), we don't generate output for duplicate inputs. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + batchTranslateDocumentAsync( + LocationName parent, + String sourceLanguageCode, + List targetLanguageCodes, + List inputConfigs, + BatchDocumentOutputConfig outputConfig) { + BatchTranslateDocumentRequest request = + BatchTranslateDocumentRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setSourceLanguageCode(sourceLanguageCode) + .addAllTargetLanguageCodes(targetLanguageCodes) + .addAllInputConfigs(inputConfigs) + .setOutputConfig(outputConfig) + .build(); + return batchTranslateDocumentAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Translates a large volume of documents in asynchronous batch mode. This function provides + * real-time output as the inputs are being processed. If caller cancels a request, the partial + * results (for an input file, it's all or nothing) may still be available on the specified output + * location. + * + *

This call returns immediately and you can use google.longrunning.Operation.name to poll the + * status of the call. + * + *

Sample code: + * + *

{@code
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   String sourceLanguageCode = "sourceLanguageCode1645917472";
+   *   List targetLanguageCodes = new ArrayList<>();
+   *   List inputConfigs = new ArrayList<>();
+   *   BatchDocumentOutputConfig outputConfig = BatchDocumentOutputConfig.newBuilder().build();
+   *   BatchTranslateDocumentResponse response =
+   *       translationServiceClient
+   *           .batchTranslateDocumentAsync(
+   *               parent, sourceLanguageCode, targetLanguageCodes, inputConfigs, outputConfig)
+   *           .get();
+   * }
+   * }
+ * + * @param parent Required. Location to make a regional call. + *

Format: `projects/{project-number-or-id}/locations/{location-id}`. + *

The `global` location is not supported for batch translation. + *

Only AutoML Translation models or glossaries within the same region (have the same + * location-id) can be used, otherwise an INVALID_ARGUMENT (400) error is returned. + * @param sourceLanguageCode Required. The BCP-47 language code of the input document if known, + * for example, "en-US" or "sr-Latn". Supported language codes are listed in Language Support + * (https://cloud.google.com/translate/docs/languages). + * @param targetLanguageCodes Required. The BCP-47 language code to use for translation of the + * input document. Specify up to 10 language codes here. + * @param inputConfigs Required. Input configurations. The total number of files matched should be + * <= 100. The total content size to translate should be <= 100M Unicode codepoints. The + * files must use UTF-8 encoding. + * @param outputConfig Required. Output configuration. If 2 input configs match to the same file + * (that is, same input path), we don't generate output for duplicate inputs. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + batchTranslateDocumentAsync( + String parent, + String sourceLanguageCode, + List targetLanguageCodes, + List inputConfigs, + BatchDocumentOutputConfig outputConfig) { + BatchTranslateDocumentRequest request = + BatchTranslateDocumentRequest.newBuilder() + .setParent(parent) + .setSourceLanguageCode(sourceLanguageCode) + .addAllTargetLanguageCodes(targetLanguageCodes) + .addAllInputConfigs(inputConfigs) + .setOutputConfig(outputConfig) + .build(); + return batchTranslateDocumentAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Translates a large volume of documents in asynchronous batch mode. This function provides + * real-time output as the inputs are being processed. If caller cancels a request, the partial + * results (for an input file, it's all or nothing) may still be available on the specified output + * location. + * + *

This call returns immediately and you can use google.longrunning.Operation.name to poll the + * status of the call. + * + *

Sample code: + * + *

{@code
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   BatchTranslateDocumentRequest request =
+   *       BatchTranslateDocumentRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setSourceLanguageCode("sourceLanguageCode1645917472")
+   *           .addAllTargetLanguageCodes(new ArrayList())
+   *           .addAllInputConfigs(new ArrayList())
+   *           .setOutputConfig(BatchDocumentOutputConfig.newBuilder().build())
+   *           .putAllModels(new HashMap())
+   *           .putAllGlossaries(new HashMap())
+   *           .putAllFormatConversions(new HashMap())
+   *           .build();
+   *   BatchTranslateDocumentResponse response =
+   *       translationServiceClient.batchTranslateDocumentAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + batchTranslateDocumentAsync(BatchTranslateDocumentRequest request) { + return batchTranslateDocumentOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Translates a large volume of documents in asynchronous batch mode. This function provides + * real-time output as the inputs are being processed. If caller cancels a request, the partial + * results (for an input file, it's all or nothing) may still be available on the specified output + * location. + * + *

This call returns immediately and you can use google.longrunning.Operation.name to poll the + * status of the call. + * + *

Sample code: + * + *

{@code
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   BatchTranslateDocumentRequest request =
+   *       BatchTranslateDocumentRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setSourceLanguageCode("sourceLanguageCode1645917472")
+   *           .addAllTargetLanguageCodes(new ArrayList())
+   *           .addAllInputConfigs(new ArrayList())
+   *           .setOutputConfig(BatchDocumentOutputConfig.newBuilder().build())
+   *           .putAllModels(new HashMap())
+   *           .putAllGlossaries(new HashMap())
+   *           .putAllFormatConversions(new HashMap())
+   *           .build();
+   *   OperationFuture future =
+   *       translationServiceClient.batchTranslateDocumentOperationCallable().futureCall(request);
+   *   // Do something.
+   *   BatchTranslateDocumentResponse response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + BatchTranslateDocumentRequest, BatchTranslateDocumentResponse, + BatchTranslateDocumentMetadata> + batchTranslateDocumentOperationCallable() { + return stub.batchTranslateDocumentOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Translates a large volume of documents in asynchronous batch mode. This function provides + * real-time output as the inputs are being processed. If caller cancels a request, the partial + * results (for an input file, it's all or nothing) may still be available on the specified output + * location. + * + *

This call returns immediately and you can use google.longrunning.Operation.name to poll the + * status of the call. + * + *

Sample code: + * + *

{@code
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   BatchTranslateDocumentRequest request =
+   *       BatchTranslateDocumentRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setSourceLanguageCode("sourceLanguageCode1645917472")
+   *           .addAllTargetLanguageCodes(new ArrayList())
+   *           .addAllInputConfigs(new ArrayList())
+   *           .setOutputConfig(BatchDocumentOutputConfig.newBuilder().build())
+   *           .putAllModels(new HashMap())
+   *           .putAllGlossaries(new HashMap())
+   *           .putAllFormatConversions(new HashMap())
+   *           .build();
+   *   ApiFuture future =
+   *       translationServiceClient.batchTranslateDocumentCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + batchTranslateDocumentCallable() { + return stub.batchTranslateDocumentCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a glossary and returns the long-running operation. Returns NOT_FOUND, if the project + * doesn't exist. + * + *

Sample code: + * + *

{@code
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   Glossary glossary = Glossary.newBuilder().build();
+   *   Glossary response = translationServiceClient.createGlossaryAsync(parent, glossary).get();
+   * }
+   * }
+ * + * @param parent Required. The project name. + * @param glossary Required. The glossary to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createGlossaryAsync( + LocationName parent, Glossary glossary) { + CreateGlossaryRequest request = + CreateGlossaryRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setGlossary(glossary) + .build(); + return createGlossaryAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a glossary and returns the long-running operation. Returns NOT_FOUND, if the project + * doesn't exist. + * + *

Sample code: + * + *

{@code
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   Glossary glossary = Glossary.newBuilder().build();
+   *   Glossary response = translationServiceClient.createGlossaryAsync(parent, glossary).get();
+   * }
+   * }
+ * + * @param parent Required. The project name. + * @param glossary Required. The glossary to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createGlossaryAsync( + String parent, Glossary glossary) { + CreateGlossaryRequest request = + CreateGlossaryRequest.newBuilder().setParent(parent).setGlossary(glossary).build(); + return createGlossaryAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a glossary and returns the long-running operation. Returns NOT_FOUND, if the project + * doesn't exist. + * + *

Sample code: + * + *

{@code
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   CreateGlossaryRequest request =
+   *       CreateGlossaryRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setGlossary(Glossary.newBuilder().build())
+   *           .build();
+   *   Glossary response = translationServiceClient.createGlossaryAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createGlossaryAsync( + CreateGlossaryRequest request) { + return createGlossaryOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a glossary and returns the long-running operation. Returns NOT_FOUND, if the project + * doesn't exist. + * + *

Sample code: + * + *

{@code
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   CreateGlossaryRequest request =
+   *       CreateGlossaryRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setGlossary(Glossary.newBuilder().build())
+   *           .build();
+   *   OperationFuture future =
+   *       translationServiceClient.createGlossaryOperationCallable().futureCall(request);
+   *   // Do something.
+   *   Glossary response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + createGlossaryOperationCallable() { + return stub.createGlossaryOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a glossary and returns the long-running operation. Returns NOT_FOUND, if the project + * doesn't exist. + * + *

Sample code: + * + *

{@code
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   CreateGlossaryRequest request =
+   *       CreateGlossaryRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setGlossary(Glossary.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       translationServiceClient.createGlossaryCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable createGlossaryCallable() { + return stub.createGlossaryCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't exist. + * + *

Sample code: + * + *

{@code
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   String filter = "filter-1274492040";
+   *   for (Glossary element :
+   *       translationServiceClient.listGlossaries(parent, filter).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The name of the project from which to list all of the glossaries. + * @param filter Optional. Filter specifying constraints of a list operation. Specify the + * constraint by the format of "key=value", where key must be "src" or "tgt", and the value + * must be a valid language code. For multiple restrictions, concatenate them by "AND" + * (uppercase only), such as: "src=en-US AND tgt=zh-CN". Notice that the exact match is used + * here, which means using 'en-US' and 'en' can lead to different results, which depends on + * the language code you used when you create the glossary. For the unidirectional glossaries, + * the "src" and "tgt" add restrictions on the source and target language code separately. For + * the equivalent term set glossaries, the "src" and/or "tgt" add restrictions on the term + * set. For example: "src=en-US AND tgt=zh-CN" will only pick the unidirectional glossaries + * which exactly match the source language code as "en-US" and the target language code + * "zh-CN", but all equivalent term set glossaries which contain "en-US" and "zh-CN" in their + * language set will be picked. If missing, no filtering is performed. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListGlossariesPagedResponse listGlossaries(LocationName parent, String filter) { + ListGlossariesRequest request = + ListGlossariesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setFilter(filter) + .build(); + return listGlossaries(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't exist. + * + *

Sample code: + * + *

{@code
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   String filter = "filter-1274492040";
+   *   for (Glossary element :
+   *       translationServiceClient.listGlossaries(parent, filter).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The name of the project from which to list all of the glossaries. + * @param filter Optional. Filter specifying constraints of a list operation. Specify the + * constraint by the format of "key=value", where key must be "src" or "tgt", and the value + * must be a valid language code. For multiple restrictions, concatenate them by "AND" + * (uppercase only), such as: "src=en-US AND tgt=zh-CN". Notice that the exact match is used + * here, which means using 'en-US' and 'en' can lead to different results, which depends on + * the language code you used when you create the glossary. For the unidirectional glossaries, + * the "src" and "tgt" add restrictions on the source and target language code separately. For + * the equivalent term set glossaries, the "src" and/or "tgt" add restrictions on the term + * set. For example: "src=en-US AND tgt=zh-CN" will only pick the unidirectional glossaries + * which exactly match the source language code as "en-US" and the target language code + * "zh-CN", but all equivalent term set glossaries which contain "en-US" and "zh-CN" in their + * language set will be picked. If missing, no filtering is performed. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListGlossariesPagedResponse listGlossaries(String parent, String filter) { + ListGlossariesRequest request = + ListGlossariesRequest.newBuilder().setParent(parent).setFilter(filter).build(); + return listGlossaries(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't exist. + * + *

Sample code: + * + *

{@code
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   ListGlossariesRequest request =
+   *       ListGlossariesRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .build();
+   *   for (Glossary element : translationServiceClient.listGlossaries(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListGlossariesPagedResponse listGlossaries(ListGlossariesRequest request) { + return listGlossariesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't exist. + * + *

Sample code: + * + *

{@code
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   ListGlossariesRequest request =
+   *       ListGlossariesRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .build();
+   *   ApiFuture future =
+   *       translationServiceClient.listGlossariesPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Glossary element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listGlossariesPagedCallable() { + return stub.listGlossariesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't exist. + * + *

Sample code: + * + *

{@code
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   ListGlossariesRequest request =
+   *       ListGlossariesRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .build();
+   *   while (true) {
+   *     ListGlossariesResponse response =
+   *         translationServiceClient.listGlossariesCallable().call(request);
+   *     for (Glossary element : response.getResponsesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listGlossariesCallable() { + return stub.listGlossariesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't exist. + * + *

Sample code: + * + *

{@code
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   GlossaryName name = GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]");
+   *   Glossary response = translationServiceClient.getGlossary(name);
+   * }
+   * }
+ * + * @param name Required. The name of the glossary to retrieve. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Glossary getGlossary(GlossaryName name) { + GetGlossaryRequest request = + GetGlossaryRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getGlossary(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't exist. + * + *

Sample code: + * + *

{@code
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   String name = GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString();
+   *   Glossary response = translationServiceClient.getGlossary(name);
+   * }
+   * }
+ * + * @param name Required. The name of the glossary to retrieve. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Glossary getGlossary(String name) { + GetGlossaryRequest request = GetGlossaryRequest.newBuilder().setName(name).build(); + return getGlossary(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't exist. + * + *

Sample code: + * + *

{@code
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   GetGlossaryRequest request =
+   *       GetGlossaryRequest.newBuilder()
+   *           .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString())
+   *           .build();
+   *   Glossary response = translationServiceClient.getGlossary(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Glossary getGlossary(GetGlossaryRequest request) { + return getGlossaryCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't exist. + * + *

Sample code: + * + *

{@code
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   GetGlossaryRequest request =
+   *       GetGlossaryRequest.newBuilder()
+   *           .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       translationServiceClient.getGlossaryCallable().futureCall(request);
+   *   // Do something.
+   *   Glossary response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getGlossaryCallable() { + return stub.getGlossaryCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a glossary, or cancels glossary construction if the glossary isn't created yet. Returns + * NOT_FOUND, if the glossary doesn't exist. + * + *

Sample code: + * + *

{@code
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   GlossaryName name = GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]");
+   *   DeleteGlossaryResponse response = translationServiceClient.deleteGlossaryAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The name of the glossary to delete. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteGlossaryAsync( + GlossaryName name) { + DeleteGlossaryRequest request = + DeleteGlossaryRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return deleteGlossaryAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a glossary, or cancels glossary construction if the glossary isn't created yet. Returns + * NOT_FOUND, if the glossary doesn't exist. + * + *

Sample code: + * + *

{@code
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   String name = GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString();
+   *   DeleteGlossaryResponse response = translationServiceClient.deleteGlossaryAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The name of the glossary to delete. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteGlossaryAsync( + String name) { + DeleteGlossaryRequest request = DeleteGlossaryRequest.newBuilder().setName(name).build(); + return deleteGlossaryAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a glossary, or cancels glossary construction if the glossary isn't created yet. Returns + * NOT_FOUND, if the glossary doesn't exist. + * + *

Sample code: + * + *

{@code
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   DeleteGlossaryRequest request =
+   *       DeleteGlossaryRequest.newBuilder()
+   *           .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString())
+   *           .build();
+   *   DeleteGlossaryResponse response = translationServiceClient.deleteGlossaryAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteGlossaryAsync( + DeleteGlossaryRequest request) { + return deleteGlossaryOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a glossary, or cancels glossary construction if the glossary isn't created yet. Returns + * NOT_FOUND, if the glossary doesn't exist. + * + *

Sample code: + * + *

{@code
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   DeleteGlossaryRequest request =
+   *       DeleteGlossaryRequest.newBuilder()
+   *           .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString())
+   *           .build();
+   *   OperationFuture future =
+   *       translationServiceClient.deleteGlossaryOperationCallable().futureCall(request);
+   *   // Do something.
+   *   DeleteGlossaryResponse response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + DeleteGlossaryRequest, DeleteGlossaryResponse, DeleteGlossaryMetadata> + deleteGlossaryOperationCallable() { + return stub.deleteGlossaryOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a glossary, or cancels glossary construction if the glossary isn't created yet. Returns + * NOT_FOUND, if the glossary doesn't exist. + * + *

Sample code: + * + *

{@code
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   DeleteGlossaryRequest request =
+   *       DeleteGlossaryRequest.newBuilder()
+   *           .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       translationServiceClient.deleteGlossaryCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deleteGlossaryCallable() { + return stub.deleteGlossaryCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class ListGlossariesPagedResponse + extends AbstractPagedListResponse< + ListGlossariesRequest, ListGlossariesResponse, Glossary, ListGlossariesPage, + ListGlossariesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListGlossariesPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListGlossariesPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListGlossariesPagedResponse(ListGlossariesPage page) { + super(page, ListGlossariesFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListGlossariesPage + extends AbstractPage< + ListGlossariesRequest, ListGlossariesResponse, Glossary, ListGlossariesPage> { + + private ListGlossariesPage( + PageContext context, + ListGlossariesResponse response) { + super(context, response); + } + + private static ListGlossariesPage createEmptyPage() { + return new ListGlossariesPage(null, null); + } + + @Override + protected ListGlossariesPage createPage( + PageContext context, + ListGlossariesResponse response) { + return new ListGlossariesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListGlossariesFixedSizeCollection + extends AbstractFixedSizeCollection< + ListGlossariesRequest, ListGlossariesResponse, Glossary, ListGlossariesPage, + ListGlossariesFixedSizeCollection> { + + private ListGlossariesFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListGlossariesFixedSizeCollection createEmptyCollection() { + return new ListGlossariesFixedSizeCollection(null, 0); + } + + @Override + protected ListGlossariesFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListGlossariesFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/owl-bot-staging/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceSettings.java b/owl-bot-staging/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceSettings.java new file mode 100644 index 00000000..29a4902d --- /dev/null +++ b/owl-bot-staging/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceSettings.java @@ -0,0 +1,350 @@ +/* + * Copyright 2021 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.cloud.translate.v3beta1; + +import static com.google.cloud.translate.v3beta1.TranslationServiceClient.ListGlossariesPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +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.OperationCallSettings; +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.translate.v3beta1.stub.TranslationServiceStubSettings; +import com.google.longrunning.Operation; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link TranslationServiceClient}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (translate.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

For example, to set the total timeout of translateText to 30 seconds: + * + *

{@code
+ * TranslationServiceSettings.Builder translationServiceSettingsBuilder =
+ *     TranslationServiceSettings.newBuilder();
+ * translationServiceSettingsBuilder
+ *     .translateTextSettings()
+ *     .setRetrySettings(
+ *         translationServiceSettingsBuilder
+ *             .translateTextSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setTotalTimeout(Duration.ofSeconds(30))
+ *             .build());
+ * TranslationServiceSettings translationServiceSettings =
+ *     translationServiceSettingsBuilder.build();
+ * }
+ */ +@BetaApi +@Generated("by gapic-generator-java") +public class TranslationServiceSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to translateText. */ + public UnaryCallSettings translateTextSettings() { + return ((TranslationServiceStubSettings) getStubSettings()).translateTextSettings(); + } + + /** Returns the object with the settings used for calls to detectLanguage. */ + public UnaryCallSettings detectLanguageSettings() { + return ((TranslationServiceStubSettings) getStubSettings()).detectLanguageSettings(); + } + + /** Returns the object with the settings used for calls to getSupportedLanguages. */ + public UnaryCallSettings + getSupportedLanguagesSettings() { + return ((TranslationServiceStubSettings) getStubSettings()).getSupportedLanguagesSettings(); + } + + /** Returns the object with the settings used for calls to translateDocument. */ + public UnaryCallSettings + translateDocumentSettings() { + return ((TranslationServiceStubSettings) getStubSettings()).translateDocumentSettings(); + } + + /** Returns the object with the settings used for calls to batchTranslateText. */ + public UnaryCallSettings batchTranslateTextSettings() { + return ((TranslationServiceStubSettings) getStubSettings()).batchTranslateTextSettings(); + } + + /** Returns the object with the settings used for calls to batchTranslateText. */ + public OperationCallSettings< + BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> + batchTranslateTextOperationSettings() { + return ((TranslationServiceStubSettings) getStubSettings()) + .batchTranslateTextOperationSettings(); + } + + /** Returns the object with the settings used for calls to batchTranslateDocument. */ + public UnaryCallSettings + batchTranslateDocumentSettings() { + return ((TranslationServiceStubSettings) getStubSettings()).batchTranslateDocumentSettings(); + } + + /** Returns the object with the settings used for calls to batchTranslateDocument. */ + public OperationCallSettings< + BatchTranslateDocumentRequest, BatchTranslateDocumentResponse, + BatchTranslateDocumentMetadata> + batchTranslateDocumentOperationSettings() { + return ((TranslationServiceStubSettings) getStubSettings()) + .batchTranslateDocumentOperationSettings(); + } + + /** Returns the object with the settings used for calls to createGlossary. */ + public UnaryCallSettings createGlossarySettings() { + return ((TranslationServiceStubSettings) getStubSettings()).createGlossarySettings(); + } + + /** Returns the object with the settings used for calls to createGlossary. */ + public OperationCallSettings + createGlossaryOperationSettings() { + return ((TranslationServiceStubSettings) getStubSettings()).createGlossaryOperationSettings(); + } + + /** Returns the object with the settings used for calls to listGlossaries. */ + public PagedCallSettings< + ListGlossariesRequest, ListGlossariesResponse, ListGlossariesPagedResponse> + listGlossariesSettings() { + return ((TranslationServiceStubSettings) getStubSettings()).listGlossariesSettings(); + } + + /** Returns the object with the settings used for calls to getGlossary. */ + public UnaryCallSettings getGlossarySettings() { + return ((TranslationServiceStubSettings) getStubSettings()).getGlossarySettings(); + } + + /** Returns the object with the settings used for calls to deleteGlossary. */ + public UnaryCallSettings deleteGlossarySettings() { + return ((TranslationServiceStubSettings) getStubSettings()).deleteGlossarySettings(); + } + + /** Returns the object with the settings used for calls to deleteGlossary. */ + public OperationCallSettings< + DeleteGlossaryRequest, DeleteGlossaryResponse, DeleteGlossaryMetadata> + deleteGlossaryOperationSettings() { + return ((TranslationServiceStubSettings) getStubSettings()).deleteGlossaryOperationSettings(); + } + + public static final TranslationServiceSettings create(TranslationServiceStubSettings stub) + throws IOException { + return new TranslationServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return TranslationServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return TranslationServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return TranslationServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return TranslationServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return TranslationServiceStubSettings.defaultGrpcTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return TranslationServiceStubSettings.defaultTransportChannelProvider(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return TranslationServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected TranslationServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for TranslationServiceSettings. */ + public static class Builder extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(TranslationServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(TranslationServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(TranslationServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(TranslationServiceStubSettings.newBuilder()); + } + + public TranslationServiceStubSettings.Builder getStubSettingsBuilder() { + return ((TranslationServiceStubSettings.Builder) getStubSettings()); + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to translateText. */ + public UnaryCallSettings.Builder + translateTextSettings() { + return getStubSettingsBuilder().translateTextSettings(); + } + + /** Returns the builder for the settings used for calls to detectLanguage. */ + public UnaryCallSettings.Builder + detectLanguageSettings() { + return getStubSettingsBuilder().detectLanguageSettings(); + } + + /** Returns the builder for the settings used for calls to getSupportedLanguages. */ + public UnaryCallSettings.Builder + getSupportedLanguagesSettings() { + return getStubSettingsBuilder().getSupportedLanguagesSettings(); + } + + /** Returns the builder for the settings used for calls to translateDocument. */ + public UnaryCallSettings.Builder + translateDocumentSettings() { + return getStubSettingsBuilder().translateDocumentSettings(); + } + + /** Returns the builder for the settings used for calls to batchTranslateText. */ + public UnaryCallSettings.Builder + batchTranslateTextSettings() { + return getStubSettingsBuilder().batchTranslateTextSettings(); + } + + /** Returns the builder for the settings used for calls to batchTranslateText. */ + public OperationCallSettings.Builder< + BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> + batchTranslateTextOperationSettings() { + return getStubSettingsBuilder().batchTranslateTextOperationSettings(); + } + + /** Returns the builder for the settings used for calls to batchTranslateDocument. */ + public UnaryCallSettings.Builder + batchTranslateDocumentSettings() { + return getStubSettingsBuilder().batchTranslateDocumentSettings(); + } + + /** Returns the builder for the settings used for calls to batchTranslateDocument. */ + public OperationCallSettings.Builder< + BatchTranslateDocumentRequest, BatchTranslateDocumentResponse, + BatchTranslateDocumentMetadata> + batchTranslateDocumentOperationSettings() { + return getStubSettingsBuilder().batchTranslateDocumentOperationSettings(); + } + + /** Returns the builder for the settings used for calls to createGlossary. */ + public UnaryCallSettings.Builder createGlossarySettings() { + return getStubSettingsBuilder().createGlossarySettings(); + } + + /** Returns the builder for the settings used for calls to createGlossary. */ + public OperationCallSettings.Builder + createGlossaryOperationSettings() { + return getStubSettingsBuilder().createGlossaryOperationSettings(); + } + + /** Returns the builder for the settings used for calls to listGlossaries. */ + public PagedCallSettings.Builder< + ListGlossariesRequest, ListGlossariesResponse, ListGlossariesPagedResponse> + listGlossariesSettings() { + return getStubSettingsBuilder().listGlossariesSettings(); + } + + /** Returns the builder for the settings used for calls to getGlossary. */ + public UnaryCallSettings.Builder getGlossarySettings() { + return getStubSettingsBuilder().getGlossarySettings(); + } + + /** Returns the builder for the settings used for calls to deleteGlossary. */ + public UnaryCallSettings.Builder deleteGlossarySettings() { + return getStubSettingsBuilder().deleteGlossarySettings(); + } + + /** Returns the builder for the settings used for calls to deleteGlossary. */ + public OperationCallSettings.Builder< + DeleteGlossaryRequest, DeleteGlossaryResponse, DeleteGlossaryMetadata> + deleteGlossaryOperationSettings() { + return getStubSettingsBuilder().deleteGlossaryOperationSettings(); + } + + @Override + public TranslationServiceSettings build() throws IOException { + return new TranslationServiceSettings(this); + } + } +} diff --git a/owl-bot-staging/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/gapic_metadata.json b/owl-bot-staging/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/gapic_metadata.json new file mode 100644 index 00000000..5cf5bb90 --- /dev/null +++ b/owl-bot-staging/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/gapic_metadata.json @@ -0,0 +1,48 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", + "language": "java", + "protoPackage": "google.cloud.translation.v3beta1", + "libraryPackage": "com.google.cloud.translate.v3beta1", + "services": { + "TranslationService": { + "clients": { + "grpc": { + "libraryClient": "TranslationServiceClient", + "rpcs": { + "BatchTranslateDocument": { + "methods": ["batchTranslateDocumentAsync", "batchTranslateDocumentAsync", "batchTranslateDocumentAsync", "batchTranslateDocumentOperationCallable", "batchTranslateDocumentCallable"] + }, + "BatchTranslateText": { + "methods": ["batchTranslateTextAsync", "batchTranslateTextOperationCallable", "batchTranslateTextCallable"] + }, + "CreateGlossary": { + "methods": ["createGlossaryAsync", "createGlossaryAsync", "createGlossaryAsync", "createGlossaryOperationCallable", "createGlossaryCallable"] + }, + "DeleteGlossary": { + "methods": ["deleteGlossaryAsync", "deleteGlossaryAsync", "deleteGlossaryAsync", "deleteGlossaryOperationCallable", "deleteGlossaryCallable"] + }, + "DetectLanguage": { + "methods": ["detectLanguage", "detectLanguage", "detectLanguage", "detectLanguageCallable"] + }, + "GetGlossary": { + "methods": ["getGlossary", "getGlossary", "getGlossary", "getGlossaryCallable"] + }, + "GetSupportedLanguages": { + "methods": ["getSupportedLanguages", "getSupportedLanguages", "getSupportedLanguages", "getSupportedLanguagesCallable"] + }, + "ListGlossaries": { + "methods": ["listGlossaries", "listGlossaries", "listGlossaries", "listGlossariesPagedCallable", "listGlossariesCallable"] + }, + "TranslateDocument": { + "methods": ["translateDocument", "translateDocumentCallable"] + }, + "TranslateText": { + "methods": ["translateText", "translateTextCallable"] + } + } + } + } + } + } +} \ No newline at end of file diff --git a/owl-bot-staging/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/package-info.java b/owl-bot-staging/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/package-info.java new file mode 100644 index 00000000..0ad0dca6 --- /dev/null +++ b/owl-bot-staging/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/package-info.java @@ -0,0 +1,48 @@ +/* + * Copyright 2021 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. + */ + +/** + * A client to Cloud Translation API + * + *

The interfaces provided are listed below, along with usage samples. + * + *

======================= TranslationServiceClient ======================= + * + *

Service Description: Provides natural language translation operations. + * + *

Sample for TranslationServiceClient: + * + *

{@code
+ * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+ *   TranslateTextRequest request =
+ *       TranslateTextRequest.newBuilder()
+ *           .addAllContents(new ArrayList())
+ *           .setMimeType("mimeType-1392120434")
+ *           .setSourceLanguageCode("sourceLanguageCode1645917472")
+ *           .setTargetLanguageCode("targetLanguageCode-106414698")
+ *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ *           .setModel("model104069929")
+ *           .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build())
+ *           .putAllLabels(new HashMap())
+ *           .build();
+ *   TranslateTextResponse response = translationServiceClient.translateText(request);
+ * }
+ * }
+ */ +@Generated("by gapic-generator-java") +package com.google.cloud.translate.v3beta1; + +import javax.annotation.Generated; diff --git a/owl-bot-staging/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/GrpcTranslationServiceCallableFactory.java b/owl-bot-staging/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/GrpcTranslationServiceCallableFactory.java new file mode 100644 index 00000000..6aabfef2 --- /dev/null +++ b/owl-bot-staging/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/GrpcTranslationServiceCallableFactory.java @@ -0,0 +1,115 @@ +/* + * Copyright 2021 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.cloud.translate.v3beta1.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the TranslationService service API. + * + *

This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcTranslationServiceCallableFactory implements GrpcStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, callSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } +} diff --git a/owl-bot-staging/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/GrpcTranslationServiceStub.java b/owl-bot-staging/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/GrpcTranslationServiceStub.java new file mode 100644 index 00000000..3295b190 --- /dev/null +++ b/owl-bot-staging/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/GrpcTranslationServiceStub.java @@ -0,0 +1,554 @@ +/* + * Copyright 2021 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.cloud.translate.v3beta1.stub; + +import static com.google.cloud.translate.v3beta1.TranslationServiceClient.ListGlossariesPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata; +import com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest; +import com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse; +import com.google.cloud.translate.v3beta1.BatchTranslateMetadata; +import com.google.cloud.translate.v3beta1.BatchTranslateResponse; +import com.google.cloud.translate.v3beta1.BatchTranslateTextRequest; +import com.google.cloud.translate.v3beta1.CreateGlossaryMetadata; +import com.google.cloud.translate.v3beta1.CreateGlossaryRequest; +import com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata; +import com.google.cloud.translate.v3beta1.DeleteGlossaryRequest; +import com.google.cloud.translate.v3beta1.DeleteGlossaryResponse; +import com.google.cloud.translate.v3beta1.DetectLanguageRequest; +import com.google.cloud.translate.v3beta1.DetectLanguageResponse; +import com.google.cloud.translate.v3beta1.GetGlossaryRequest; +import com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest; +import com.google.cloud.translate.v3beta1.Glossary; +import com.google.cloud.translate.v3beta1.ListGlossariesRequest; +import com.google.cloud.translate.v3beta1.ListGlossariesResponse; +import com.google.cloud.translate.v3beta1.SupportedLanguages; +import com.google.cloud.translate.v3beta1.TranslateDocumentRequest; +import com.google.cloud.translate.v3beta1.TranslateDocumentResponse; +import com.google.cloud.translate.v3beta1.TranslateTextRequest; +import com.google.cloud.translate.v3beta1.TranslateTextResponse; +import com.google.common.collect.ImmutableMap; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.GrpcOperationsStub; +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; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the TranslationService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcTranslationServiceStub extends TranslationServiceStub { + private static final MethodDescriptor + translateTextMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.translation.v3beta1.TranslationService/TranslateText") + .setRequestMarshaller( + ProtoUtils.marshaller(TranslateTextRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(TranslateTextResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + detectLanguageMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.translation.v3beta1.TranslationService/DetectLanguage") + .setRequestMarshaller( + ProtoUtils.marshaller(DetectLanguageRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(DetectLanguageResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getSupportedLanguagesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.translation.v3beta1.TranslationService/GetSupportedLanguages") + .setRequestMarshaller( + ProtoUtils.marshaller(GetSupportedLanguagesRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(SupportedLanguages.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + translateDocumentMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.translation.v3beta1.TranslationService/TranslateDocument") + .setRequestMarshaller( + ProtoUtils.marshaller(TranslateDocumentRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(TranslateDocumentResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + batchTranslateTextMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.translation.v3beta1.TranslationService/BatchTranslateText") + .setRequestMarshaller( + ProtoUtils.marshaller(BatchTranslateTextRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + batchTranslateDocumentMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.translation.v3beta1.TranslationService/BatchTranslateDocument") + .setRequestMarshaller( + ProtoUtils.marshaller(BatchTranslateDocumentRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + createGlossaryMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.translation.v3beta1.TranslationService/CreateGlossary") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateGlossaryRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listGlossariesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.translation.v3beta1.TranslationService/ListGlossaries") + .setRequestMarshaller( + ProtoUtils.marshaller(ListGlossariesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListGlossariesResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor getGlossaryMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.translation.v3beta1.TranslationService/GetGlossary") + .setRequestMarshaller(ProtoUtils.marshaller(GetGlossaryRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Glossary.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteGlossaryMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.translation.v3beta1.TranslationService/DeleteGlossary") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteGlossaryRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private final UnaryCallable translateTextCallable; + private final UnaryCallable detectLanguageCallable; + private final UnaryCallable + getSupportedLanguagesCallable; + private final UnaryCallable + translateDocumentCallable; + private final UnaryCallable batchTranslateTextCallable; + private final OperationCallable< + BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> + batchTranslateTextOperationCallable; + private final UnaryCallable + batchTranslateDocumentCallable; + private final OperationCallable< + BatchTranslateDocumentRequest, BatchTranslateDocumentResponse, + BatchTranslateDocumentMetadata> + batchTranslateDocumentOperationCallable; + private final UnaryCallable createGlossaryCallable; + private final OperationCallable + createGlossaryOperationCallable; + private final UnaryCallable listGlossariesCallable; + private final UnaryCallable + listGlossariesPagedCallable; + private final UnaryCallable getGlossaryCallable; + private final UnaryCallable deleteGlossaryCallable; + private final OperationCallable< + DeleteGlossaryRequest, DeleteGlossaryResponse, DeleteGlossaryMetadata> + deleteGlossaryOperationCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcTranslationServiceStub create(TranslationServiceStubSettings settings) + throws IOException { + return new GrpcTranslationServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcTranslationServiceStub create(ClientContext clientContext) + throws IOException { + return new GrpcTranslationServiceStub( + TranslationServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcTranslationServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcTranslationServiceStub( + TranslationServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcTranslationServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected GrpcTranslationServiceStub( + TranslationServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new GrpcTranslationServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcTranslationServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected GrpcTranslationServiceStub( + TranslationServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings translateTextTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(translateTextMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings + detectLanguageTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(detectLanguageMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings + getSupportedLanguagesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getSupportedLanguagesMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings + translateDocumentTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(translateDocumentMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings batchTranslateTextTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(batchTranslateTextMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings + batchTranslateDocumentTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(batchTranslateDocumentMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings createGlossaryTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createGlossaryMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings + listGlossariesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listGlossariesMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings getGlossaryTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getGlossaryMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings deleteGlossaryTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteGlossaryMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + + this.translateTextCallable = + callableFactory.createUnaryCallable( + translateTextTransportSettings, settings.translateTextSettings(), clientContext); + this.detectLanguageCallable = + callableFactory.createUnaryCallable( + detectLanguageTransportSettings, settings.detectLanguageSettings(), clientContext); + this.getSupportedLanguagesCallable = + callableFactory.createUnaryCallable( + getSupportedLanguagesTransportSettings, + settings.getSupportedLanguagesSettings(), + clientContext); + this.translateDocumentCallable = + callableFactory.createUnaryCallable( + translateDocumentTransportSettings, + settings.translateDocumentSettings(), + clientContext); + this.batchTranslateTextCallable = + callableFactory.createUnaryCallable( + batchTranslateTextTransportSettings, + settings.batchTranslateTextSettings(), + clientContext); + this.batchTranslateTextOperationCallable = + callableFactory.createOperationCallable( + batchTranslateTextTransportSettings, + settings.batchTranslateTextOperationSettings(), + clientContext, + operationsStub); + this.batchTranslateDocumentCallable = + callableFactory.createUnaryCallable( + batchTranslateDocumentTransportSettings, + settings.batchTranslateDocumentSettings(), + clientContext); + this.batchTranslateDocumentOperationCallable = + callableFactory.createOperationCallable( + batchTranslateDocumentTransportSettings, + settings.batchTranslateDocumentOperationSettings(), + clientContext, + operationsStub); + this.createGlossaryCallable = + callableFactory.createUnaryCallable( + createGlossaryTransportSettings, settings.createGlossarySettings(), clientContext); + this.createGlossaryOperationCallable = + callableFactory.createOperationCallable( + createGlossaryTransportSettings, + settings.createGlossaryOperationSettings(), + clientContext, + operationsStub); + this.listGlossariesCallable = + callableFactory.createUnaryCallable( + listGlossariesTransportSettings, settings.listGlossariesSettings(), clientContext); + this.listGlossariesPagedCallable = + callableFactory.createPagedCallable( + listGlossariesTransportSettings, settings.listGlossariesSettings(), clientContext); + this.getGlossaryCallable = + callableFactory.createUnaryCallable( + getGlossaryTransportSettings, settings.getGlossarySettings(), clientContext); + this.deleteGlossaryCallable = + callableFactory.createUnaryCallable( + deleteGlossaryTransportSettings, settings.deleteGlossarySettings(), clientContext); + this.deleteGlossaryOperationCallable = + callableFactory.createOperationCallable( + deleteGlossaryTransportSettings, + settings.deleteGlossaryOperationSettings(), + clientContext, + operationsStub); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable translateTextCallable() { + return translateTextCallable; + } + + @Override + public UnaryCallable detectLanguageCallable() { + return detectLanguageCallable; + } + + @Override + public UnaryCallable + getSupportedLanguagesCallable() { + return getSupportedLanguagesCallable; + } + + @Override + public UnaryCallable + translateDocumentCallable() { + return translateDocumentCallable; + } + + @Override + public UnaryCallable batchTranslateTextCallable() { + return batchTranslateTextCallable; + } + + @Override + public OperationCallable< + BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> + batchTranslateTextOperationCallable() { + return batchTranslateTextOperationCallable; + } + + @Override + public UnaryCallable batchTranslateDocumentCallable() { + return batchTranslateDocumentCallable; + } + + @Override + public OperationCallable< + BatchTranslateDocumentRequest, BatchTranslateDocumentResponse, + BatchTranslateDocumentMetadata> + batchTranslateDocumentOperationCallable() { + return batchTranslateDocumentOperationCallable; + } + + @Override + public UnaryCallable createGlossaryCallable() { + return createGlossaryCallable; + } + + @Override + public OperationCallable + createGlossaryOperationCallable() { + return createGlossaryOperationCallable; + } + + @Override + public UnaryCallable listGlossariesCallable() { + return listGlossariesCallable; + } + + @Override + public UnaryCallable + listGlossariesPagedCallable() { + return listGlossariesPagedCallable; + } + + @Override + public UnaryCallable getGlossaryCallable() { + return getGlossaryCallable; + } + + @Override + public UnaryCallable deleteGlossaryCallable() { + return deleteGlossaryCallable; + } + + @Override + public OperationCallable + deleteGlossaryOperationCallable() { + return deleteGlossaryOperationCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/owl-bot-staging/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/TranslationServiceStub.java b/owl-bot-staging/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/TranslationServiceStub.java new file mode 100644 index 00000000..5e1ebe6e --- /dev/null +++ b/owl-bot-staging/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/TranslationServiceStub.java @@ -0,0 +1,140 @@ +/* + * Copyright 2021 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.cloud.translate.v3beta1.stub; + +import static com.google.cloud.translate.v3beta1.TranslationServiceClient.ListGlossariesPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata; +import com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest; +import com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse; +import com.google.cloud.translate.v3beta1.BatchTranslateMetadata; +import com.google.cloud.translate.v3beta1.BatchTranslateResponse; +import com.google.cloud.translate.v3beta1.BatchTranslateTextRequest; +import com.google.cloud.translate.v3beta1.CreateGlossaryMetadata; +import com.google.cloud.translate.v3beta1.CreateGlossaryRequest; +import com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata; +import com.google.cloud.translate.v3beta1.DeleteGlossaryRequest; +import com.google.cloud.translate.v3beta1.DeleteGlossaryResponse; +import com.google.cloud.translate.v3beta1.DetectLanguageRequest; +import com.google.cloud.translate.v3beta1.DetectLanguageResponse; +import com.google.cloud.translate.v3beta1.GetGlossaryRequest; +import com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest; +import com.google.cloud.translate.v3beta1.Glossary; +import com.google.cloud.translate.v3beta1.ListGlossariesRequest; +import com.google.cloud.translate.v3beta1.ListGlossariesResponse; +import com.google.cloud.translate.v3beta1.SupportedLanguages; +import com.google.cloud.translate.v3beta1.TranslateDocumentRequest; +import com.google.cloud.translate.v3beta1.TranslateDocumentResponse; +import com.google.cloud.translate.v3beta1.TranslateTextRequest; +import com.google.cloud.translate.v3beta1.TranslateTextResponse; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the TranslationService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public abstract class TranslationServiceStub implements BackgroundResource { + + public OperationsStub getOperationsStub() { + throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); + } + + public UnaryCallable translateTextCallable() { + throw new UnsupportedOperationException("Not implemented: translateTextCallable()"); + } + + public UnaryCallable detectLanguageCallable() { + throw new UnsupportedOperationException("Not implemented: detectLanguageCallable()"); + } + + public UnaryCallable + getSupportedLanguagesCallable() { + throw new UnsupportedOperationException("Not implemented: getSupportedLanguagesCallable()"); + } + + public UnaryCallable + translateDocumentCallable() { + throw new UnsupportedOperationException("Not implemented: translateDocumentCallable()"); + } + + public OperationCallable< + BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> + batchTranslateTextOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: batchTranslateTextOperationCallable()"); + } + + public UnaryCallable batchTranslateTextCallable() { + throw new UnsupportedOperationException("Not implemented: batchTranslateTextCallable()"); + } + + public OperationCallable< + BatchTranslateDocumentRequest, BatchTranslateDocumentResponse, + BatchTranslateDocumentMetadata> + batchTranslateDocumentOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: batchTranslateDocumentOperationCallable()"); + } + + public UnaryCallable batchTranslateDocumentCallable() { + throw new UnsupportedOperationException("Not implemented: batchTranslateDocumentCallable()"); + } + + public OperationCallable + createGlossaryOperationCallable() { + throw new UnsupportedOperationException("Not implemented: createGlossaryOperationCallable()"); + } + + public UnaryCallable createGlossaryCallable() { + throw new UnsupportedOperationException("Not implemented: createGlossaryCallable()"); + } + + public UnaryCallable + listGlossariesPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listGlossariesPagedCallable()"); + } + + public UnaryCallable listGlossariesCallable() { + throw new UnsupportedOperationException("Not implemented: listGlossariesCallable()"); + } + + public UnaryCallable getGlossaryCallable() { + throw new UnsupportedOperationException("Not implemented: getGlossaryCallable()"); + } + + public OperationCallable + deleteGlossaryOperationCallable() { + throw new UnsupportedOperationException("Not implemented: deleteGlossaryOperationCallable()"); + } + + public UnaryCallable deleteGlossaryCallable() { + throw new UnsupportedOperationException("Not implemented: deleteGlossaryCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/owl-bot-staging/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/TranslationServiceStubSettings.java b/owl-bot-staging/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/TranslationServiceStubSettings.java new file mode 100644 index 00000000..b2f51e47 --- /dev/null +++ b/owl-bot-staging/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/TranslationServiceStubSettings.java @@ -0,0 +1,814 @@ +/* + * Copyright 2021 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.cloud.translate.v3beta1.stub; + +import static com.google.cloud.translate.v3beta1.TranslationServiceClient.ListGlossariesPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.grpc.ProtoOperationTransformers; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata; +import com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest; +import com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse; +import com.google.cloud.translate.v3beta1.BatchTranslateMetadata; +import com.google.cloud.translate.v3beta1.BatchTranslateResponse; +import com.google.cloud.translate.v3beta1.BatchTranslateTextRequest; +import com.google.cloud.translate.v3beta1.CreateGlossaryMetadata; +import com.google.cloud.translate.v3beta1.CreateGlossaryRequest; +import com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata; +import com.google.cloud.translate.v3beta1.DeleteGlossaryRequest; +import com.google.cloud.translate.v3beta1.DeleteGlossaryResponse; +import com.google.cloud.translate.v3beta1.DetectLanguageRequest; +import com.google.cloud.translate.v3beta1.DetectLanguageResponse; +import com.google.cloud.translate.v3beta1.GetGlossaryRequest; +import com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest; +import com.google.cloud.translate.v3beta1.Glossary; +import com.google.cloud.translate.v3beta1.ListGlossariesRequest; +import com.google.cloud.translate.v3beta1.ListGlossariesResponse; +import com.google.cloud.translate.v3beta1.SupportedLanguages; +import com.google.cloud.translate.v3beta1.TranslateDocumentRequest; +import com.google.cloud.translate.v3beta1.TranslateDocumentResponse; +import com.google.cloud.translate.v3beta1.TranslateTextRequest; +import com.google.cloud.translate.v3beta1.TranslateTextResponse; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; +import org.threeten.bp.Duration; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link TranslationServiceStub}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (translate.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

For example, to set the total timeout of translateText to 30 seconds: + * + *

{@code
+ * TranslationServiceStubSettings.Builder translationServiceSettingsBuilder =
+ *     TranslationServiceStubSettings.newBuilder();
+ * translationServiceSettingsBuilder
+ *     .translateTextSettings()
+ *     .setRetrySettings(
+ *         translationServiceSettingsBuilder
+ *             .translateTextSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setTotalTimeout(Duration.ofSeconds(30))
+ *             .build());
+ * TranslationServiceStubSettings translationServiceSettings =
+ *     translationServiceSettingsBuilder.build();
+ * }
+ */ +@BetaApi +@Generated("by gapic-generator-java") +public class TranslationServiceStubSettings extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder() + .add("https://www.googleapis.com/auth/cloud-platform") + .add("https://www.googleapis.com/auth/cloud-translation") + .build(); + + private final UnaryCallSettings + translateTextSettings; + private final UnaryCallSettings + detectLanguageSettings; + private final UnaryCallSettings + getSupportedLanguagesSettings; + private final UnaryCallSettings + translateDocumentSettings; + private final UnaryCallSettings batchTranslateTextSettings; + private final OperationCallSettings< + BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> + batchTranslateTextOperationSettings; + private final UnaryCallSettings + batchTranslateDocumentSettings; + private final OperationCallSettings< + BatchTranslateDocumentRequest, BatchTranslateDocumentResponse, + BatchTranslateDocumentMetadata> + batchTranslateDocumentOperationSettings; + private final UnaryCallSettings createGlossarySettings; + private final OperationCallSettings + createGlossaryOperationSettings; + private final PagedCallSettings< + ListGlossariesRequest, ListGlossariesResponse, ListGlossariesPagedResponse> + listGlossariesSettings; + private final UnaryCallSettings getGlossarySettings; + private final UnaryCallSettings deleteGlossarySettings; + private final OperationCallSettings< + DeleteGlossaryRequest, DeleteGlossaryResponse, DeleteGlossaryMetadata> + deleteGlossaryOperationSettings; + + private static final PagedListDescriptor + LIST_GLOSSARIES_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListGlossariesRequest injectToken(ListGlossariesRequest payload, String token) { + return ListGlossariesRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListGlossariesRequest injectPageSize( + ListGlossariesRequest payload, int pageSize) { + return ListGlossariesRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListGlossariesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListGlossariesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListGlossariesResponse payload) { + return payload.getGlossariesList() == null + ? ImmutableList.of() + : payload.getGlossariesList(); + } + }; + + private static final PagedListResponseFactory< + ListGlossariesRequest, ListGlossariesResponse, ListGlossariesPagedResponse> + LIST_GLOSSARIES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListGlossariesRequest, ListGlossariesResponse, ListGlossariesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListGlossariesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_GLOSSARIES_PAGE_STR_DESC, request, context); + return ListGlossariesPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to translateText. */ + public UnaryCallSettings translateTextSettings() { + return translateTextSettings; + } + + /** Returns the object with the settings used for calls to detectLanguage. */ + public UnaryCallSettings detectLanguageSettings() { + return detectLanguageSettings; + } + + /** Returns the object with the settings used for calls to getSupportedLanguages. */ + public UnaryCallSettings + getSupportedLanguagesSettings() { + return getSupportedLanguagesSettings; + } + + /** Returns the object with the settings used for calls to translateDocument. */ + public UnaryCallSettings + translateDocumentSettings() { + return translateDocumentSettings; + } + + /** Returns the object with the settings used for calls to batchTranslateText. */ + public UnaryCallSettings batchTranslateTextSettings() { + return batchTranslateTextSettings; + } + + /** Returns the object with the settings used for calls to batchTranslateText. */ + public OperationCallSettings< + BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> + batchTranslateTextOperationSettings() { + return batchTranslateTextOperationSettings; + } + + /** Returns the object with the settings used for calls to batchTranslateDocument. */ + public UnaryCallSettings + batchTranslateDocumentSettings() { + return batchTranslateDocumentSettings; + } + + /** Returns the object with the settings used for calls to batchTranslateDocument. */ + public OperationCallSettings< + BatchTranslateDocumentRequest, BatchTranslateDocumentResponse, + BatchTranslateDocumentMetadata> + batchTranslateDocumentOperationSettings() { + return batchTranslateDocumentOperationSettings; + } + + /** Returns the object with the settings used for calls to createGlossary. */ + public UnaryCallSettings createGlossarySettings() { + return createGlossarySettings; + } + + /** Returns the object with the settings used for calls to createGlossary. */ + public OperationCallSettings + createGlossaryOperationSettings() { + return createGlossaryOperationSettings; + } + + /** Returns the object with the settings used for calls to listGlossaries. */ + public PagedCallSettings< + ListGlossariesRequest, ListGlossariesResponse, ListGlossariesPagedResponse> + listGlossariesSettings() { + return listGlossariesSettings; + } + + /** Returns the object with the settings used for calls to getGlossary. */ + public UnaryCallSettings getGlossarySettings() { + return getGlossarySettings; + } + + /** Returns the object with the settings used for calls to deleteGlossary. */ + public UnaryCallSettings deleteGlossarySettings() { + return deleteGlossarySettings; + } + + /** Returns the object with the settings used for calls to deleteGlossary. */ + public OperationCallSettings< + DeleteGlossaryRequest, DeleteGlossaryResponse, DeleteGlossaryMetadata> + deleteGlossaryOperationSettings() { + return deleteGlossaryOperationSettings; + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public TranslationServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcTranslationServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return "translate.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "translate.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(TranslationServiceStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected TranslationServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + translateTextSettings = settingsBuilder.translateTextSettings().build(); + detectLanguageSettings = settingsBuilder.detectLanguageSettings().build(); + getSupportedLanguagesSettings = settingsBuilder.getSupportedLanguagesSettings().build(); + translateDocumentSettings = settingsBuilder.translateDocumentSettings().build(); + batchTranslateTextSettings = settingsBuilder.batchTranslateTextSettings().build(); + batchTranslateTextOperationSettings = + settingsBuilder.batchTranslateTextOperationSettings().build(); + batchTranslateDocumentSettings = settingsBuilder.batchTranslateDocumentSettings().build(); + batchTranslateDocumentOperationSettings = + settingsBuilder.batchTranslateDocumentOperationSettings().build(); + createGlossarySettings = settingsBuilder.createGlossarySettings().build(); + createGlossaryOperationSettings = settingsBuilder.createGlossaryOperationSettings().build(); + listGlossariesSettings = settingsBuilder.listGlossariesSettings().build(); + getGlossarySettings = settingsBuilder.getGlossarySettings().build(); + deleteGlossarySettings = settingsBuilder.deleteGlossarySettings().build(); + deleteGlossaryOperationSettings = settingsBuilder.deleteGlossaryOperationSettings().build(); + } + + /** Builder for TranslationServiceStubSettings. */ + public static class Builder + extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder + translateTextSettings; + private final UnaryCallSettings.Builder + detectLanguageSettings; + private final UnaryCallSettings.Builder + getSupportedLanguagesSettings; + private final UnaryCallSettings.Builder + translateDocumentSettings; + private final UnaryCallSettings.Builder + batchTranslateTextSettings; + private final OperationCallSettings.Builder< + BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> + batchTranslateTextOperationSettings; + private final UnaryCallSettings.Builder + batchTranslateDocumentSettings; + private final OperationCallSettings.Builder< + BatchTranslateDocumentRequest, BatchTranslateDocumentResponse, + BatchTranslateDocumentMetadata> + batchTranslateDocumentOperationSettings; + private final UnaryCallSettings.Builder + createGlossarySettings; + private final OperationCallSettings.Builder< + CreateGlossaryRequest, Glossary, CreateGlossaryMetadata> + createGlossaryOperationSettings; + private final PagedCallSettings.Builder< + ListGlossariesRequest, ListGlossariesResponse, ListGlossariesPagedResponse> + listGlossariesSettings; + private final UnaryCallSettings.Builder getGlossarySettings; + private final UnaryCallSettings.Builder + deleteGlossarySettings; + private final OperationCallSettings.Builder< + DeleteGlossaryRequest, DeleteGlossaryResponse, DeleteGlossaryMetadata> + deleteGlossaryOperationSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put( + "no_retry_0_codes", ImmutableSet.copyOf(Lists.newArrayList())); + definitions.put( + "retry_policy_1_codes", + ImmutableSet.copyOf( + Lists.newArrayList( + StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE))); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = + RetrySettings.newBuilder() + .setInitialRpcTimeout(Duration.ofMillis(600000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(600000L)) + .setTotalTimeout(Duration.ofMillis(600000L)) + .build(); + definitions.put("no_retry_0_params", settings); + settings = + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(100L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelay(Duration.ofMillis(60000L)) + .setInitialRpcTimeout(Duration.ofMillis(600000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(600000L)) + .setTotalTimeout(Duration.ofMillis(600000L)) + .build(); + definitions.put("retry_policy_1_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + translateTextSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + detectLanguageSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getSupportedLanguagesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + translateDocumentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + batchTranslateTextSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + batchTranslateTextOperationSettings = OperationCallSettings.newBuilder(); + batchTranslateDocumentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + batchTranslateDocumentOperationSettings = OperationCallSettings.newBuilder(); + createGlossarySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createGlossaryOperationSettings = OperationCallSettings.newBuilder(); + listGlossariesSettings = PagedCallSettings.newBuilder(LIST_GLOSSARIES_PAGE_STR_FACT); + getGlossarySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteGlossarySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteGlossaryOperationSettings = OperationCallSettings.newBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + translateTextSettings, + detectLanguageSettings, + getSupportedLanguagesSettings, + translateDocumentSettings, + batchTranslateTextSettings, + batchTranslateDocumentSettings, + createGlossarySettings, + listGlossariesSettings, + getGlossarySettings, + deleteGlossarySettings); + initDefaults(this); + } + + protected Builder(TranslationServiceStubSettings settings) { + super(settings); + + translateTextSettings = settings.translateTextSettings.toBuilder(); + detectLanguageSettings = settings.detectLanguageSettings.toBuilder(); + getSupportedLanguagesSettings = settings.getSupportedLanguagesSettings.toBuilder(); + translateDocumentSettings = settings.translateDocumentSettings.toBuilder(); + batchTranslateTextSettings = settings.batchTranslateTextSettings.toBuilder(); + batchTranslateTextOperationSettings = + settings.batchTranslateTextOperationSettings.toBuilder(); + batchTranslateDocumentSettings = settings.batchTranslateDocumentSettings.toBuilder(); + batchTranslateDocumentOperationSettings = + settings.batchTranslateDocumentOperationSettings.toBuilder(); + createGlossarySettings = settings.createGlossarySettings.toBuilder(); + createGlossaryOperationSettings = settings.createGlossaryOperationSettings.toBuilder(); + listGlossariesSettings = settings.listGlossariesSettings.toBuilder(); + getGlossarySettings = settings.getGlossarySettings.toBuilder(); + deleteGlossarySettings = settings.deleteGlossarySettings.toBuilder(); + deleteGlossaryOperationSettings = settings.deleteGlossaryOperationSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + translateTextSettings, + detectLanguageSettings, + getSupportedLanguagesSettings, + translateDocumentSettings, + batchTranslateTextSettings, + batchTranslateDocumentSettings, + createGlossarySettings, + listGlossariesSettings, + getGlossarySettings, + deleteGlossarySettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .translateTextSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + + builder + .detectLanguageSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + + builder + .getSupportedLanguagesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); + + builder + .translateDocumentSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + + builder + .batchTranslateTextSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + + builder + .batchTranslateDocumentSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + + builder + .createGlossarySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + + builder + .listGlossariesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); + + builder + .getGlossarySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); + + builder + .deleteGlossarySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); + + builder + .batchTranslateTextOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(BatchTranslateResponse.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(BatchTranslateMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .batchTranslateDocumentOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create( + BatchTranslateDocumentResponse.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create( + BatchTranslateDocumentMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .createGlossaryOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Glossary.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(CreateGlossaryMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .deleteGlossaryOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(DeleteGlossaryResponse.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(DeleteGlossaryMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to translateText. */ + public UnaryCallSettings.Builder + translateTextSettings() { + return translateTextSettings; + } + + /** Returns the builder for the settings used for calls to detectLanguage. */ + public UnaryCallSettings.Builder + detectLanguageSettings() { + return detectLanguageSettings; + } + + /** Returns the builder for the settings used for calls to getSupportedLanguages. */ + public UnaryCallSettings.Builder + getSupportedLanguagesSettings() { + return getSupportedLanguagesSettings; + } + + /** Returns the builder for the settings used for calls to translateDocument. */ + public UnaryCallSettings.Builder + translateDocumentSettings() { + return translateDocumentSettings; + } + + /** Returns the builder for the settings used for calls to batchTranslateText. */ + public UnaryCallSettings.Builder + batchTranslateTextSettings() { + return batchTranslateTextSettings; + } + + /** Returns the builder for the settings used for calls to batchTranslateText. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> + batchTranslateTextOperationSettings() { + return batchTranslateTextOperationSettings; + } + + /** Returns the builder for the settings used for calls to batchTranslateDocument. */ + public UnaryCallSettings.Builder + batchTranslateDocumentSettings() { + return batchTranslateDocumentSettings; + } + + /** Returns the builder for the settings used for calls to batchTranslateDocument. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + BatchTranslateDocumentRequest, BatchTranslateDocumentResponse, + BatchTranslateDocumentMetadata> + batchTranslateDocumentOperationSettings() { + return batchTranslateDocumentOperationSettings; + } + + /** Returns the builder for the settings used for calls to createGlossary. */ + public UnaryCallSettings.Builder createGlossarySettings() { + return createGlossarySettings; + } + + /** Returns the builder for the settings used for calls to createGlossary. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder + createGlossaryOperationSettings() { + return createGlossaryOperationSettings; + } + + /** Returns the builder for the settings used for calls to listGlossaries. */ + public PagedCallSettings.Builder< + ListGlossariesRequest, ListGlossariesResponse, ListGlossariesPagedResponse> + listGlossariesSettings() { + return listGlossariesSettings; + } + + /** Returns the builder for the settings used for calls to getGlossary. */ + public UnaryCallSettings.Builder getGlossarySettings() { + return getGlossarySettings; + } + + /** Returns the builder for the settings used for calls to deleteGlossary. */ + public UnaryCallSettings.Builder deleteGlossarySettings() { + return deleteGlossarySettings; + } + + /** Returns the builder for the settings used for calls to deleteGlossary. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + DeleteGlossaryRequest, DeleteGlossaryResponse, DeleteGlossaryMetadata> + deleteGlossaryOperationSettings() { + return deleteGlossaryOperationSettings; + } + + @Override + public TranslationServiceStubSettings build() throws IOException { + return new TranslationServiceStubSettings(this); + } + } +} diff --git a/owl-bot-staging/v3beta1/google-cloud-translate/src/test/java/com/google/cloud/translate/v3beta1/MockTranslationService.java b/owl-bot-staging/v3beta1/google-cloud-translate/src/test/java/com/google/cloud/translate/v3beta1/MockTranslationService.java new file mode 100644 index 00000000..43bb5a31 --- /dev/null +++ b/owl-bot-staging/v3beta1/google-cloud-translate/src/test/java/com/google/cloud/translate/v3beta1/MockTranslationService.java @@ -0,0 +1,59 @@ +/* + * Copyright 2021 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.cloud.translate.v3beta1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockTranslationService implements MockGrpcService { + private final MockTranslationServiceImpl serviceImpl; + + public MockTranslationService() { + serviceImpl = new MockTranslationServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/owl-bot-staging/v3beta1/google-cloud-translate/src/test/java/com/google/cloud/translate/v3beta1/MockTranslationServiceImpl.java b/owl-bot-staging/v3beta1/google-cloud-translate/src/test/java/com/google/cloud/translate/v3beta1/MockTranslationServiceImpl.java new file mode 100644 index 00000000..e5f98b07 --- /dev/null +++ b/owl-bot-staging/v3beta1/google-cloud-translate/src/test/java/com/google/cloud/translate/v3beta1/MockTranslationServiceImpl.java @@ -0,0 +1,271 @@ +/* + * Copyright 2021 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.cloud.translate.v3beta1; + +import com.google.api.core.BetaApi; +import com.google.cloud.translate.v3beta1.TranslationServiceGrpc.TranslationServiceImplBase; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockTranslationServiceImpl extends TranslationServiceImplBase { + private List requests; + private Queue responses; + + public MockTranslationServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void translateText( + TranslateTextRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof TranslateTextResponse) { + requests.add(request); + responseObserver.onNext(((TranslateTextResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method TranslateText, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + TranslateTextResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void detectLanguage( + DetectLanguageRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof DetectLanguageResponse) { + requests.add(request); + responseObserver.onNext(((DetectLanguageResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DetectLanguage, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + DetectLanguageResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getSupportedLanguages( + GetSupportedLanguagesRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof SupportedLanguages) { + requests.add(request); + responseObserver.onNext(((SupportedLanguages) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetSupportedLanguages, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + SupportedLanguages.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void translateDocument( + TranslateDocumentRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof TranslateDocumentResponse) { + requests.add(request); + responseObserver.onNext(((TranslateDocumentResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method TranslateDocument, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + TranslateDocumentResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void batchTranslateText( + BatchTranslateTextRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method BatchTranslateText, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void batchTranslateDocument( + BatchTranslateDocumentRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method BatchTranslateDocument, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createGlossary( + CreateGlossaryRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateGlossary, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listGlossaries( + ListGlossariesRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListGlossariesResponse) { + requests.add(request); + responseObserver.onNext(((ListGlossariesResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListGlossaries, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListGlossariesResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getGlossary(GetGlossaryRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Glossary) { + requests.add(request); + responseObserver.onNext(((Glossary) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetGlossary, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Glossary.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteGlossary( + DeleteGlossaryRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteGlossary, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/owl-bot-staging/v3beta1/google-cloud-translate/src/test/java/com/google/cloud/translate/v3beta1/TranslationServiceClientTest.java b/owl-bot-staging/v3beta1/google-cloud-translate/src/test/java/com/google/cloud/translate/v3beta1/TranslationServiceClientTest.java new file mode 100644 index 00000000..2a0bcd33 --- /dev/null +++ b/owl-bot-staging/v3beta1/google-cloud-translate/src/test/java/com/google/cloud/translate/v3beta1/TranslationServiceClientTest.java @@ -0,0 +1,1005 @@ +/* + * Copyright 2021 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.cloud.translate.v3beta1; + +import static com.google.cloud.translate.v3beta1.TranslationServiceClient.ListGlossariesPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Any; +import com.google.protobuf.Timestamp; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.UUID; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class TranslationServiceClientTest { + private static MockServiceHelper mockServiceHelper; + private static MockTranslationService mockTranslationService; + private LocalChannelProvider channelProvider; + private TranslationServiceClient client; + + @BeforeClass + public static void startStaticServer() { + mockTranslationService = new MockTranslationService(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), Arrays.asList(mockTranslationService)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + TranslationServiceSettings settings = + TranslationServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = TranslationServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void translateTextTest() throws Exception { + TranslateTextResponse expectedResponse = + TranslateTextResponse.newBuilder() + .addAllTranslations(new ArrayList()) + .addAllGlossaryTranslations(new ArrayList()) + .build(); + mockTranslationService.addResponse(expectedResponse); + + TranslateTextRequest request = + TranslateTextRequest.newBuilder() + .addAllContents(new ArrayList()) + .setMimeType("mimeType-1392120434") + .setSourceLanguageCode("sourceLanguageCode1645917472") + .setTargetLanguageCode("targetLanguageCode-106414698") + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setModel("model104069929") + .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + + TranslateTextResponse actualResponse = client.translateText(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTranslationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + TranslateTextRequest actualRequest = ((TranslateTextRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getContentsList(), actualRequest.getContentsList()); + Assert.assertEquals(request.getMimeType(), actualRequest.getMimeType()); + Assert.assertEquals(request.getSourceLanguageCode(), actualRequest.getSourceLanguageCode()); + Assert.assertEquals(request.getTargetLanguageCode(), actualRequest.getTargetLanguageCode()); + Assert.assertEquals(request.getParent(), actualRequest.getParent()); + Assert.assertEquals(request.getModel(), actualRequest.getModel()); + Assert.assertEquals(request.getGlossaryConfig(), actualRequest.getGlossaryConfig()); + Assert.assertEquals(request.getLabelsMap(), actualRequest.getLabelsMap()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void translateTextExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTranslationService.addException(exception); + + try { + TranslateTextRequest request = + TranslateTextRequest.newBuilder() + .addAllContents(new ArrayList()) + .setMimeType("mimeType-1392120434") + .setSourceLanguageCode("sourceLanguageCode1645917472") + .setTargetLanguageCode("targetLanguageCode-106414698") + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setModel("model104069929") + .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + client.translateText(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void detectLanguageTest() throws Exception { + DetectLanguageResponse expectedResponse = + DetectLanguageResponse.newBuilder() + .addAllLanguages(new ArrayList()) + .build(); + mockTranslationService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String model = "model104069929"; + String mimeType = "mimeType-1392120434"; + + DetectLanguageResponse actualResponse = client.detectLanguage(parent, model, mimeType); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTranslationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DetectLanguageRequest actualRequest = ((DetectLanguageRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(model, actualRequest.getModel()); + Assert.assertEquals(mimeType, actualRequest.getMimeType()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void detectLanguageExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTranslationService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String model = "model104069929"; + String mimeType = "mimeType-1392120434"; + client.detectLanguage(parent, model, mimeType); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void detectLanguageTest2() throws Exception { + DetectLanguageResponse expectedResponse = + DetectLanguageResponse.newBuilder() + .addAllLanguages(new ArrayList()) + .build(); + mockTranslationService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + String model = "model104069929"; + String mimeType = "mimeType-1392120434"; + + DetectLanguageResponse actualResponse = client.detectLanguage(parent, model, mimeType); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTranslationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DetectLanguageRequest actualRequest = ((DetectLanguageRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(model, actualRequest.getModel()); + Assert.assertEquals(mimeType, actualRequest.getMimeType()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void detectLanguageExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTranslationService.addException(exception); + + try { + String parent = "parent-995424086"; + String model = "model104069929"; + String mimeType = "mimeType-1392120434"; + client.detectLanguage(parent, model, mimeType); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getSupportedLanguagesTest() throws Exception { + SupportedLanguages expectedResponse = + SupportedLanguages.newBuilder().addAllLanguages(new ArrayList()).build(); + mockTranslationService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String displayLanguageCode = "displayLanguageCode-1457478841"; + String model = "model104069929"; + + SupportedLanguages actualResponse = + client.getSupportedLanguages(parent, displayLanguageCode, model); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTranslationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetSupportedLanguagesRequest actualRequest = + ((GetSupportedLanguagesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(displayLanguageCode, actualRequest.getDisplayLanguageCode()); + Assert.assertEquals(model, actualRequest.getModel()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getSupportedLanguagesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTranslationService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String displayLanguageCode = "displayLanguageCode-1457478841"; + String model = "model104069929"; + client.getSupportedLanguages(parent, displayLanguageCode, model); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getSupportedLanguagesTest2() throws Exception { + SupportedLanguages expectedResponse = + SupportedLanguages.newBuilder().addAllLanguages(new ArrayList()).build(); + mockTranslationService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + String displayLanguageCode = "displayLanguageCode-1457478841"; + String model = "model104069929"; + + SupportedLanguages actualResponse = + client.getSupportedLanguages(parent, displayLanguageCode, model); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTranslationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetSupportedLanguagesRequest actualRequest = + ((GetSupportedLanguagesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(displayLanguageCode, actualRequest.getDisplayLanguageCode()); + Assert.assertEquals(model, actualRequest.getModel()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getSupportedLanguagesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTranslationService.addException(exception); + + try { + String parent = "parent-995424086"; + String displayLanguageCode = "displayLanguageCode-1457478841"; + String model = "model104069929"; + client.getSupportedLanguages(parent, displayLanguageCode, model); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void translateDocumentTest() throws Exception { + TranslateDocumentResponse expectedResponse = + TranslateDocumentResponse.newBuilder() + .setDocumentTranslation(DocumentTranslation.newBuilder().build()) + .setGlossaryDocumentTranslation(DocumentTranslation.newBuilder().build()) + .setModel("model104069929") + .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build()) + .build(); + mockTranslationService.addResponse(expectedResponse); + + TranslateDocumentRequest request = + TranslateDocumentRequest.newBuilder() + .setParent("parent-995424086") + .setSourceLanguageCode("sourceLanguageCode1645917472") + .setTargetLanguageCode("targetLanguageCode-106414698") + .setDocumentInputConfig(DocumentInputConfig.newBuilder().build()) + .setDocumentOutputConfig(DocumentOutputConfig.newBuilder().build()) + .setModel("model104069929") + .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + + TranslateDocumentResponse actualResponse = client.translateDocument(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTranslationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + TranslateDocumentRequest actualRequest = ((TranslateDocumentRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getParent(), actualRequest.getParent()); + Assert.assertEquals(request.getSourceLanguageCode(), actualRequest.getSourceLanguageCode()); + Assert.assertEquals(request.getTargetLanguageCode(), actualRequest.getTargetLanguageCode()); + Assert.assertEquals(request.getDocumentInputConfig(), actualRequest.getDocumentInputConfig()); + Assert.assertEquals(request.getDocumentOutputConfig(), actualRequest.getDocumentOutputConfig()); + Assert.assertEquals(request.getModel(), actualRequest.getModel()); + Assert.assertEquals(request.getGlossaryConfig(), actualRequest.getGlossaryConfig()); + Assert.assertEquals(request.getLabelsMap(), actualRequest.getLabelsMap()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void translateDocumentExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTranslationService.addException(exception); + + try { + TranslateDocumentRequest request = + TranslateDocumentRequest.newBuilder() + .setParent("parent-995424086") + .setSourceLanguageCode("sourceLanguageCode1645917472") + .setTargetLanguageCode("targetLanguageCode-106414698") + .setDocumentInputConfig(DocumentInputConfig.newBuilder().build()) + .setDocumentOutputConfig(DocumentOutputConfig.newBuilder().build()) + .setModel("model104069929") + .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + client.translateDocument(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void batchTranslateTextTest() throws Exception { + BatchTranslateResponse expectedResponse = + BatchTranslateResponse.newBuilder() + .setTotalCharacters(-1368640955) + .setTranslatedCharacters(-1337326221) + .setFailedCharacters(1723028396) + .setSubmitTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("batchTranslateTextTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockTranslationService.addResponse(resultOperation); + + BatchTranslateTextRequest request = + BatchTranslateTextRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setSourceLanguageCode("sourceLanguageCode1645917472") + .addAllTargetLanguageCodes(new ArrayList()) + .putAllModels(new HashMap()) + .addAllInputConfigs(new ArrayList()) + .setOutputConfig(OutputConfig.newBuilder().build()) + .putAllGlossaries(new HashMap()) + .putAllLabels(new HashMap()) + .build(); + + BatchTranslateResponse actualResponse = client.batchTranslateTextAsync(request).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTranslationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + BatchTranslateTextRequest actualRequest = ((BatchTranslateTextRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getParent(), actualRequest.getParent()); + Assert.assertEquals(request.getSourceLanguageCode(), actualRequest.getSourceLanguageCode()); + Assert.assertEquals( + request.getTargetLanguageCodesList(), actualRequest.getTargetLanguageCodesList()); + Assert.assertEquals(request.getModelsMap(), actualRequest.getModelsMap()); + Assert.assertEquals(request.getInputConfigsList(), actualRequest.getInputConfigsList()); + Assert.assertEquals(request.getOutputConfig(), actualRequest.getOutputConfig()); + Assert.assertEquals(request.getGlossariesMap(), actualRequest.getGlossariesMap()); + Assert.assertEquals(request.getLabelsMap(), actualRequest.getLabelsMap()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void batchTranslateTextExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTranslationService.addException(exception); + + try { + BatchTranslateTextRequest request = + BatchTranslateTextRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setSourceLanguageCode("sourceLanguageCode1645917472") + .addAllTargetLanguageCodes(new ArrayList()) + .putAllModels(new HashMap()) + .addAllInputConfigs(new ArrayList()) + .setOutputConfig(OutputConfig.newBuilder().build()) + .putAllGlossaries(new HashMap()) + .putAllLabels(new HashMap()) + .build(); + client.batchTranslateTextAsync(request).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void batchTranslateDocumentTest() throws Exception { + BatchTranslateDocumentResponse expectedResponse = + BatchTranslateDocumentResponse.newBuilder() + .setTotalPages(-396186871) + .setTranslatedPages(-1652747493) + .setFailedPages(-2002254526) + .setTotalBillablePages(1292117569) + .setTotalCharacters(-1368640955) + .setTranslatedCharacters(-1337326221) + .setFailedCharacters(1723028396) + .setTotalBillableCharacters(1242495501) + .setSubmitTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("batchTranslateDocumentTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockTranslationService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String sourceLanguageCode = "sourceLanguageCode1645917472"; + List targetLanguageCodes = new ArrayList<>(); + List inputConfigs = new ArrayList<>(); + BatchDocumentOutputConfig outputConfig = BatchDocumentOutputConfig.newBuilder().build(); + + BatchTranslateDocumentResponse actualResponse = + client + .batchTranslateDocumentAsync( + parent, sourceLanguageCode, targetLanguageCodes, inputConfigs, outputConfig) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTranslationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + BatchTranslateDocumentRequest actualRequest = + ((BatchTranslateDocumentRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(sourceLanguageCode, actualRequest.getSourceLanguageCode()); + Assert.assertEquals(targetLanguageCodes, actualRequest.getTargetLanguageCodesList()); + Assert.assertEquals(inputConfigs, actualRequest.getInputConfigsList()); + Assert.assertEquals(outputConfig, actualRequest.getOutputConfig()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void batchTranslateDocumentExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTranslationService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String sourceLanguageCode = "sourceLanguageCode1645917472"; + List targetLanguageCodes = new ArrayList<>(); + List inputConfigs = new ArrayList<>(); + BatchDocumentOutputConfig outputConfig = BatchDocumentOutputConfig.newBuilder().build(); + client + .batchTranslateDocumentAsync( + parent, sourceLanguageCode, targetLanguageCodes, inputConfigs, outputConfig) + .get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void batchTranslateDocumentTest2() throws Exception { + BatchTranslateDocumentResponse expectedResponse = + BatchTranslateDocumentResponse.newBuilder() + .setTotalPages(-396186871) + .setTranslatedPages(-1652747493) + .setFailedPages(-2002254526) + .setTotalBillablePages(1292117569) + .setTotalCharacters(-1368640955) + .setTranslatedCharacters(-1337326221) + .setFailedCharacters(1723028396) + .setTotalBillableCharacters(1242495501) + .setSubmitTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("batchTranslateDocumentTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockTranslationService.addResponse(resultOperation); + + String parent = "parent-995424086"; + String sourceLanguageCode = "sourceLanguageCode1645917472"; + List targetLanguageCodes = new ArrayList<>(); + List inputConfigs = new ArrayList<>(); + BatchDocumentOutputConfig outputConfig = BatchDocumentOutputConfig.newBuilder().build(); + + BatchTranslateDocumentResponse actualResponse = + client + .batchTranslateDocumentAsync( + parent, sourceLanguageCode, targetLanguageCodes, inputConfigs, outputConfig) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTranslationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + BatchTranslateDocumentRequest actualRequest = + ((BatchTranslateDocumentRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(sourceLanguageCode, actualRequest.getSourceLanguageCode()); + Assert.assertEquals(targetLanguageCodes, actualRequest.getTargetLanguageCodesList()); + Assert.assertEquals(inputConfigs, actualRequest.getInputConfigsList()); + Assert.assertEquals(outputConfig, actualRequest.getOutputConfig()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void batchTranslateDocumentExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTranslationService.addException(exception); + + try { + String parent = "parent-995424086"; + String sourceLanguageCode = "sourceLanguageCode1645917472"; + List targetLanguageCodes = new ArrayList<>(); + List inputConfigs = new ArrayList<>(); + BatchDocumentOutputConfig outputConfig = BatchDocumentOutputConfig.newBuilder().build(); + client + .batchTranslateDocumentAsync( + parent, sourceLanguageCode, targetLanguageCodes, inputConfigs, outputConfig) + .get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void createGlossaryTest() throws Exception { + Glossary expectedResponse = + Glossary.newBuilder() + .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString()) + .setInputConfig(GlossaryInputConfig.newBuilder().build()) + .setEntryCount(-811131134) + .setSubmitTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createGlossaryTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockTranslationService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Glossary glossary = Glossary.newBuilder().build(); + + Glossary actualResponse = client.createGlossaryAsync(parent, glossary).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTranslationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateGlossaryRequest actualRequest = ((CreateGlossaryRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(glossary, actualRequest.getGlossary()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createGlossaryExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTranslationService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Glossary glossary = Glossary.newBuilder().build(); + client.createGlossaryAsync(parent, glossary).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void createGlossaryTest2() throws Exception { + Glossary expectedResponse = + Glossary.newBuilder() + .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString()) + .setInputConfig(GlossaryInputConfig.newBuilder().build()) + .setEntryCount(-811131134) + .setSubmitTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createGlossaryTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockTranslationService.addResponse(resultOperation); + + String parent = "parent-995424086"; + Glossary glossary = Glossary.newBuilder().build(); + + Glossary actualResponse = client.createGlossaryAsync(parent, glossary).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTranslationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateGlossaryRequest actualRequest = ((CreateGlossaryRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(glossary, actualRequest.getGlossary()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createGlossaryExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTranslationService.addException(exception); + + try { + String parent = "parent-995424086"; + Glossary glossary = Glossary.newBuilder().build(); + client.createGlossaryAsync(parent, glossary).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void listGlossariesTest() throws Exception { + Glossary responsesElement = Glossary.newBuilder().build(); + ListGlossariesResponse expectedResponse = + ListGlossariesResponse.newBuilder() + .setNextPageToken("") + .addAllGlossaries(Arrays.asList(responsesElement)) + .build(); + mockTranslationService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String filter = "filter-1274492040"; + + ListGlossariesPagedResponse pagedListResponse = client.listGlossaries(parent, filter); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getGlossariesList().get(0), resources.get(0)); + + List actualRequests = mockTranslationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListGlossariesRequest actualRequest = ((ListGlossariesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(filter, actualRequest.getFilter()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listGlossariesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTranslationService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String filter = "filter-1274492040"; + client.listGlossaries(parent, filter); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listGlossariesTest2() throws Exception { + Glossary responsesElement = Glossary.newBuilder().build(); + ListGlossariesResponse expectedResponse = + ListGlossariesResponse.newBuilder() + .setNextPageToken("") + .addAllGlossaries(Arrays.asList(responsesElement)) + .build(); + mockTranslationService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + String filter = "filter-1274492040"; + + ListGlossariesPagedResponse pagedListResponse = client.listGlossaries(parent, filter); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getGlossariesList().get(0), resources.get(0)); + + List actualRequests = mockTranslationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListGlossariesRequest actualRequest = ((ListGlossariesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(filter, actualRequest.getFilter()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listGlossariesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTranslationService.addException(exception); + + try { + String parent = "parent-995424086"; + String filter = "filter-1274492040"; + client.listGlossaries(parent, filter); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getGlossaryTest() throws Exception { + Glossary expectedResponse = + Glossary.newBuilder() + .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString()) + .setInputConfig(GlossaryInputConfig.newBuilder().build()) + .setEntryCount(-811131134) + .setSubmitTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .build(); + mockTranslationService.addResponse(expectedResponse); + + GlossaryName name = GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]"); + + Glossary actualResponse = client.getGlossary(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTranslationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetGlossaryRequest actualRequest = ((GetGlossaryRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getGlossaryExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTranslationService.addException(exception); + + try { + GlossaryName name = GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]"); + client.getGlossary(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getGlossaryTest2() throws Exception { + Glossary expectedResponse = + Glossary.newBuilder() + .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString()) + .setInputConfig(GlossaryInputConfig.newBuilder().build()) + .setEntryCount(-811131134) + .setSubmitTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .build(); + mockTranslationService.addResponse(expectedResponse); + + String name = "name3373707"; + + Glossary actualResponse = client.getGlossary(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTranslationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetGlossaryRequest actualRequest = ((GetGlossaryRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getGlossaryExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTranslationService.addException(exception); + + try { + String name = "name3373707"; + client.getGlossary(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteGlossaryTest() throws Exception { + DeleteGlossaryResponse expectedResponse = + DeleteGlossaryResponse.newBuilder() + .setName("name3373707") + .setSubmitTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteGlossaryTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockTranslationService.addResponse(resultOperation); + + GlossaryName name = GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]"); + + DeleteGlossaryResponse actualResponse = client.deleteGlossaryAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTranslationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteGlossaryRequest actualRequest = ((DeleteGlossaryRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteGlossaryExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTranslationService.addException(exception); + + try { + GlossaryName name = GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]"); + client.deleteGlossaryAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteGlossaryTest2() throws Exception { + DeleteGlossaryResponse expectedResponse = + DeleteGlossaryResponse.newBuilder() + .setName("name3373707") + .setSubmitTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteGlossaryTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockTranslationService.addResponse(resultOperation); + + String name = "name3373707"; + + DeleteGlossaryResponse actualResponse = client.deleteGlossaryAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTranslationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteGlossaryRequest actualRequest = ((DeleteGlossaryRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteGlossaryExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTranslationService.addException(exception); + + try { + String name = "name3373707"; + client.deleteGlossaryAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } +} diff --git a/owl-bot-staging/v3beta1/grpc-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/LocationsGrpc.java b/owl-bot-staging/v3beta1/grpc-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/LocationsGrpc.java new file mode 100644 index 00000000..e542931f --- /dev/null +++ b/owl-bot-staging/v3beta1/grpc-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/LocationsGrpc.java @@ -0,0 +1,398 @@ +package com.google.cloud.location; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *
+ * An abstract interface that provides location-related information for
+ * a service. Service-specific metadata is provided through the
+ * [Location.metadata][google.cloud.location.Location.metadata] field.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/location/locations.proto") +public final class LocationsGrpc { + + private LocationsGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.location.Locations"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getListLocationsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListLocations", + requestType = com.google.cloud.location.ListLocationsRequest.class, + responseType = com.google.cloud.location.ListLocationsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListLocationsMethod() { + io.grpc.MethodDescriptor getListLocationsMethod; + if ((getListLocationsMethod = LocationsGrpc.getListLocationsMethod) == null) { + synchronized (LocationsGrpc.class) { + if ((getListLocationsMethod = LocationsGrpc.getListLocationsMethod) == null) { + LocationsGrpc.getListLocationsMethod = getListLocationsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListLocations")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.location.ListLocationsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.location.ListLocationsResponse.getDefaultInstance())) + .setSchemaDescriptor(new LocationsMethodDescriptorSupplier("ListLocations")) + .build(); + } + } + } + return getListLocationsMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetLocationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetLocation", + requestType = com.google.cloud.location.GetLocationRequest.class, + responseType = com.google.cloud.location.Location.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetLocationMethod() { + io.grpc.MethodDescriptor getGetLocationMethod; + if ((getGetLocationMethod = LocationsGrpc.getGetLocationMethod) == null) { + synchronized (LocationsGrpc.class) { + if ((getGetLocationMethod = LocationsGrpc.getGetLocationMethod) == null) { + LocationsGrpc.getGetLocationMethod = getGetLocationMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetLocation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.location.GetLocationRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.location.Location.getDefaultInstance())) + .setSchemaDescriptor(new LocationsMethodDescriptorSupplier("GetLocation")) + .build(); + } + } + } + return getGetLocationMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static LocationsStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public LocationsStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new LocationsStub(channel, callOptions); + } + }; + return LocationsStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static LocationsBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public LocationsBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new LocationsBlockingStub(channel, callOptions); + } + }; + return LocationsBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static LocationsFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public LocationsFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new LocationsFutureStub(channel, callOptions); + } + }; + return LocationsFutureStub.newStub(factory, channel); + } + + /** + *
+   * An abstract interface that provides location-related information for
+   * a service. Service-specific metadata is provided through the
+   * [Location.metadata][google.cloud.location.Location.metadata] field.
+   * 
+ */ + public static abstract class LocationsImplBase implements io.grpc.BindableService { + + /** + *
+     * Lists information about the supported locations for this service.
+     * 
+ */ + public void listLocations(com.google.cloud.location.ListLocationsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListLocationsMethod(), responseObserver); + } + + /** + *
+     * Gets information about a location.
+     * 
+ */ + public void getLocation(com.google.cloud.location.GetLocationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetLocationMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListLocationsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.location.ListLocationsRequest, + com.google.cloud.location.ListLocationsResponse>( + this, METHODID_LIST_LOCATIONS))) + .addMethod( + getGetLocationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.location.GetLocationRequest, + com.google.cloud.location.Location>( + this, METHODID_GET_LOCATION))) + .build(); + } + } + + /** + *
+   * An abstract interface that provides location-related information for
+   * a service. Service-specific metadata is provided through the
+   * [Location.metadata][google.cloud.location.Location.metadata] field.
+   * 
+ */ + public static final class LocationsStub extends io.grpc.stub.AbstractAsyncStub { + private LocationsStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected LocationsStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new LocationsStub(channel, callOptions); + } + + /** + *
+     * Lists information about the supported locations for this service.
+     * 
+ */ + public void listLocations(com.google.cloud.location.ListLocationsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListLocationsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets information about a location.
+     * 
+ */ + public void getLocation(com.google.cloud.location.GetLocationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetLocationMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * An abstract interface that provides location-related information for
+   * a service. Service-specific metadata is provided through the
+   * [Location.metadata][google.cloud.location.Location.metadata] field.
+   * 
+ */ + public static final class LocationsBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private LocationsBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected LocationsBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new LocationsBlockingStub(channel, callOptions); + } + + /** + *
+     * Lists information about the supported locations for this service.
+     * 
+ */ + public com.google.cloud.location.ListLocationsResponse listLocations(com.google.cloud.location.ListLocationsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListLocationsMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets information about a location.
+     * 
+ */ + public com.google.cloud.location.Location getLocation(com.google.cloud.location.GetLocationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetLocationMethod(), getCallOptions(), request); + } + } + + /** + *
+   * An abstract interface that provides location-related information for
+   * a service. Service-specific metadata is provided through the
+   * [Location.metadata][google.cloud.location.Location.metadata] field.
+   * 
+ */ + public static final class LocationsFutureStub extends io.grpc.stub.AbstractFutureStub { + private LocationsFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected LocationsFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new LocationsFutureStub(channel, callOptions); + } + + /** + *
+     * Lists information about the supported locations for this service.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listLocations( + com.google.cloud.location.ListLocationsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListLocationsMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets information about a location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getLocation( + com.google.cloud.location.GetLocationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetLocationMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_LOCATIONS = 0; + private static final int METHODID_GET_LOCATION = 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 final LocationsImplBase serviceImpl; + private final int methodId; + + MethodHandlers(LocationsImplBase 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_LIST_LOCATIONS: + serviceImpl.listLocations((com.google.cloud.location.ListLocationsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_LOCATION: + serviceImpl.getLocation((com.google.cloud.location.GetLocationRequest) 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(); + } + } + } + + private static abstract class LocationsBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + LocationsBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.location.LocationsProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("Locations"); + } + } + + private static final class LocationsFileDescriptorSupplier + extends LocationsBaseDescriptorSupplier { + LocationsFileDescriptorSupplier() {} + } + + private static final class LocationsMethodDescriptorSupplier + extends LocationsBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + LocationsMethodDescriptorSupplier(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 (LocationsGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new LocationsFileDescriptorSupplier()) + .addMethod(getListLocationsMethod()) + .addMethod(getGetLocationMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/v3beta1/grpc-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceGrpc.java b/owl-bot-staging/v3beta1/grpc-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceGrpc.java new file mode 100644 index 00000000..ce42a13a --- /dev/null +++ b/owl-bot-staging/v3beta1/grpc-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceGrpc.java @@ -0,0 +1,1136 @@ +package com.google.cloud.translate.v3beta1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *
+ * Provides natural language translation operations.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/translate/v3beta1/translation_service.proto") +public final class TranslationServiceGrpc { + + private TranslationServiceGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.translation.v3beta1.TranslationService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getTranslateTextMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "TranslateText", + requestType = com.google.cloud.translate.v3beta1.TranslateTextRequest.class, + responseType = com.google.cloud.translate.v3beta1.TranslateTextResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getTranslateTextMethod() { + io.grpc.MethodDescriptor getTranslateTextMethod; + if ((getTranslateTextMethod = TranslationServiceGrpc.getTranslateTextMethod) == null) { + synchronized (TranslationServiceGrpc.class) { + if ((getTranslateTextMethod = TranslationServiceGrpc.getTranslateTextMethod) == null) { + TranslationServiceGrpc.getTranslateTextMethod = getTranslateTextMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TranslateText")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3beta1.TranslateTextRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3beta1.TranslateTextResponse.getDefaultInstance())) + .setSchemaDescriptor(new TranslationServiceMethodDescriptorSupplier("TranslateText")) + .build(); + } + } + } + return getTranslateTextMethod; + } + + private static volatile io.grpc.MethodDescriptor getDetectLanguageMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DetectLanguage", + requestType = com.google.cloud.translate.v3beta1.DetectLanguageRequest.class, + responseType = com.google.cloud.translate.v3beta1.DetectLanguageResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDetectLanguageMethod() { + io.grpc.MethodDescriptor getDetectLanguageMethod; + if ((getDetectLanguageMethod = TranslationServiceGrpc.getDetectLanguageMethod) == null) { + synchronized (TranslationServiceGrpc.class) { + if ((getDetectLanguageMethod = TranslationServiceGrpc.getDetectLanguageMethod) == null) { + TranslationServiceGrpc.getDetectLanguageMethod = getDetectLanguageMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DetectLanguage")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3beta1.DetectLanguageRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3beta1.DetectLanguageResponse.getDefaultInstance())) + .setSchemaDescriptor(new TranslationServiceMethodDescriptorSupplier("DetectLanguage")) + .build(); + } + } + } + return getDetectLanguageMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetSupportedLanguagesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetSupportedLanguages", + requestType = com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest.class, + responseType = com.google.cloud.translate.v3beta1.SupportedLanguages.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetSupportedLanguagesMethod() { + io.grpc.MethodDescriptor getGetSupportedLanguagesMethod; + if ((getGetSupportedLanguagesMethod = TranslationServiceGrpc.getGetSupportedLanguagesMethod) == null) { + synchronized (TranslationServiceGrpc.class) { + if ((getGetSupportedLanguagesMethod = TranslationServiceGrpc.getGetSupportedLanguagesMethod) == null) { + TranslationServiceGrpc.getGetSupportedLanguagesMethod = getGetSupportedLanguagesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSupportedLanguages")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3beta1.SupportedLanguages.getDefaultInstance())) + .setSchemaDescriptor(new TranslationServiceMethodDescriptorSupplier("GetSupportedLanguages")) + .build(); + } + } + } + return getGetSupportedLanguagesMethod; + } + + private static volatile io.grpc.MethodDescriptor getTranslateDocumentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "TranslateDocument", + requestType = com.google.cloud.translate.v3beta1.TranslateDocumentRequest.class, + responseType = com.google.cloud.translate.v3beta1.TranslateDocumentResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getTranslateDocumentMethod() { + io.grpc.MethodDescriptor getTranslateDocumentMethod; + if ((getTranslateDocumentMethod = TranslationServiceGrpc.getTranslateDocumentMethod) == null) { + synchronized (TranslationServiceGrpc.class) { + if ((getTranslateDocumentMethod = TranslationServiceGrpc.getTranslateDocumentMethod) == null) { + TranslationServiceGrpc.getTranslateDocumentMethod = getTranslateDocumentMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TranslateDocument")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3beta1.TranslateDocumentRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3beta1.TranslateDocumentResponse.getDefaultInstance())) + .setSchemaDescriptor(new TranslationServiceMethodDescriptorSupplier("TranslateDocument")) + .build(); + } + } + } + return getTranslateDocumentMethod; + } + + private static volatile io.grpc.MethodDescriptor getBatchTranslateTextMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "BatchTranslateText", + requestType = com.google.cloud.translate.v3beta1.BatchTranslateTextRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getBatchTranslateTextMethod() { + io.grpc.MethodDescriptor getBatchTranslateTextMethod; + if ((getBatchTranslateTextMethod = TranslationServiceGrpc.getBatchTranslateTextMethod) == null) { + synchronized (TranslationServiceGrpc.class) { + if ((getBatchTranslateTextMethod = TranslationServiceGrpc.getBatchTranslateTextMethod) == null) { + TranslationServiceGrpc.getBatchTranslateTextMethod = getBatchTranslateTextMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BatchTranslateText")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3beta1.BatchTranslateTextRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new TranslationServiceMethodDescriptorSupplier("BatchTranslateText")) + .build(); + } + } + } + return getBatchTranslateTextMethod; + } + + private static volatile io.grpc.MethodDescriptor getBatchTranslateDocumentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "BatchTranslateDocument", + requestType = com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getBatchTranslateDocumentMethod() { + io.grpc.MethodDescriptor getBatchTranslateDocumentMethod; + if ((getBatchTranslateDocumentMethod = TranslationServiceGrpc.getBatchTranslateDocumentMethod) == null) { + synchronized (TranslationServiceGrpc.class) { + if ((getBatchTranslateDocumentMethod = TranslationServiceGrpc.getBatchTranslateDocumentMethod) == null) { + TranslationServiceGrpc.getBatchTranslateDocumentMethod = getBatchTranslateDocumentMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BatchTranslateDocument")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new TranslationServiceMethodDescriptorSupplier("BatchTranslateDocument")) + .build(); + } + } + } + return getBatchTranslateDocumentMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateGlossaryMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateGlossary", + requestType = com.google.cloud.translate.v3beta1.CreateGlossaryRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateGlossaryMethod() { + io.grpc.MethodDescriptor getCreateGlossaryMethod; + if ((getCreateGlossaryMethod = TranslationServiceGrpc.getCreateGlossaryMethod) == null) { + synchronized (TranslationServiceGrpc.class) { + if ((getCreateGlossaryMethod = TranslationServiceGrpc.getCreateGlossaryMethod) == null) { + TranslationServiceGrpc.getCreateGlossaryMethod = getCreateGlossaryMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateGlossary")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3beta1.CreateGlossaryRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new TranslationServiceMethodDescriptorSupplier("CreateGlossary")) + .build(); + } + } + } + return getCreateGlossaryMethod; + } + + private static volatile io.grpc.MethodDescriptor getListGlossariesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListGlossaries", + requestType = com.google.cloud.translate.v3beta1.ListGlossariesRequest.class, + responseType = com.google.cloud.translate.v3beta1.ListGlossariesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListGlossariesMethod() { + io.grpc.MethodDescriptor getListGlossariesMethod; + if ((getListGlossariesMethod = TranslationServiceGrpc.getListGlossariesMethod) == null) { + synchronized (TranslationServiceGrpc.class) { + if ((getListGlossariesMethod = TranslationServiceGrpc.getListGlossariesMethod) == null) { + TranslationServiceGrpc.getListGlossariesMethod = getListGlossariesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListGlossaries")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3beta1.ListGlossariesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3beta1.ListGlossariesResponse.getDefaultInstance())) + .setSchemaDescriptor(new TranslationServiceMethodDescriptorSupplier("ListGlossaries")) + .build(); + } + } + } + return getListGlossariesMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetGlossaryMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetGlossary", + requestType = com.google.cloud.translate.v3beta1.GetGlossaryRequest.class, + responseType = com.google.cloud.translate.v3beta1.Glossary.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetGlossaryMethod() { + io.grpc.MethodDescriptor getGetGlossaryMethod; + if ((getGetGlossaryMethod = TranslationServiceGrpc.getGetGlossaryMethod) == null) { + synchronized (TranslationServiceGrpc.class) { + if ((getGetGlossaryMethod = TranslationServiceGrpc.getGetGlossaryMethod) == null) { + TranslationServiceGrpc.getGetGlossaryMethod = getGetGlossaryMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetGlossary")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3beta1.GetGlossaryRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3beta1.Glossary.getDefaultInstance())) + .setSchemaDescriptor(new TranslationServiceMethodDescriptorSupplier("GetGlossary")) + .build(); + } + } + } + return getGetGlossaryMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteGlossaryMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteGlossary", + requestType = com.google.cloud.translate.v3beta1.DeleteGlossaryRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteGlossaryMethod() { + io.grpc.MethodDescriptor getDeleteGlossaryMethod; + if ((getDeleteGlossaryMethod = TranslationServiceGrpc.getDeleteGlossaryMethod) == null) { + synchronized (TranslationServiceGrpc.class) { + if ((getDeleteGlossaryMethod = TranslationServiceGrpc.getDeleteGlossaryMethod) == null) { + TranslationServiceGrpc.getDeleteGlossaryMethod = getDeleteGlossaryMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteGlossary")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3beta1.DeleteGlossaryRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new TranslationServiceMethodDescriptorSupplier("DeleteGlossary")) + .build(); + } + } + } + return getDeleteGlossaryMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static TranslationServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public TranslationServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TranslationServiceStub(channel, callOptions); + } + }; + return TranslationServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static TranslationServiceBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public TranslationServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TranslationServiceBlockingStub(channel, callOptions); + } + }; + return TranslationServiceBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static TranslationServiceFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public TranslationServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TranslationServiceFutureStub(channel, callOptions); + } + }; + return TranslationServiceFutureStub.newStub(factory, channel); + } + + /** + *
+   * Provides natural language translation operations.
+   * 
+ */ + public static abstract class TranslationServiceImplBase implements io.grpc.BindableService { + + /** + *
+     * Translates input text and returns translated text.
+     * 
+ */ + public void translateText(com.google.cloud.translate.v3beta1.TranslateTextRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getTranslateTextMethod(), responseObserver); + } + + /** + *
+     * Detects the language of text within a request.
+     * 
+ */ + public void detectLanguage(com.google.cloud.translate.v3beta1.DetectLanguageRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDetectLanguageMethod(), responseObserver); + } + + /** + *
+     * Returns a list of supported languages for translation.
+     * 
+ */ + public void getSupportedLanguages(com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSupportedLanguagesMethod(), responseObserver); + } + + /** + *
+     * Translates documents in synchronous mode.
+     * 
+ */ + public void translateDocument(com.google.cloud.translate.v3beta1.TranslateDocumentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getTranslateDocumentMethod(), responseObserver); + } + + /** + *
+     * Translates a large volume of text in asynchronous batch mode.
+     * This function provides real-time output as the inputs are being processed.
+     * If caller cancels a request, the partial results (for an input file, it's
+     * all or nothing) may still be available on the specified output location.
+     * This call returns immediately and you can
+     * use google.longrunning.Operation.name to poll the status of the call.
+     * 
+ */ + public void batchTranslateText(com.google.cloud.translate.v3beta1.BatchTranslateTextRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getBatchTranslateTextMethod(), responseObserver); + } + + /** + *
+     * Translates a large volume of documents in asynchronous batch mode.
+     * This function provides real-time output as the inputs are being processed.
+     * If caller cancels a request, the partial results (for an input file, it's
+     * all or nothing) may still be available on the specified output location.
+     * This call returns immediately and you can use
+     * google.longrunning.Operation.name to poll the status of the call.
+     * 
+ */ + public void batchTranslateDocument(com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getBatchTranslateDocumentMethod(), responseObserver); + } + + /** + *
+     * Creates a glossary and returns the long-running operation. Returns
+     * NOT_FOUND, if the project doesn't exist.
+     * 
+ */ + public void createGlossary(com.google.cloud.translate.v3beta1.CreateGlossaryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateGlossaryMethod(), responseObserver); + } + + /** + *
+     * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't
+     * exist.
+     * 
+ */ + public void listGlossaries(com.google.cloud.translate.v3beta1.ListGlossariesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListGlossariesMethod(), responseObserver); + } + + /** + *
+     * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't
+     * exist.
+     * 
+ */ + public void getGlossary(com.google.cloud.translate.v3beta1.GetGlossaryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetGlossaryMethod(), responseObserver); + } + + /** + *
+     * Deletes a glossary, or cancels glossary construction
+     * if the glossary isn't created yet.
+     * Returns NOT_FOUND, if the glossary doesn't exist.
+     * 
+ */ + public void deleteGlossary(com.google.cloud.translate.v3beta1.DeleteGlossaryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteGlossaryMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getTranslateTextMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3beta1.TranslateTextRequest, + com.google.cloud.translate.v3beta1.TranslateTextResponse>( + this, METHODID_TRANSLATE_TEXT))) + .addMethod( + getDetectLanguageMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3beta1.DetectLanguageRequest, + com.google.cloud.translate.v3beta1.DetectLanguageResponse>( + this, METHODID_DETECT_LANGUAGE))) + .addMethod( + getGetSupportedLanguagesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest, + com.google.cloud.translate.v3beta1.SupportedLanguages>( + this, METHODID_GET_SUPPORTED_LANGUAGES))) + .addMethod( + getTranslateDocumentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3beta1.TranslateDocumentRequest, + com.google.cloud.translate.v3beta1.TranslateDocumentResponse>( + this, METHODID_TRANSLATE_DOCUMENT))) + .addMethod( + getBatchTranslateTextMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3beta1.BatchTranslateTextRequest, + com.google.longrunning.Operation>( + this, METHODID_BATCH_TRANSLATE_TEXT))) + .addMethod( + getBatchTranslateDocumentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest, + com.google.longrunning.Operation>( + this, METHODID_BATCH_TRANSLATE_DOCUMENT))) + .addMethod( + getCreateGlossaryMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3beta1.CreateGlossaryRequest, + com.google.longrunning.Operation>( + this, METHODID_CREATE_GLOSSARY))) + .addMethod( + getListGlossariesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3beta1.ListGlossariesRequest, + com.google.cloud.translate.v3beta1.ListGlossariesResponse>( + this, METHODID_LIST_GLOSSARIES))) + .addMethod( + getGetGlossaryMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3beta1.GetGlossaryRequest, + com.google.cloud.translate.v3beta1.Glossary>( + this, METHODID_GET_GLOSSARY))) + .addMethod( + getDeleteGlossaryMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3beta1.DeleteGlossaryRequest, + com.google.longrunning.Operation>( + this, METHODID_DELETE_GLOSSARY))) + .build(); + } + } + + /** + *
+   * Provides natural language translation operations.
+   * 
+ */ + public static final class TranslationServiceStub extends io.grpc.stub.AbstractAsyncStub { + private TranslationServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected TranslationServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TranslationServiceStub(channel, callOptions); + } + + /** + *
+     * Translates input text and returns translated text.
+     * 
+ */ + public void translateText(com.google.cloud.translate.v3beta1.TranslateTextRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getTranslateTextMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Detects the language of text within a request.
+     * 
+ */ + public void detectLanguage(com.google.cloud.translate.v3beta1.DetectLanguageRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDetectLanguageMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Returns a list of supported languages for translation.
+     * 
+ */ + public void getSupportedLanguages(com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetSupportedLanguagesMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Translates documents in synchronous mode.
+     * 
+ */ + public void translateDocument(com.google.cloud.translate.v3beta1.TranslateDocumentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getTranslateDocumentMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Translates a large volume of text in asynchronous batch mode.
+     * This function provides real-time output as the inputs are being processed.
+     * If caller cancels a request, the partial results (for an input file, it's
+     * all or nothing) may still be available on the specified output location.
+     * This call returns immediately and you can
+     * use google.longrunning.Operation.name to poll the status of the call.
+     * 
+ */ + public void batchTranslateText(com.google.cloud.translate.v3beta1.BatchTranslateTextRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getBatchTranslateTextMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Translates a large volume of documents in asynchronous batch mode.
+     * This function provides real-time output as the inputs are being processed.
+     * If caller cancels a request, the partial results (for an input file, it's
+     * all or nothing) may still be available on the specified output location.
+     * This call returns immediately and you can use
+     * google.longrunning.Operation.name to poll the status of the call.
+     * 
+ */ + public void batchTranslateDocument(com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getBatchTranslateDocumentMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates a glossary and returns the long-running operation. Returns
+     * NOT_FOUND, if the project doesn't exist.
+     * 
+ */ + public void createGlossary(com.google.cloud.translate.v3beta1.CreateGlossaryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateGlossaryMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't
+     * exist.
+     * 
+ */ + public void listGlossaries(com.google.cloud.translate.v3beta1.ListGlossariesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListGlossariesMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't
+     * exist.
+     * 
+ */ + public void getGlossary(com.google.cloud.translate.v3beta1.GetGlossaryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetGlossaryMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes a glossary, or cancels glossary construction
+     * if the glossary isn't created yet.
+     * Returns NOT_FOUND, if the glossary doesn't exist.
+     * 
+ */ + public void deleteGlossary(com.google.cloud.translate.v3beta1.DeleteGlossaryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteGlossaryMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * Provides natural language translation operations.
+   * 
+ */ + public static final class TranslationServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private TranslationServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected TranslationServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TranslationServiceBlockingStub(channel, callOptions); + } + + /** + *
+     * Translates input text and returns translated text.
+     * 
+ */ + public com.google.cloud.translate.v3beta1.TranslateTextResponse translateText(com.google.cloud.translate.v3beta1.TranslateTextRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getTranslateTextMethod(), getCallOptions(), request); + } + + /** + *
+     * Detects the language of text within a request.
+     * 
+ */ + public com.google.cloud.translate.v3beta1.DetectLanguageResponse detectLanguage(com.google.cloud.translate.v3beta1.DetectLanguageRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDetectLanguageMethod(), getCallOptions(), request); + } + + /** + *
+     * Returns a list of supported languages for translation.
+     * 
+ */ + public com.google.cloud.translate.v3beta1.SupportedLanguages getSupportedLanguages(com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetSupportedLanguagesMethod(), getCallOptions(), request); + } + + /** + *
+     * Translates documents in synchronous mode.
+     * 
+ */ + public com.google.cloud.translate.v3beta1.TranslateDocumentResponse translateDocument(com.google.cloud.translate.v3beta1.TranslateDocumentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getTranslateDocumentMethod(), getCallOptions(), request); + } + + /** + *
+     * Translates a large volume of text in asynchronous batch mode.
+     * This function provides real-time output as the inputs are being processed.
+     * If caller cancels a request, the partial results (for an input file, it's
+     * all or nothing) may still be available on the specified output location.
+     * This call returns immediately and you can
+     * use google.longrunning.Operation.name to poll the status of the call.
+     * 
+ */ + public com.google.longrunning.Operation batchTranslateText(com.google.cloud.translate.v3beta1.BatchTranslateTextRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getBatchTranslateTextMethod(), getCallOptions(), request); + } + + /** + *
+     * Translates a large volume of documents in asynchronous batch mode.
+     * This function provides real-time output as the inputs are being processed.
+     * If caller cancels a request, the partial results (for an input file, it's
+     * all or nothing) may still be available on the specified output location.
+     * This call returns immediately and you can use
+     * google.longrunning.Operation.name to poll the status of the call.
+     * 
+ */ + public com.google.longrunning.Operation batchTranslateDocument(com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getBatchTranslateDocumentMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates a glossary and returns the long-running operation. Returns
+     * NOT_FOUND, if the project doesn't exist.
+     * 
+ */ + public com.google.longrunning.Operation createGlossary(com.google.cloud.translate.v3beta1.CreateGlossaryRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateGlossaryMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't
+     * exist.
+     * 
+ */ + public com.google.cloud.translate.v3beta1.ListGlossariesResponse listGlossaries(com.google.cloud.translate.v3beta1.ListGlossariesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListGlossariesMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't
+     * exist.
+     * 
+ */ + public com.google.cloud.translate.v3beta1.Glossary getGlossary(com.google.cloud.translate.v3beta1.GetGlossaryRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetGlossaryMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes a glossary, or cancels glossary construction
+     * if the glossary isn't created yet.
+     * Returns NOT_FOUND, if the glossary doesn't exist.
+     * 
+ */ + public com.google.longrunning.Operation deleteGlossary(com.google.cloud.translate.v3beta1.DeleteGlossaryRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteGlossaryMethod(), getCallOptions(), request); + } + } + + /** + *
+   * Provides natural language translation operations.
+   * 
+ */ + public static final class TranslationServiceFutureStub extends io.grpc.stub.AbstractFutureStub { + private TranslationServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected TranslationServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TranslationServiceFutureStub(channel, callOptions); + } + + /** + *
+     * Translates input text and returns translated text.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture translateText( + com.google.cloud.translate.v3beta1.TranslateTextRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getTranslateTextMethod(), getCallOptions()), request); + } + + /** + *
+     * Detects the language of text within a request.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture detectLanguage( + com.google.cloud.translate.v3beta1.DetectLanguageRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDetectLanguageMethod(), getCallOptions()), request); + } + + /** + *
+     * Returns a list of supported languages for translation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getSupportedLanguages( + com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetSupportedLanguagesMethod(), getCallOptions()), request); + } + + /** + *
+     * Translates documents in synchronous mode.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture translateDocument( + com.google.cloud.translate.v3beta1.TranslateDocumentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getTranslateDocumentMethod(), getCallOptions()), request); + } + + /** + *
+     * Translates a large volume of text in asynchronous batch mode.
+     * This function provides real-time output as the inputs are being processed.
+     * If caller cancels a request, the partial results (for an input file, it's
+     * all or nothing) may still be available on the specified output location.
+     * This call returns immediately and you can
+     * use google.longrunning.Operation.name to poll the status of the call.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture batchTranslateText( + com.google.cloud.translate.v3beta1.BatchTranslateTextRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getBatchTranslateTextMethod(), getCallOptions()), request); + } + + /** + *
+     * Translates a large volume of documents in asynchronous batch mode.
+     * This function provides real-time output as the inputs are being processed.
+     * If caller cancels a request, the partial results (for an input file, it's
+     * all or nothing) may still be available on the specified output location.
+     * This call returns immediately and you can use
+     * google.longrunning.Operation.name to poll the status of the call.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture batchTranslateDocument( + com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getBatchTranslateDocumentMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates a glossary and returns the long-running operation. Returns
+     * NOT_FOUND, if the project doesn't exist.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createGlossary( + com.google.cloud.translate.v3beta1.CreateGlossaryRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateGlossaryMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't
+     * exist.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listGlossaries( + com.google.cloud.translate.v3beta1.ListGlossariesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListGlossariesMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't
+     * exist.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getGlossary( + com.google.cloud.translate.v3beta1.GetGlossaryRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetGlossaryMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes a glossary, or cancels glossary construction
+     * if the glossary isn't created yet.
+     * Returns NOT_FOUND, if the glossary doesn't exist.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteGlossary( + com.google.cloud.translate.v3beta1.DeleteGlossaryRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteGlossaryMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_TRANSLATE_TEXT = 0; + private static final int METHODID_DETECT_LANGUAGE = 1; + private static final int METHODID_GET_SUPPORTED_LANGUAGES = 2; + private static final int METHODID_TRANSLATE_DOCUMENT = 3; + private static final int METHODID_BATCH_TRANSLATE_TEXT = 4; + private static final int METHODID_BATCH_TRANSLATE_DOCUMENT = 5; + private static final int METHODID_CREATE_GLOSSARY = 6; + private static final int METHODID_LIST_GLOSSARIES = 7; + private static final int METHODID_GET_GLOSSARY = 8; + private static final int METHODID_DELETE_GLOSSARY = 9; + + 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 TranslationServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(TranslationServiceImplBase 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_TRANSLATE_TEXT: + serviceImpl.translateText((com.google.cloud.translate.v3beta1.TranslateTextRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DETECT_LANGUAGE: + serviceImpl.detectLanguage((com.google.cloud.translate.v3beta1.DetectLanguageRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_SUPPORTED_LANGUAGES: + serviceImpl.getSupportedLanguages((com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_TRANSLATE_DOCUMENT: + serviceImpl.translateDocument((com.google.cloud.translate.v3beta1.TranslateDocumentRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_BATCH_TRANSLATE_TEXT: + serviceImpl.batchTranslateText((com.google.cloud.translate.v3beta1.BatchTranslateTextRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_BATCH_TRANSLATE_DOCUMENT: + serviceImpl.batchTranslateDocument((com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_GLOSSARY: + serviceImpl.createGlossary((com.google.cloud.translate.v3beta1.CreateGlossaryRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_GLOSSARIES: + serviceImpl.listGlossaries((com.google.cloud.translate.v3beta1.ListGlossariesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_GLOSSARY: + serviceImpl.getGlossary((com.google.cloud.translate.v3beta1.GetGlossaryRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_GLOSSARY: + serviceImpl.deleteGlossary((com.google.cloud.translate.v3beta1.DeleteGlossaryRequest) 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(); + } + } + } + + private static abstract class TranslationServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + TranslationServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("TranslationService"); + } + } + + private static final class TranslationServiceFileDescriptorSupplier + extends TranslationServiceBaseDescriptorSupplier { + TranslationServiceFileDescriptorSupplier() {} + } + + private static final class TranslationServiceMethodDescriptorSupplier + extends TranslationServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + TranslationServiceMethodDescriptorSupplier(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 (TranslationServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new TranslationServiceFileDescriptorSupplier()) + .addMethod(getTranslateTextMethod()) + .addMethod(getDetectLanguageMethod()) + .addMethod(getGetSupportedLanguagesMethod()) + .addMethod(getTranslateDocumentMethod()) + .addMethod(getBatchTranslateTextMethod()) + .addMethod(getBatchTranslateDocumentMethod()) + .addMethod(getCreateGlossaryMethod()) + .addMethod(getListGlossariesMethod()) + .addMethod(getGetGlossaryMethod()) + .addMethod(getDeleteGlossaryMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/location/GetLocationRequest.java b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/GetLocationRequest.java similarity index 68% rename from proto-google-cloud-translate-v3/src/main/java/com/google/cloud/location/GetLocationRequest.java rename to owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/GetLocationRequest.java index 6b7c7e0a..0e0504b0 100644 --- a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/location/GetLocationRequest.java +++ b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/GetLocationRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 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/location/locations.proto package com.google.cloud.location; /** - * - * *
  * The request message for [Locations.GetLocation][google.cloud.location.Locations.GetLocation].
  * 
* * Protobuf type {@code google.cloud.location.GetLocationRequest} */ -public final class GetLocationRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetLocationRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.location.GetLocationRequest) GetLocationRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetLocationRequest.newBuilder() to construct. private GetLocationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetLocationRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetLocationRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetLocationRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,58 +53,52 @@ private GetLocationRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.location.LocationsProto - .internal_static_google_cloud_location_GetLocationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.location.LocationsProto.internal_static_google_cloud_location_GetLocationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.location.LocationsProto - .internal_static_google_cloud_location_GetLocationRequest_fieldAccessorTable + return com.google.cloud.location.LocationsProto.internal_static_google_cloud_location_GetLocationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.location.GetLocationRequest.class, - com.google.cloud.location.GetLocationRequest.Builder.class); + com.google.cloud.location.GetLocationRequest.class, com.google.cloud.location.GetLocationRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Resource name for the location.
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -130,29 +107,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; } } /** - * - * *
    * Resource name for the location.
    * 
* * 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 { @@ -161,7 +138,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -173,8 +149,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + 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_); } unknownFields.writeTo(output); @@ -186,7 +163,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } size += unknownFields.getSerializedSize(); @@ -197,15 +174,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.cloud.location.GetLocationRequest)) { return super.equals(obj); } - com.google.cloud.location.GetLocationRequest other = - (com.google.cloud.location.GetLocationRequest) obj; + com.google.cloud.location.GetLocationRequest other = (com.google.cloud.location.GetLocationRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -224,127 +201,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.location.GetLocationRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.location.GetLocationRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.location.GetLocationRequest 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.cloud.location.GetLocationRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.location.GetLocationRequest 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.cloud.location.GetLocationRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.location.GetLocationRequest 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.cloud.location.GetLocationRequest 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.cloud.location.GetLocationRequest 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.cloud.location.GetLocationRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.location.GetLocationRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.location.GetLocationRequest 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.cloud.location.GetLocationRequest 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.cloud.location.GetLocationRequest 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.cloud.location.GetLocationRequest 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 for [Locations.GetLocation][google.cloud.location.Locations.GetLocation].
    * 
* * Protobuf type {@code google.cloud.location.GetLocationRequest} */ - 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.location.GetLocationRequest) com.google.cloud.location.GetLocationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.location.LocationsProto - .internal_static_google_cloud_location_GetLocationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.location.LocationsProto.internal_static_google_cloud_location_GetLocationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.location.LocationsProto - .internal_static_google_cloud_location_GetLocationRequest_fieldAccessorTable + return com.google.cloud.location.LocationsProto.internal_static_google_cloud_location_GetLocationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.location.GetLocationRequest.class, - com.google.cloud.location.GetLocationRequest.Builder.class); + com.google.cloud.location.GetLocationRequest.class, com.google.cloud.location.GetLocationRequest.Builder.class); } // Construct using com.google.cloud.location.GetLocationRequest.newBuilder() @@ -352,15 +320,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -370,9 +339,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.location.LocationsProto - .internal_static_google_cloud_location_GetLocationRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.location.LocationsProto.internal_static_google_cloud_location_GetLocationRequest_descriptor; } @java.lang.Override @@ -391,8 +360,7 @@ public com.google.cloud.location.GetLocationRequest build() { @java.lang.Override public com.google.cloud.location.GetLocationRequest buildPartial() { - com.google.cloud.location.GetLocationRequest result = - new com.google.cloud.location.GetLocationRequest(this); + com.google.cloud.location.GetLocationRequest result = new com.google.cloud.location.GetLocationRequest(this); result.name_ = name_; onBuilt(); return result; @@ -402,39 +370,38 @@ public com.google.cloud.location.GetLocationRequest 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.cloud.location.GetLocationRequest) { - return mergeFrom((com.google.cloud.location.GetLocationRequest) other); + return mergeFrom((com.google.cloud.location.GetLocationRequest)other); } else { super.mergeFrom(other); return this; @@ -478,20 +445,18 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Resource name for the location.
      * 
* * 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; @@ -500,21 +465,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Resource name for the location.
      * 
* * 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 { @@ -522,68 +486,61 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Resource name for the location.
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Resource name for the location.
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Resource name for the location.
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; 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 +550,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.location.GetLocationRequest) } // @@protoc_insertion_point(class_scope:google.cloud.location.GetLocationRequest) private static final com.google.cloud.location.GetLocationRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.location.GetLocationRequest(); } @@ -607,16 +564,16 @@ public static com.google.cloud.location.GetLocationRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetLocationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetLocationRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetLocationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetLocationRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -631,4 +588,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.location.GetLocationRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/GetLocationRequestOrBuilder.java b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/GetLocationRequestOrBuilder.java new file mode 100644 index 00000000..c55d2b31 --- /dev/null +++ b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/GetLocationRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/location/locations.proto + +package com.google.cloud.location; + +public interface GetLocationRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.location.GetLocationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Resource name for the location.
+   * 
+ * + * string name = 1; + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Resource name for the location.
+   * 
+ * + * string name = 1; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/location/ListLocationsRequest.java b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/ListLocationsRequest.java similarity index 70% rename from proto-google-cloud-translate-v3/src/main/java/com/google/cloud/location/ListLocationsRequest.java rename to owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/ListLocationsRequest.java index e1b3af7f..a8fafc85 100644 --- a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/location/ListLocationsRequest.java +++ b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/ListLocationsRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 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/location/locations.proto package com.google.cloud.location; /** - * - * *
  * The request message for [Locations.ListLocations][google.cloud.location.Locations.ListLocations].
  * 
* * Protobuf type {@code google.cloud.location.ListLocationsRequest} */ -public final class ListLocationsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListLocationsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.location.ListLocationsRequest) ListLocationsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListLocationsRequest.newBuilder() to construct. private ListLocationsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListLocationsRequest() { name_ = ""; filter_ = ""; @@ -45,15 +27,16 @@ private ListLocationsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListLocationsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListLocationsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,77 +55,69 @@ private ListLocationsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - case 24: - { - pageSize_ = input.readInt32(); - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + filter_ = s; + break; + } + case 24: { - pageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageSize_ = input.readInt32(); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.location.LocationsProto - .internal_static_google_cloud_location_ListLocationsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.location.LocationsProto.internal_static_google_cloud_location_ListLocationsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.location.LocationsProto - .internal_static_google_cloud_location_ListLocationsRequest_fieldAccessorTable + return com.google.cloud.location.LocationsProto.internal_static_google_cloud_location_ListLocationsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.location.ListLocationsRequest.class, - com.google.cloud.location.ListLocationsRequest.Builder.class); + com.google.cloud.location.ListLocationsRequest.class, com.google.cloud.location.ListLocationsRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * The resource that owns the locations collection, if applicable.
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -151,29 +126,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 resource that owns the locations collection, if applicable.
    * 
* * 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 { @@ -184,14 +159,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int FILTER_FIELD_NUMBER = 2; private volatile java.lang.Object filter_; /** - * - * *
    * The standard list filter.
    * 
* * string filter = 2; - * * @return The filter. */ @java.lang.Override @@ -200,29 +172,29 @@ public java.lang.String getFilter() { 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(); filter_ = s; return s; } } /** - * - * *
    * The standard list filter.
    * 
* * string filter = 2; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; 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); filter_ = b; return b; } else { @@ -233,14 +205,11 @@ public com.google.protobuf.ByteString getFilterBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_; /** - * - * *
    * The standard list page size.
    * 
* * int32 page_size = 3; - * * @return The pageSize. */ @java.lang.Override @@ -251,14 +220,11 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 4; private volatile java.lang.Object pageToken_; /** - * - * *
    * The standard list page token.
    * 
* * string page_token = 4; - * * @return The pageToken. */ @java.lang.Override @@ -267,29 +233,29 @@ 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; } } /** - * - * *
    * The standard list page token.
    * 
* * string page_token = 4; - * * @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 { @@ -298,7 +264,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -310,17 +275,18 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + 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_); } - if (!getFilterBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, filter_); } if (pageSize_ != 0) { output.writeInt32(3, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pageToken_); } unknownFields.writeTo(output); @@ -332,16 +298,17 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (!getFilterBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); } size += unknownFields.getSerializedSize(); @@ -352,18 +319,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.cloud.location.ListLocationsRequest)) { return super.equals(obj); } - com.google.cloud.location.ListLocationsRequest other = - (com.google.cloud.location.ListLocationsRequest) obj; + com.google.cloud.location.ListLocationsRequest other = (com.google.cloud.location.ListLocationsRequest) obj; - if (!getName().equals(other.getName())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -388,127 +358,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.location.ListLocationsRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.location.ListLocationsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.location.ListLocationsRequest 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.cloud.location.ListLocationsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.location.ListLocationsRequest 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.cloud.location.ListLocationsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.location.ListLocationsRequest 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.cloud.location.ListLocationsRequest 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.cloud.location.ListLocationsRequest 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.cloud.location.ListLocationsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.location.ListLocationsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.location.ListLocationsRequest 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.cloud.location.ListLocationsRequest 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.cloud.location.ListLocationsRequest 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.cloud.location.ListLocationsRequest 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 for [Locations.ListLocations][google.cloud.location.Locations.ListLocations].
    * 
* * Protobuf type {@code google.cloud.location.ListLocationsRequest} */ - 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.location.ListLocationsRequest) com.google.cloud.location.ListLocationsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.location.LocationsProto - .internal_static_google_cloud_location_ListLocationsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.location.LocationsProto.internal_static_google_cloud_location_ListLocationsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.location.LocationsProto - .internal_static_google_cloud_location_ListLocationsRequest_fieldAccessorTable + return com.google.cloud.location.LocationsProto.internal_static_google_cloud_location_ListLocationsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.location.ListLocationsRequest.class, - com.google.cloud.location.ListLocationsRequest.Builder.class); + com.google.cloud.location.ListLocationsRequest.class, com.google.cloud.location.ListLocationsRequest.Builder.class); } // Construct using com.google.cloud.location.ListLocationsRequest.newBuilder() @@ -516,15 +477,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -540,9 +502,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.location.LocationsProto - .internal_static_google_cloud_location_ListLocationsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.location.LocationsProto.internal_static_google_cloud_location_ListLocationsRequest_descriptor; } @java.lang.Override @@ -561,8 +523,7 @@ public com.google.cloud.location.ListLocationsRequest build() { @java.lang.Override public com.google.cloud.location.ListLocationsRequest buildPartial() { - com.google.cloud.location.ListLocationsRequest result = - new com.google.cloud.location.ListLocationsRequest(this); + com.google.cloud.location.ListLocationsRequest result = new com.google.cloud.location.ListLocationsRequest(this); result.name_ = name_; result.filter_ = filter_; result.pageSize_ = pageSize_; @@ -575,39 +536,38 @@ public com.google.cloud.location.ListLocationsRequest 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.cloud.location.ListLocationsRequest) { - return mergeFrom((com.google.cloud.location.ListLocationsRequest) other); + return mergeFrom((com.google.cloud.location.ListLocationsRequest)other); } else { super.mergeFrom(other); return this; @@ -662,20 +622,18 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * The resource that owns the locations collection, if applicable.
      * 
* * 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; @@ -684,21 +642,20 @@ public java.lang.String getName() { } } /** - * - * *
      * The resource that owns the locations collection, if applicable.
      * 
* * 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 { @@ -706,61 +663,54 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The resource that owns the locations collection, if applicable.
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * The resource that owns the locations collection, if applicable.
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * The resource that owns the locations collection, if applicable.
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -768,20 +718,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * The standard list filter.
      * 
* * string filter = 2; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; 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(); filter_ = s; return s; @@ -790,21 +738,20 @@ public java.lang.String getFilter() { } } /** - * - * *
      * The standard list filter.
      * 
* * string filter = 2; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; 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); filter_ = b; return b; } else { @@ -812,76 +759,66 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * The standard list filter.
      * 
* * string filter = 2; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { + public Builder setFilter( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** - * - * *
      * The standard list filter.
      * 
* * string filter = 2; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
      * The standard list filter.
      * 
* * string filter = 2; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The standard list page size.
      * 
* * int32 page_size = 3; - * * @return The pageSize. */ @java.lang.Override @@ -889,36 +826,30 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The standard list page size.
      * 
* * int32 page_size = 3; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * The standard list page size.
      * 
* * int32 page_size = 3; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -926,20 +857,18 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * The standard list page token.
      * 
* * string page_token = 4; - * * @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; @@ -948,21 +877,20 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * The standard list page token.
      * 
* * string page_token = 4; - * * @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 { @@ -970,68 +898,61 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * The standard list page token.
      * 
* * string page_token = 4; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * The standard list page token.
      * 
* * string page_token = 4; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * The standard list page token.
      * 
* * string page_token = 4; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; 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); } @@ -1041,12 +962,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.location.ListLocationsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.location.ListLocationsRequest) private static final com.google.cloud.location.ListLocationsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.location.ListLocationsRequest(); } @@ -1055,16 +976,16 @@ public static com.google.cloud.location.ListLocationsRequest getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListLocationsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListLocationsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListLocationsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListLocationsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1079,4 +1000,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.location.ListLocationsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/ListLocationsRequestOrBuilder.java b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/ListLocationsRequestOrBuilder.java similarity index 61% rename from proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/ListLocationsRequestOrBuilder.java rename to owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/ListLocationsRequestOrBuilder.java index 3a3f39a7..c7aae890 100644 --- a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/ListLocationsRequestOrBuilder.java +++ b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/ListLocationsRequestOrBuilder.java @@ -1,113 +1,79 @@ -/* - * Copyright 2020 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/location/locations.proto package com.google.cloud.location; -public interface ListLocationsRequestOrBuilder - extends +public interface ListLocationsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.location.ListLocationsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The resource that owns the locations collection, if applicable.
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The resource that owns the locations collection, if applicable.
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * The standard list filter.
    * 
* * string filter = 2; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * The standard list filter.
    * 
* * string filter = 2; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * The standard list page size.
    * 
* * int32 page_size = 3; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * The standard list page token.
    * 
* * string page_token = 4; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * The standard list page token.
    * 
* * string page_token = 4; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/location/ListLocationsResponse.java b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/ListLocationsResponse.java similarity index 74% rename from proto-google-cloud-translate-v3/src/main/java/com/google/cloud/location/ListLocationsResponse.java rename to owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/ListLocationsResponse.java index 8e7553c0..368d21f4 100644 --- a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/location/ListLocationsResponse.java +++ b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/ListLocationsResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 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/location/locations.proto package com.google.cloud.location; /** - * - * *
  * The response message for [Locations.ListLocations][google.cloud.location.Locations.ListLocations].
  * 
* * Protobuf type {@code google.cloud.location.ListLocationsResponse} */ -public final class ListLocationsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListLocationsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.location.ListLocationsResponse) ListLocationsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListLocationsResponse.newBuilder() to construct. private ListLocationsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListLocationsResponse() { locations_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,15 +26,16 @@ private ListLocationsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListLocationsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListLocationsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,37 +55,35 @@ private ListLocationsResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - locations_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - locations_.add( - input.readMessage( - com.google.cloud.location.Location.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + locations_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + locations_.add( + input.readMessage(com.google.cloud.location.Location.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { locations_ = java.util.Collections.unmodifiableList(locations_); @@ -111,27 +92,22 @@ private ListLocationsResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.location.LocationsProto - .internal_static_google_cloud_location_ListLocationsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.location.LocationsProto.internal_static_google_cloud_location_ListLocationsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.location.LocationsProto - .internal_static_google_cloud_location_ListLocationsResponse_fieldAccessorTable + return com.google.cloud.location.LocationsProto.internal_static_google_cloud_location_ListLocationsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.location.ListLocationsResponse.class, - com.google.cloud.location.ListLocationsResponse.Builder.class); + com.google.cloud.location.ListLocationsResponse.class, com.google.cloud.location.ListLocationsResponse.Builder.class); } public static final int LOCATIONS_FIELD_NUMBER = 1; private java.util.List locations_; /** - * - * *
    * A list of locations that matches the specified filter in the request.
    * 
@@ -143,8 +119,6 @@ public java.util.List getLocationsList() { return locations_; } /** - * - * *
    * A list of locations that matches the specified filter in the request.
    * 
@@ -152,13 +126,11 @@ public java.util.List getLocationsList() { * repeated .google.cloud.location.Location locations = 1; */ @java.lang.Override - public java.util.List + public java.util.List getLocationsOrBuilderList() { return locations_; } /** - * - * *
    * A list of locations that matches the specified filter in the request.
    * 
@@ -170,8 +142,6 @@ public int getLocationsCount() { return locations_.size(); } /** - * - * *
    * A list of locations that matches the specified filter in the request.
    * 
@@ -183,8 +153,6 @@ public com.google.cloud.location.Location getLocations(int index) { return locations_.get(index); } /** - * - * *
    * A list of locations that matches the specified filter in the request.
    * 
@@ -192,21 +160,19 @@ public com.google.cloud.location.Location getLocations(int index) { * repeated .google.cloud.location.Location locations = 1; */ @java.lang.Override - public com.google.cloud.location.LocationOrBuilder getLocationsOrBuilder(int index) { + public com.google.cloud.location.LocationOrBuilder getLocationsOrBuilder( + int index) { return locations_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * The standard List next-page token.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -215,29 +181,29 @@ 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; } } /** - * - * *
    * The standard List next-page token.
    * 
* * 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 { @@ -246,7 +212,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -258,11 +223,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 { for (int i = 0; i < locations_.size(); i++) { output.writeMessage(1, locations_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } unknownFields.writeTo(output); @@ -275,9 +241,10 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < locations_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, locations_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, locations_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } size += unknownFields.getSerializedSize(); @@ -288,16 +255,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.cloud.location.ListLocationsResponse)) { return super.equals(obj); } - com.google.cloud.location.ListLocationsResponse other = - (com.google.cloud.location.ListLocationsResponse) obj; + com.google.cloud.location.ListLocationsResponse other = (com.google.cloud.location.ListLocationsResponse) obj; - if (!getLocationsList().equals(other.getLocationsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getLocationsList() + .equals(other.getLocationsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -320,127 +288,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.location.ListLocationsResponse parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.location.ListLocationsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.location.ListLocationsResponse 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.cloud.location.ListLocationsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.location.ListLocationsResponse 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.cloud.location.ListLocationsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.location.ListLocationsResponse 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.cloud.location.ListLocationsResponse 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.cloud.location.ListLocationsResponse 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.cloud.location.ListLocationsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.location.ListLocationsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.location.ListLocationsResponse 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.cloud.location.ListLocationsResponse 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.cloud.location.ListLocationsResponse 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.cloud.location.ListLocationsResponse 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 message for [Locations.ListLocations][google.cloud.location.Locations.ListLocations].
    * 
* * Protobuf type {@code google.cloud.location.ListLocationsResponse} */ - 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.location.ListLocationsResponse) com.google.cloud.location.ListLocationsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.location.LocationsProto - .internal_static_google_cloud_location_ListLocationsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.location.LocationsProto.internal_static_google_cloud_location_ListLocationsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.location.LocationsProto - .internal_static_google_cloud_location_ListLocationsResponse_fieldAccessorTable + return com.google.cloud.location.LocationsProto.internal_static_google_cloud_location_ListLocationsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.location.ListLocationsResponse.class, - com.google.cloud.location.ListLocationsResponse.Builder.class); + com.google.cloud.location.ListLocationsResponse.class, com.google.cloud.location.ListLocationsResponse.Builder.class); } // Construct using com.google.cloud.location.ListLocationsResponse.newBuilder() @@ -448,17 +407,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getLocationsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -474,9 +433,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.location.LocationsProto - .internal_static_google_cloud_location_ListLocationsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.location.LocationsProto.internal_static_google_cloud_location_ListLocationsResponse_descriptor; } @java.lang.Override @@ -495,8 +454,7 @@ public com.google.cloud.location.ListLocationsResponse build() { @java.lang.Override public com.google.cloud.location.ListLocationsResponse buildPartial() { - com.google.cloud.location.ListLocationsResponse result = - new com.google.cloud.location.ListLocationsResponse(this); + com.google.cloud.location.ListLocationsResponse result = new com.google.cloud.location.ListLocationsResponse(this); int from_bitField0_ = bitField0_; if (locationsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -516,39 +474,38 @@ public com.google.cloud.location.ListLocationsResponse 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.cloud.location.ListLocationsResponse) { - return mergeFrom((com.google.cloud.location.ListLocationsResponse) other); + return mergeFrom((com.google.cloud.location.ListLocationsResponse)other); } else { super.mergeFrom(other); return this; @@ -556,8 +513,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.location.ListLocationsResponse other) { - if (other == com.google.cloud.location.ListLocationsResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.location.ListLocationsResponse.getDefaultInstance()) return this; if (locationsBuilder_ == null) { if (!other.locations_.isEmpty()) { if (locations_.isEmpty()) { @@ -576,10 +532,9 @@ public Builder mergeFrom(com.google.cloud.location.ListLocationsResponse other) locationsBuilder_ = null; locations_ = other.locations_; bitField0_ = (bitField0_ & ~0x00000001); - locationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getLocationsFieldBuilder() - : null; + locationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getLocationsFieldBuilder() : null; } else { locationsBuilder_.addAllMessages(other.locations_); } @@ -617,28 +572,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List locations_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureLocationsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { locations_ = new java.util.ArrayList(locations_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.location.Location, - com.google.cloud.location.Location.Builder, - com.google.cloud.location.LocationOrBuilder> - locationsBuilder_; + com.google.cloud.location.Location, com.google.cloud.location.Location.Builder, com.google.cloud.location.LocationOrBuilder> locationsBuilder_; /** - * - * *
      * A list of locations that matches the specified filter in the request.
      * 
@@ -653,8 +601,6 @@ public java.util.List getLocationsList() { } } /** - * - * *
      * A list of locations that matches the specified filter in the request.
      * 
@@ -669,8 +615,6 @@ public int getLocationsCount() { } } /** - * - * *
      * A list of locations that matches the specified filter in the request.
      * 
@@ -685,15 +629,14 @@ public com.google.cloud.location.Location getLocations(int index) { } } /** - * - * *
      * A list of locations that matches the specified filter in the request.
      * 
* * repeated .google.cloud.location.Location locations = 1; */ - public Builder setLocations(int index, com.google.cloud.location.Location value) { + public Builder setLocations( + int index, com.google.cloud.location.Location value) { if (locationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -707,8 +650,6 @@ public Builder setLocations(int index, com.google.cloud.location.Location value) return this; } /** - * - * *
      * A list of locations that matches the specified filter in the request.
      * 
@@ -727,8 +668,6 @@ public Builder setLocations( return this; } /** - * - * *
      * A list of locations that matches the specified filter in the request.
      * 
@@ -749,15 +688,14 @@ public Builder addLocations(com.google.cloud.location.Location value) { return this; } /** - * - * *
      * A list of locations that matches the specified filter in the request.
      * 
* * repeated .google.cloud.location.Location locations = 1; */ - public Builder addLocations(int index, com.google.cloud.location.Location value) { + public Builder addLocations( + int index, com.google.cloud.location.Location value) { if (locationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -771,15 +709,14 @@ public Builder addLocations(int index, com.google.cloud.location.Location value) return this; } /** - * - * *
      * A list of locations that matches the specified filter in the request.
      * 
* * repeated .google.cloud.location.Location locations = 1; */ - public Builder addLocations(com.google.cloud.location.Location.Builder builderForValue) { + public Builder addLocations( + com.google.cloud.location.Location.Builder builderForValue) { if (locationsBuilder_ == null) { ensureLocationsIsMutable(); locations_.add(builderForValue.build()); @@ -790,8 +727,6 @@ public Builder addLocations(com.google.cloud.location.Location.Builder builderFo return this; } /** - * - * *
      * A list of locations that matches the specified filter in the request.
      * 
@@ -810,8 +745,6 @@ public Builder addLocations( return this; } /** - * - * *
      * A list of locations that matches the specified filter in the request.
      * 
@@ -822,7 +755,8 @@ public Builder addAllLocations( java.lang.Iterable values) { if (locationsBuilder_ == null) { ensureLocationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, locations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, locations_); onChanged(); } else { locationsBuilder_.addAllMessages(values); @@ -830,8 +764,6 @@ public Builder addAllLocations( return this; } /** - * - * *
      * A list of locations that matches the specified filter in the request.
      * 
@@ -849,8 +781,6 @@ public Builder clearLocations() { return this; } /** - * - * *
      * A list of locations that matches the specified filter in the request.
      * 
@@ -868,44 +798,39 @@ public Builder removeLocations(int index) { return this; } /** - * - * *
      * A list of locations that matches the specified filter in the request.
      * 
* * repeated .google.cloud.location.Location locations = 1; */ - public com.google.cloud.location.Location.Builder getLocationsBuilder(int index) { + public com.google.cloud.location.Location.Builder getLocationsBuilder( + int index) { return getLocationsFieldBuilder().getBuilder(index); } /** - * - * *
      * A list of locations that matches the specified filter in the request.
      * 
* * repeated .google.cloud.location.Location locations = 1; */ - public com.google.cloud.location.LocationOrBuilder getLocationsOrBuilder(int index) { + public com.google.cloud.location.LocationOrBuilder getLocationsOrBuilder( + int index) { if (locationsBuilder_ == null) { - return locations_.get(index); - } else { + return locations_.get(index); } else { return locationsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * A list of locations that matches the specified filter in the request.
      * 
* * repeated .google.cloud.location.Location locations = 1; */ - public java.util.List - getLocationsOrBuilderList() { + public java.util.List + getLocationsOrBuilderList() { if (locationsBuilder_ != null) { return locationsBuilder_.getMessageOrBuilderList(); } else { @@ -913,8 +838,6 @@ public com.google.cloud.location.LocationOrBuilder getLocationsOrBuilder(int ind } } /** - * - * *
      * A list of locations that matches the specified filter in the request.
      * 
@@ -922,47 +845,42 @@ public com.google.cloud.location.LocationOrBuilder getLocationsOrBuilder(int ind * repeated .google.cloud.location.Location locations = 1; */ public com.google.cloud.location.Location.Builder addLocationsBuilder() { - return getLocationsFieldBuilder() - .addBuilder(com.google.cloud.location.Location.getDefaultInstance()); + return getLocationsFieldBuilder().addBuilder( + com.google.cloud.location.Location.getDefaultInstance()); } /** - * - * *
      * A list of locations that matches the specified filter in the request.
      * 
* * repeated .google.cloud.location.Location locations = 1; */ - public com.google.cloud.location.Location.Builder addLocationsBuilder(int index) { - return getLocationsFieldBuilder() - .addBuilder(index, com.google.cloud.location.Location.getDefaultInstance()); + public com.google.cloud.location.Location.Builder addLocationsBuilder( + int index) { + return getLocationsFieldBuilder().addBuilder( + index, com.google.cloud.location.Location.getDefaultInstance()); } /** - * - * *
      * A list of locations that matches the specified filter in the request.
      * 
* * repeated .google.cloud.location.Location locations = 1; */ - public java.util.List getLocationsBuilderList() { + public java.util.List + getLocationsBuilderList() { return getLocationsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.location.Location, - com.google.cloud.location.Location.Builder, - com.google.cloud.location.LocationOrBuilder> + com.google.cloud.location.Location, com.google.cloud.location.Location.Builder, com.google.cloud.location.LocationOrBuilder> getLocationsFieldBuilder() { if (locationsBuilder_ == null) { - locationsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.location.Location, - com.google.cloud.location.Location.Builder, - com.google.cloud.location.LocationOrBuilder>( - locations_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + locationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.location.Location, com.google.cloud.location.Location.Builder, com.google.cloud.location.LocationOrBuilder>( + locations_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); locations_ = null; } return locationsBuilder_; @@ -970,20 +888,18 @@ public java.util.List getLocationsBu private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * The standard List next-page token.
      * 
* * 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; @@ -992,21 +908,20 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * The standard List next-page token.
      * 
* * 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 { @@ -1014,68 +929,61 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * The standard List next-page token.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * The standard List next-page token.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * The standard List next-page token.
      * 
* * 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) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; 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); } @@ -1085,12 +993,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.location.ListLocationsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.location.ListLocationsResponse) private static final com.google.cloud.location.ListLocationsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.location.ListLocationsResponse(); } @@ -1099,16 +1007,16 @@ public static com.google.cloud.location.ListLocationsResponse getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListLocationsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListLocationsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListLocationsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListLocationsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1123,4 +1031,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.location.ListLocationsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/ListLocationsResponseOrBuilder.java b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/ListLocationsResponseOrBuilder.java similarity index 66% rename from proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/ListLocationsResponseOrBuilder.java rename to owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/ListLocationsResponseOrBuilder.java index 704771cc..f813b85a 100644 --- a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/ListLocationsResponseOrBuilder.java +++ b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/ListLocationsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 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/location/locations.proto package com.google.cloud.location; -public interface ListLocationsResponseOrBuilder - extends +public interface ListLocationsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.location.ListLocationsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * A list of locations that matches the specified filter in the request.
    * 
* * repeated .google.cloud.location.Location locations = 1; */ - java.util.List getLocationsList(); + java.util.List + getLocationsList(); /** - * - * *
    * A list of locations that matches the specified filter in the request.
    * 
@@ -44,8 +25,6 @@ public interface ListLocationsResponseOrBuilder */ com.google.cloud.location.Location getLocations(int index); /** - * - * *
    * A list of locations that matches the specified filter in the request.
    * 
@@ -54,48 +33,41 @@ public interface ListLocationsResponseOrBuilder */ int getLocationsCount(); /** - * - * *
    * A list of locations that matches the specified filter in the request.
    * 
* * repeated .google.cloud.location.Location locations = 1; */ - java.util.List getLocationsOrBuilderList(); + java.util.List + getLocationsOrBuilderList(); /** - * - * *
    * A list of locations that matches the specified filter in the request.
    * 
* * repeated .google.cloud.location.Location locations = 1; */ - com.google.cloud.location.LocationOrBuilder getLocationsOrBuilder(int index); + com.google.cloud.location.LocationOrBuilder getLocationsOrBuilder( + int index); /** - * - * *
    * The standard List next-page token.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * The standard List next-page token.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/location/Location.java b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/Location.java similarity index 67% rename from proto-google-cloud-translate-v3/src/main/java/com/google/cloud/location/Location.java rename to owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/Location.java index 7b7bfc86..4af817e7 100644 --- a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/location/Location.java +++ b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/Location.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 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/location/locations.proto package com.google.cloud.location; /** - * - * *
  * A resource that represents Google Cloud Platform location.
  * 
* * Protobuf type {@code google.cloud.location.Location} */ -public final class Location extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Location extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.location.Location) LocationOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Location.newBuilder() to construct. private Location(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Location() { name_ = ""; locationId_ = ""; @@ -45,15 +27,16 @@ private Location() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Location(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Location( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,111 +56,103 @@ private Location( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; + name_ = s; + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - labels_ = - com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); - break; + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put( + labels__.getKey(), labels__.getValue()); + break; + } + case 26: { + com.google.protobuf.Any.Builder subBuilder = null; + if (metadata_ != null) { + subBuilder = metadata_.toBuilder(); } - case 26: - { - com.google.protobuf.Any.Builder subBuilder = null; - if (metadata_ != null) { - subBuilder = metadata_.toBuilder(); - } - metadata_ = input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(metadata_); - metadata_ = subBuilder.buildPartial(); - } - - break; + metadata_ = input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadata_); + metadata_ = subBuilder.buildPartial(); } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - locationId_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); - displayName_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + locationId_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + displayName_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.location.LocationsProto - .internal_static_google_cloud_location_Location_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.location.LocationsProto.internal_static_google_cloud_location_Location_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 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.cloud.location.LocationsProto - .internal_static_google_cloud_location_Location_fieldAccessorTable + return com.google.cloud.location.LocationsProto.internal_static_google_cloud_location_Location_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.location.Location.class, - com.google.cloud.location.Location.Builder.class); + com.google.cloud.location.Location.class, com.google.cloud.location.Location.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Resource name for the location, which may vary between implementations.
    * For example: `"projects/example-project/locations/us-east1"`
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -186,30 +161,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; } } /** - * - * *
    * Resource name for the location, which may vary between implementations.
    * For example: `"projects/example-project/locations/us-east1"`
    * 
* * 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 { @@ -220,14 +195,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int LOCATION_ID_FIELD_NUMBER = 4; private volatile java.lang.Object locationId_; /** - * - * *
    * The canonical id for this location. For example: `"us-east1"`.
    * 
* * string location_id = 4; - * * @return The locationId. */ @java.lang.Override @@ -236,29 +208,29 @@ public java.lang.String getLocationId() { 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(); locationId_ = s; return s; } } /** - * - * *
    * The canonical id for this location. For example: `"us-east1"`.
    * 
* * string location_id = 4; - * * @return The bytes for locationId. */ @java.lang.Override - public com.google.protobuf.ByteString getLocationIdBytes() { + public com.google.protobuf.ByteString + getLocationIdBytes() { java.lang.Object ref = locationId_; 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); locationId_ = b; return b; } else { @@ -269,15 +241,12 @@ public com.google.protobuf.ByteString getLocationIdBytes() { public static final int DISPLAY_NAME_FIELD_NUMBER = 5; private volatile java.lang.Object displayName_; /** - * - * *
    * The friendly name for this location, typically a nearby city name.
    * For example, "Tokyo".
    * 
* * string display_name = 5; - * * @return The displayName. */ @java.lang.Override @@ -286,30 +255,30 @@ 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; } } /** - * - * *
    * The friendly name for this location, typically a nearby city name.
    * For example, "Tokyo".
    * 
* * string display_name = 5; - * * @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 { @@ -318,23 +287,24 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } public static final int LABELS_FIELD_NUMBER = 2; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.location.LocationsProto - .internal_static_google_cloud_location_Location_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.cloud.location.LocationsProto.internal_static_google_cloud_location_Location_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - - 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_; } @@ -343,8 +313,6 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Cross-service attributes for the location. For example
    *     {"cloud.googleapis.com/region": "us-east1"}
@@ -352,22 +320,22 @@ public int getLabelsCount() {
    *
    * map<string, string> labels = 2;
    */
+
   @java.lang.Override
-  public boolean containsLabels(java.lang.String key) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
+  public boolean containsLabels(
+      java.lang.String key) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
     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();
   }
   /**
-   *
-   *
    * 
    * Cross-service attributes for the location. For example
    *     {"cloud.googleapis.com/region": "us-east1"}
@@ -376,12 +344,11 @@ public java.util.Map getLabels() {
    * map<string, string> labels = 2;
    */
   @java.lang.Override
+
   public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
-   *
-   *
    * 
    * Cross-service attributes for the location. For example
    *     {"cloud.googleapis.com/region": "us-east1"}
@@ -390,16 +357,16 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 2;
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
-    java.util.Map map = internalGetLabels().getMap();
+
+  public java.lang.String getLabelsOrDefault(
+      java.lang.String key,
+      java.lang.String defaultValue) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * Cross-service attributes for the location. For example
    *     {"cloud.googleapis.com/region": "us-east1"}
@@ -408,11 +375,12 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin
    * map<string, string> labels = 2;
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
-    java.util.Map map = internalGetLabels().getMap();
+
+  public java.lang.String getLabelsOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -422,15 +390,12 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
   public static final int METADATA_FIELD_NUMBER = 3;
   private com.google.protobuf.Any metadata_;
   /**
-   *
-   *
    * 
    * Service-specific metadata. For example the available capacity at the given
    * location.
    * 
* * .google.protobuf.Any metadata = 3; - * * @return Whether the metadata field is set. */ @java.lang.Override @@ -438,15 +403,12 @@ public boolean hasMetadata() { return metadata_ != null; } /** - * - * *
    * Service-specific metadata. For example the available capacity at the given
    * location.
    * 
* * .google.protobuf.Any metadata = 3; - * * @return The metadata. */ @java.lang.Override @@ -454,8 +416,6 @@ public com.google.protobuf.Any getMetadata() { return metadata_ == null ? com.google.protobuf.Any.getDefaultInstance() : metadata_; } /** - * - * *
    * Service-specific metadata. For example the available capacity at the given
    * location.
@@ -469,7 +429,6 @@ public com.google.protobuf.AnyOrBuilder getMetadataOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -481,19 +440,24 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
-    if (!getNameBytes().isEmpty()) {
+  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_);
     }
-    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
-        output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 2);
+    com.google.protobuf.GeneratedMessageV3
+      .serializeStringMapTo(
+        output,
+        internalGetLabels(),
+        LabelsDefaultEntryHolder.defaultEntry,
+        2);
     if (metadata_ != null) {
       output.writeMessage(3, getMetadata());
     }
-    if (!getLocationIdBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(locationId_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 4, locationId_);
     }
-    if (!getDisplayNameBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 5, displayName_);
     }
     unknownFields.writeTo(output);
@@ -505,26 +469,27 @@ public int getSerializedSize() {
     if (size != -1) return size;
 
     size = 0;
-    if (!getNameBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
     }
-    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(2, labels__);
+    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(2, labels__);
     }
     if (metadata_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getMetadata());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(3, getMetadata());
     }
-    if (!getLocationIdBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(locationId_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, locationId_);
     }
-    if (!getDisplayNameBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, displayName_);
     }
     size += unknownFields.getSerializedSize();
@@ -535,20 +500,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.cloud.location.Location)) {
       return super.equals(obj);
     }
     com.google.cloud.location.Location other = (com.google.cloud.location.Location) obj;
 
-    if (!getName().equals(other.getName())) return false;
-    if (!getLocationId().equals(other.getLocationId())) return false;
-    if (!getDisplayName().equals(other.getDisplayName())) return false;
-    if (!internalGetLabels().equals(other.internalGetLabels())) return false;
+    if (!getName()
+        .equals(other.getName())) return false;
+    if (!getLocationId()
+        .equals(other.getLocationId())) return false;
+    if (!getDisplayName()
+        .equals(other.getDisplayName())) return false;
+    if (!internalGetLabels().equals(
+        other.internalGetLabels())) return false;
     if (hasMetadata() != other.hasMetadata()) return false;
     if (hasMetadata()) {
-      if (!getMetadata().equals(other.getMetadata())) return false;
+      if (!getMetadata()
+          .equals(other.getMetadata())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -580,146 +550,140 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.location.Location parseFrom(java.nio.ByteBuffer data)
+  public static com.google.cloud.location.Location parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.location.Location 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.cloud.location.Location parseFrom(com.google.protobuf.ByteString data)
+  public static com.google.cloud.location.Location parseFrom(
+      com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.location.Location 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.cloud.location.Location parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.location.Location 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.cloud.location.Location 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.cloud.location.Location 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.cloud.location.Location 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.cloud.location.Location 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.cloud.location.Location 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.cloud.location.Location 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.cloud.location.Location 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 resource that represents Google Cloud Platform location.
    * 
* * Protobuf type {@code google.cloud.location.Location} */ - 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.location.Location) com.google.cloud.location.LocationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.location.LocationsProto - .internal_static_google_cloud_location_Location_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.location.LocationsProto.internal_static_google_cloud_location_Location_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 2: 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 2: 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.cloud.location.LocationsProto - .internal_static_google_cloud_location_Location_fieldAccessorTable + return com.google.cloud.location.LocationsProto.internal_static_google_cloud_location_Location_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.location.Location.class, - com.google.cloud.location.Location.Builder.class); + com.google.cloud.location.Location.class, com.google.cloud.location.Location.Builder.class); } // Construct using com.google.cloud.location.Location.newBuilder() @@ -727,15 +691,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -756,9 +721,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.location.LocationsProto - .internal_static_google_cloud_location_Location_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.location.LocationsProto.internal_static_google_cloud_location_Location_descriptor; } @java.lang.Override @@ -797,39 +762,38 @@ public com.google.cloud.location.Location 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.cloud.location.Location) { - return mergeFrom((com.google.cloud.location.Location) other); + return mergeFrom((com.google.cloud.location.Location)other); } else { super.mergeFrom(other); return this; @@ -850,7 +814,8 @@ public Builder mergeFrom(com.google.cloud.location.Location other) { displayName_ = other.displayName_; onChanged(); } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); if (other.hasMetadata()) { mergeMetadata(other.getMetadata()); } @@ -882,26 +847,23 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Resource name for the location, which may vary between implementations.
      * For example: `"projects/example-project/locations/us-east1"`
      * 
* * 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; @@ -910,22 +872,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Resource name for the location, which may vary between implementations.
      * For example: `"projects/example-project/locations/us-east1"`
      * 
* * 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 { @@ -933,64 +894,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Resource name for the location, which may vary between implementations.
      * For example: `"projects/example-project/locations/us-east1"`
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Resource name for the location, which may vary between implementations.
      * For example: `"projects/example-project/locations/us-east1"`
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Resource name for the location, which may vary between implementations.
      * For example: `"projects/example-project/locations/us-east1"`
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -998,20 +952,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object locationId_ = ""; /** - * - * *
      * The canonical id for this location. For example: `"us-east1"`.
      * 
* * string location_id = 4; - * * @return The locationId. */ public java.lang.String getLocationId() { java.lang.Object ref = locationId_; 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(); locationId_ = s; return s; @@ -1020,21 +972,20 @@ public java.lang.String getLocationId() { } } /** - * - * *
      * The canonical id for this location. For example: `"us-east1"`.
      * 
* * string location_id = 4; - * * @return The bytes for locationId. */ - public com.google.protobuf.ByteString getLocationIdBytes() { + public com.google.protobuf.ByteString + getLocationIdBytes() { java.lang.Object ref = locationId_; 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); locationId_ = b; return b; } else { @@ -1042,61 +993,54 @@ public com.google.protobuf.ByteString getLocationIdBytes() { } } /** - * - * *
      * The canonical id for this location. For example: `"us-east1"`.
      * 
* * string location_id = 4; - * * @param value The locationId to set. * @return This builder for chaining. */ - public Builder setLocationId(java.lang.String value) { + public Builder setLocationId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + locationId_ = value; onChanged(); return this; } /** - * - * *
      * The canonical id for this location. For example: `"us-east1"`.
      * 
* * string location_id = 4; - * * @return This builder for chaining. */ public Builder clearLocationId() { - + locationId_ = getDefaultInstance().getLocationId(); onChanged(); return this; } /** - * - * *
      * The canonical id for this location. For example: `"us-east1"`.
      * 
* * string location_id = 4; - * * @param value The bytes for locationId to set. * @return This builder for chaining. */ - public Builder setLocationIdBytes(com.google.protobuf.ByteString value) { + public Builder setLocationIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + locationId_ = value; onChanged(); return this; @@ -1104,21 +1048,19 @@ public Builder setLocationIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object displayName_ = ""; /** - * - * *
      * The friendly name for this location, typically a nearby city name.
      * For example, "Tokyo".
      * 
* * string display_name = 5; - * * @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; @@ -1127,22 +1069,21 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * The friendly name for this location, typically a nearby city name.
      * For example, "Tokyo".
      * 
* * string display_name = 5; - * * @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 { @@ -1150,84 +1091,78 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * The friendly name for this location, typically a nearby city name.
      * For example, "Tokyo".
      * 
* * string display_name = 5; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { + public Builder setDisplayName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** - * - * *
      * The friendly name for this location, typically a nearby city name.
      * For example, "Tokyo".
      * 
* * string display_name = 5; - * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** - * - * *
      * The friendly name for this location, typically a nearby city name.
      * For example, "Tokyo".
      * 
* * string display_name = 5; - * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; } - 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() { - onChanged(); - ; + internalGetMutableLabels() { + onChanged();; 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(); @@ -1239,8 +1174,6 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Cross-service attributes for the location. For example
      *     {"cloud.googleapis.com/region": "us-east1"}
@@ -1248,22 +1181,22 @@ public int getLabelsCount() {
      *
      * map<string, string> labels = 2;
      */
+
     @java.lang.Override
-    public boolean containsLabels(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
+    public boolean containsLabels(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
       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();
     }
     /**
-     *
-     *
      * 
      * Cross-service attributes for the location. For example
      *     {"cloud.googleapis.com/region": "us-east1"}
@@ -1272,12 +1205,11 @@ public java.util.Map getLabels() {
      * map<string, string> labels = 2;
      */
     @java.lang.Override
+
     public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
-     *
-     *
      * 
      * Cross-service attributes for the location. For example
      *     {"cloud.googleapis.com/region": "us-east1"}
@@ -1286,17 +1218,16 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 2;
      */
     @java.lang.Override
+
     public java.lang.String getLabelsOrDefault(
-        java.lang.String key, java.lang.String defaultValue) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      java.util.Map map = internalGetLabels().getMap();
+        java.lang.String key,
+        java.lang.String defaultValue) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * Cross-service attributes for the location. For example
      *     {"cloud.googleapis.com/region": "us-east1"}
@@ -1305,11 +1236,12 @@ public java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 2;
      */
     @java.lang.Override
-    public java.lang.String getLabelsOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      java.util.Map map = internalGetLabels().getMap();
+
+    public java.lang.String getLabelsOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -1317,12 +1249,11 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
     }
 
     public Builder clearLabels() {
-      internalGetMutableLabels().getMutableMap().clear();
+      internalGetMutableLabels().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Cross-service attributes for the location. For example
      *     {"cloud.googleapis.com/region": "us-east1"}
@@ -1330,21 +1261,23 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 2;
      */
-    public Builder removeLabels(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      internalGetMutableLabels().getMutableMap().remove(key);
+
+    public Builder removeLabels(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      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() {
       return internalGetMutableLabels().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * Cross-service attributes for the location. For example
      *     {"cloud.googleapis.com/region": "us-east1"}
@@ -1352,19 +1285,16 @@ public java.util.Map getMutableLabels() {
      *
      * map<string, string> labels = 2;
      */
-    public Builder putLabels(java.lang.String key, java.lang.String value) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      if (value == null) {
-        throw new java.lang.NullPointerException();
-      }
-      internalGetMutableLabels().getMutableMap().put(key, value);
+    public Builder putLabels(
+        java.lang.String key,
+        java.lang.String value) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      if (value == null) { throw new java.lang.NullPointerException(); }
+      internalGetMutableLabels().getMutableMap()
+          .put(key, value);
       return this;
     }
     /**
-     *
-     *
      * 
      * Cross-service attributes for the location. For example
      *     {"cloud.googleapis.com/region": "us-east1"}
@@ -1372,42 +1302,36 @@ public Builder putLabels(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> labels = 2;
      */
-    public Builder putAllLabels(java.util.Map values) {
-      internalGetMutableLabels().getMutableMap().putAll(values);
+
+    public Builder putAllLabels(
+        java.util.Map values) {
+      internalGetMutableLabels().getMutableMap()
+          .putAll(values);
       return this;
     }
 
     private com.google.protobuf.Any metadata_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Any,
-            com.google.protobuf.Any.Builder,
-            com.google.protobuf.AnyOrBuilder>
-        metadataBuilder_;
+        com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> metadataBuilder_;
     /**
-     *
-     *
      * 
      * Service-specific metadata. For example the available capacity at the given
      * location.
      * 
* * .google.protobuf.Any metadata = 3; - * * @return Whether the metadata field is set. */ public boolean hasMetadata() { return metadataBuilder_ != null || metadata_ != null; } /** - * - * *
      * Service-specific metadata. For example the available capacity at the given
      * location.
      * 
* * .google.protobuf.Any metadata = 3; - * * @return The metadata. */ public com.google.protobuf.Any getMetadata() { @@ -1418,8 +1342,6 @@ public com.google.protobuf.Any getMetadata() { } } /** - * - * *
      * Service-specific metadata. For example the available capacity at the given
      * location.
@@ -1441,8 +1363,6 @@ public Builder setMetadata(com.google.protobuf.Any value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Service-specific metadata. For example the available capacity at the given
      * location.
@@ -1450,7 +1370,8 @@ public Builder setMetadata(com.google.protobuf.Any value) {
      *
      * .google.protobuf.Any metadata = 3;
      */
-    public Builder setMetadata(com.google.protobuf.Any.Builder builderForValue) {
+    public Builder setMetadata(
+        com.google.protobuf.Any.Builder builderForValue) {
       if (metadataBuilder_ == null) {
         metadata_ = builderForValue.build();
         onChanged();
@@ -1461,8 +1382,6 @@ public Builder setMetadata(com.google.protobuf.Any.Builder builderForValue) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Service-specific metadata. For example the available capacity at the given
      * location.
@@ -1473,7 +1392,8 @@ public Builder setMetadata(com.google.protobuf.Any.Builder builderForValue) {
     public Builder mergeMetadata(com.google.protobuf.Any value) {
       if (metadataBuilder_ == null) {
         if (metadata_ != null) {
-          metadata_ = com.google.protobuf.Any.newBuilder(metadata_).mergeFrom(value).buildPartial();
+          metadata_ =
+            com.google.protobuf.Any.newBuilder(metadata_).mergeFrom(value).buildPartial();
         } else {
           metadata_ = value;
         }
@@ -1485,8 +1405,6 @@ public Builder mergeMetadata(com.google.protobuf.Any value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Service-specific metadata. For example the available capacity at the given
      * location.
@@ -1506,8 +1424,6 @@ public Builder clearMetadata() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Service-specific metadata. For example the available capacity at the given
      * location.
@@ -1516,13 +1432,11 @@ public Builder clearMetadata() {
      * .google.protobuf.Any metadata = 3;
      */
     public com.google.protobuf.Any.Builder getMetadataBuilder() {
-
+      
       onChanged();
       return getMetadataFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Service-specific metadata. For example the available capacity at the given
      * location.
@@ -1534,12 +1448,11 @@ public com.google.protobuf.AnyOrBuilder getMetadataOrBuilder() {
       if (metadataBuilder_ != null) {
         return metadataBuilder_.getMessageOrBuilder();
       } else {
-        return metadata_ == null ? com.google.protobuf.Any.getDefaultInstance() : metadata_;
+        return metadata_ == null ?
+            com.google.protobuf.Any.getDefaultInstance() : metadata_;
       }
     }
     /**
-     *
-     *
      * 
      * Service-specific metadata. For example the available capacity at the given
      * location.
@@ -1548,23 +1461,21 @@ public com.google.protobuf.AnyOrBuilder getMetadataOrBuilder() {
      * .google.protobuf.Any metadata = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Any,
-            com.google.protobuf.Any.Builder,
-            com.google.protobuf.AnyOrBuilder>
+        com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> 
         getMetadataFieldBuilder() {
       if (metadataBuilder_ == null) {
-        metadataBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Any,
-                com.google.protobuf.Any.Builder,
-                com.google.protobuf.AnyOrBuilder>(getMetadata(), getParentForChildren(), isClean());
+        metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>(
+                getMetadata(),
+                getParentForChildren(),
+                isClean());
         metadata_ = null;
       }
       return metadataBuilder_;
     }
-
     @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);
     }
 
@@ -1574,12 +1485,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.location.Location)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.location.Location)
   private static final com.google.cloud.location.Location DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.location.Location();
   }
@@ -1588,16 +1499,16 @@ public static com.google.cloud.location.Location getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public Location parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new Location(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public Location parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new Location(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1612,4 +1523,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.location.Location getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/location/LocationOrBuilder.java b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/LocationOrBuilder.java
similarity index 72%
rename from proto-google-cloud-translate-v3/src/main/java/com/google/cloud/location/LocationOrBuilder.java
rename to owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/LocationOrBuilder.java
index 98ab25de..0b24448b 100644
--- a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/location/LocationOrBuilder.java
+++ b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/LocationOrBuilder.java
@@ -1,110 +1,77 @@
-/*
- * Copyright 2020 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/location/locations.proto
 
 package com.google.cloud.location;
 
-public interface LocationOrBuilder
-    extends
+public interface LocationOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.location.Location)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Resource name for the location, which may vary between implementations.
    * For example: `"projects/example-project/locations/us-east1"`
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Resource name for the location, which may vary between implementations.
    * For example: `"projects/example-project/locations/us-east1"`
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * The canonical id for this location. For example: `"us-east1"`.
    * 
* * string location_id = 4; - * * @return The locationId. */ java.lang.String getLocationId(); /** - * - * *
    * The canonical id for this location. For example: `"us-east1"`.
    * 
* * string location_id = 4; - * * @return The bytes for locationId. */ - com.google.protobuf.ByteString getLocationIdBytes(); + com.google.protobuf.ByteString + getLocationIdBytes(); /** - * - * *
    * The friendly name for this location, typically a nearby city name.
    * For example, "Tokyo".
    * 
* * string display_name = 5; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
    * The friendly name for this location, typically a nearby city name.
    * For example, "Tokyo".
    * 
* * string display_name = 5; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
    * Cross-service attributes for the location. For example
    *     {"cloud.googleapis.com/region": "us-east1"}
@@ -114,8 +81,6 @@ public interface LocationOrBuilder
    */
   int getLabelsCount();
   /**
-   *
-   *
    * 
    * Cross-service attributes for the location. For example
    *     {"cloud.googleapis.com/region": "us-east1"}
@@ -123,13 +88,15 @@ public interface LocationOrBuilder
    *
    * map<string, string> labels = 2;
    */
-  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();
   /**
-   *
-   *
    * 
    * Cross-service attributes for the location. For example
    *     {"cloud.googleapis.com/region": "us-east1"}
@@ -137,10 +104,9 @@ public interface LocationOrBuilder
    *
    * map<string, string> labels = 2;
    */
-  java.util.Map getLabelsMap();
+  java.util.Map
+  getLabelsMap();
   /**
-   *
-   *
    * 
    * Cross-service attributes for the location. For example
    *     {"cloud.googleapis.com/region": "us-east1"}
@@ -148,10 +114,11 @@ public interface LocationOrBuilder
    *
    * map<string, string> labels = 2;
    */
-  java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue);
+
+  java.lang.String getLabelsOrDefault(
+      java.lang.String key,
+      java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * Cross-service attributes for the location. For example
    *     {"cloud.googleapis.com/region": "us-east1"}
@@ -159,37 +126,31 @@ public interface LocationOrBuilder
    *
    * map<string, string> labels = 2;
    */
-  java.lang.String getLabelsOrThrow(java.lang.String key);
+
+  java.lang.String getLabelsOrThrow(
+      java.lang.String key);
 
   /**
-   *
-   *
    * 
    * Service-specific metadata. For example the available capacity at the given
    * location.
    * 
* * .google.protobuf.Any metadata = 3; - * * @return Whether the metadata field is set. */ boolean hasMetadata(); /** - * - * *
    * Service-specific metadata. For example the available capacity at the given
    * location.
    * 
* * .google.protobuf.Any metadata = 3; - * * @return The metadata. */ com.google.protobuf.Any getMetadata(); /** - * - * *
    * Service-specific metadata. For example the available capacity at the given
    * location.
diff --git a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/LocationsProto.java b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/LocationsProto.java
new file mode 100644
index 00000000..1c920051
--- /dev/null
+++ b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/LocationsProto.java
@@ -0,0 +1,131 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/cloud/location/locations.proto
+
+package com.google.cloud.location;
+
+public final class LocationsProto {
+  private LocationsProto() {}
+  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_location_ListLocationsRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_location_ListLocationsRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_location_ListLocationsResponse_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_location_ListLocationsResponse_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_location_GetLocationRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_location_GetLocationRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_location_Location_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_location_Location_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_location_Location_LabelsEntry_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_location_Location_LabelsEntry_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/location/locations.proto\022" +
+      "\025google.cloud.location\032\034google/api/annot" +
+      "ations.proto\032\031google/protobuf/any.proto\032" +
+      "\027google/api/client.proto\"[\n\024ListLocation" +
+      "sRequest\022\014\n\004name\030\001 \001(\t\022\016\n\006filter\030\002 \001(\t\022\021" +
+      "\n\tpage_size\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\"d\n" +
+      "\025ListLocationsResponse\0222\n\tlocations\030\001 \003(" +
+      "\0132\037.google.cloud.location.Location\022\027\n\017ne" +
+      "xt_page_token\030\002 \001(\t\"\"\n\022GetLocationReques" +
+      "t\022\014\n\004name\030\001 \001(\t\"\327\001\n\010Location\022\014\n\004name\030\001 \001" +
+      "(\t\022\023\n\013location_id\030\004 \001(\t\022\024\n\014display_name\030" +
+      "\005 \001(\t\022;\n\006labels\030\002 \003(\0132+.google.cloud.loc" +
+      "ation.Location.LabelsEntry\022&\n\010metadata\030\003" +
+      " \001(\0132\024.google.protobuf.Any\032-\n\013LabelsEntr" +
+      "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\0012\244\003\n\tLo" +
+      "cations\022\253\001\n\rListLocations\022+.google.cloud" +
+      ".location.ListLocationsRequest\032,.google." +
+      "cloud.location.ListLocationsResponse\"?\202\323" +
+      "\344\223\0029\022\024/v1/{name=locations}Z!\022\037/v1/{name=" +
+      "projects/*}/locations\022\236\001\n\013GetLocation\022)." +
+      "google.cloud.location.GetLocationRequest" +
+      "\032\037.google.cloud.location.Location\"C\202\323\344\223\002" +
+      "=\022\026/v1/{name=locations/*}Z#\022!/v1/{name=p" +
+      "rojects/*/locations/*}\032H\312A\024cloud.googlea" +
+      "pis.com\322A.https://www.googleapis.com/aut" +
+      "h/cloud-platformBo\n\031com.google.cloud.loc" +
+      "ationB\016LocationsProtoP\001Z=google.golang.o" +
+      "rg/genproto/googleapis/cloud/location;lo" +
+      "cation\370\001\001b\006proto3"
+    };
+    descriptor = com.google.protobuf.Descriptors.FileDescriptor
+      .internalBuildGeneratedFileFrom(descriptorData,
+        new com.google.protobuf.Descriptors.FileDescriptor[] {
+          com.google.api.AnnotationsProto.getDescriptor(),
+          com.google.protobuf.AnyProto.getDescriptor(),
+          com.google.api.ClientProto.getDescriptor(),
+        });
+    internal_static_google_cloud_location_ListLocationsRequest_descriptor =
+      getDescriptor().getMessageTypes().get(0);
+    internal_static_google_cloud_location_ListLocationsRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_location_ListLocationsRequest_descriptor,
+        new java.lang.String[] { "Name", "Filter", "PageSize", "PageToken", });
+    internal_static_google_cloud_location_ListLocationsResponse_descriptor =
+      getDescriptor().getMessageTypes().get(1);
+    internal_static_google_cloud_location_ListLocationsResponse_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_location_ListLocationsResponse_descriptor,
+        new java.lang.String[] { "Locations", "NextPageToken", });
+    internal_static_google_cloud_location_GetLocationRequest_descriptor =
+      getDescriptor().getMessageTypes().get(2);
+    internal_static_google_cloud_location_GetLocationRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_location_GetLocationRequest_descriptor,
+        new java.lang.String[] { "Name", });
+    internal_static_google_cloud_location_Location_descriptor =
+      getDescriptor().getMessageTypes().get(3);
+    internal_static_google_cloud_location_Location_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_location_Location_descriptor,
+        new java.lang.String[] { "Name", "LocationId", "DisplayName", "Labels", "Metadata", });
+    internal_static_google_cloud_location_Location_LabelsEntry_descriptor =
+      internal_static_google_cloud_location_Location_descriptor.getNestedTypes().get(0);
+    internal_static_google_cloud_location_Location_LabelsEntry_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_location_Location_LabelsEntry_descriptor,
+        new java.lang.String[] { "Key", "Value", });
+    com.google.protobuf.ExtensionRegistry registry =
+        com.google.protobuf.ExtensionRegistry.newInstance();
+    registry.add(com.google.api.ClientProto.defaultHost);
+    registry.add(com.google.api.AnnotationsProto.http);
+    registry.add(com.google.api.ClientProto.oauthScopes);
+    com.google.protobuf.Descriptors.FileDescriptor
+        .internalUpdateFileDescriptor(descriptor, registry);
+    com.google.api.AnnotationsProto.getDescriptor();
+    com.google.protobuf.AnyProto.getDescriptor();
+    com.google.api.ClientProto.getDescriptor();
+  }
+
+  // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentInputConfig.java b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentInputConfig.java
similarity index 77%
rename from proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentInputConfig.java
rename to owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentInputConfig.java
index aa931ee3..6071759f 100644
--- a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentInputConfig.java
+++ b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentInputConfig.java
@@ -1,55 +1,39 @@
-/*
- * Copyright 2020 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/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
 /**
- *
- *
  * 
  * Input configuration for BatchTranslateDocument request.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.BatchDocumentInputConfig} */ -public final class BatchDocumentInputConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BatchDocumentInputConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.BatchDocumentInputConfig) BatchDocumentInputConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BatchDocumentInputConfig.newBuilder() to construct. private BatchDocumentInputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private BatchDocumentInputConfig() {} + private BatchDocumentInputConfig() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BatchDocumentInputConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private BatchDocumentInputConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,67 +52,60 @@ private BatchDocumentInputConfig( case 0: done = true; break; - case 10: - { - com.google.cloud.translate.v3beta1.GcsSource.Builder subBuilder = null; - if (sourceCase_ == 1) { - subBuilder = ((com.google.cloud.translate.v3beta1.GcsSource) source_).toBuilder(); - } - source_ = - input.readMessage( - com.google.cloud.translate.v3beta1.GcsSource.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.translate.v3beta1.GcsSource) source_); - source_ = subBuilder.buildPartial(); - } - sourceCase_ = 1; - break; + case 10: { + com.google.cloud.translate.v3beta1.GcsSource.Builder subBuilder = null; + if (sourceCase_ == 1) { + subBuilder = ((com.google.cloud.translate.v3beta1.GcsSource) source_).toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + source_ = + input.readMessage(com.google.cloud.translate.v3beta1.GcsSource.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.translate.v3beta1.GcsSource) source_); + source_ = subBuilder.buildPartial(); } + sourceCase_ = 1; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_BatchDocumentInputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchDocumentInputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_BatchDocumentInputConfig_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchDocumentInputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.class, - com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.Builder.class); + com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.class, com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.Builder.class); } private int sourceCase_ = 0; private java.lang.Object source_; - public enum SourceCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_SOURCE(1), SOURCE_NOT_SET(0); private final int value; - private SourceCase(int value) { this.value = value; } @@ -144,28 +121,24 @@ public static SourceCase valueOf(int value) { public static SourceCase forNumber(int value) { switch (value) { - case 1: - return GCS_SOURCE; - case 0: - return SOURCE_NOT_SET; - default: - return null; + case 1: return GCS_SOURCE; + case 0: return SOURCE_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public SourceCase getSourceCase() { - return SourceCase.forNumber(sourceCase_); + public SourceCase + getSourceCase() { + return SourceCase.forNumber( + sourceCase_); } public static final int GCS_SOURCE_FIELD_NUMBER = 1; /** - * - * *
    * Google Cloud Storage location for the source input.
    * This can be a single file (for example,
@@ -187,7 +160,6 @@ public SourceCase getSourceCase() {
    * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 1; - * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -195,8 +167,6 @@ public boolean hasGcsSource() { return sourceCase_ == 1; } /** - * - * *
    * Google Cloud Storage location for the source input.
    * This can be a single file (for example,
@@ -218,19 +188,16 @@ public boolean hasGcsSource() {
    * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 1; - * * @return The gcsSource. */ @java.lang.Override public com.google.cloud.translate.v3beta1.GcsSource getGcsSource() { if (sourceCase_ == 1) { - return (com.google.cloud.translate.v3beta1.GcsSource) source_; + return (com.google.cloud.translate.v3beta1.GcsSource) source_; } return com.google.cloud.translate.v3beta1.GcsSource.getDefaultInstance(); } /** - * - * *
    * Google Cloud Storage location for the source input.
    * This can be a single file (for example,
@@ -256,13 +223,12 @@ public com.google.cloud.translate.v3beta1.GcsSource getGcsSource() {
   @java.lang.Override
   public com.google.cloud.translate.v3beta1.GcsSourceOrBuilder getGcsSourceOrBuilder() {
     if (sourceCase_ == 1) {
-      return (com.google.cloud.translate.v3beta1.GcsSource) source_;
+       return (com.google.cloud.translate.v3beta1.GcsSource) source_;
     }
     return com.google.cloud.translate.v3beta1.GcsSource.getDefaultInstance();
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -274,7 +240,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 (sourceCase_ == 1) {
       output.writeMessage(1, (com.google.cloud.translate.v3beta1.GcsSource) source_);
     }
@@ -288,9 +255,8 @@ public int getSerializedSize() {
 
     size = 0;
     if (sourceCase_ == 1) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              1, (com.google.cloud.translate.v3beta1.GcsSource) source_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, (com.google.cloud.translate.v3beta1.GcsSource) source_);
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -300,18 +266,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.cloud.translate.v3beta1.BatchDocumentInputConfig)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3beta1.BatchDocumentInputConfig other =
-        (com.google.cloud.translate.v3beta1.BatchDocumentInputConfig) obj;
+    com.google.cloud.translate.v3beta1.BatchDocumentInputConfig other = (com.google.cloud.translate.v3beta1.BatchDocumentInputConfig) obj;
 
     if (!getSourceCase().equals(other.getSourceCase())) return false;
     switch (sourceCase_) {
       case 1:
-        if (!getGcsSource().equals(other.getGcsSource())) return false;
+        if (!getGcsSource()
+            .equals(other.getGcsSource())) return false;
         break;
       case 0:
       default:
@@ -341,127 +307,117 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3beta1.BatchDocumentInputConfig 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.cloud.translate.v3beta1.BatchDocumentInputConfig 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.cloud.translate.v3beta1.BatchDocumentInputConfig parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3beta1.BatchDocumentInputConfig 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.cloud.translate.v3beta1.BatchDocumentInputConfig parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3beta1.BatchDocumentInputConfig 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.cloud.translate.v3beta1.BatchDocumentInputConfig parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3beta1.BatchDocumentInputConfig parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3beta1.BatchDocumentInputConfig 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.cloud.translate.v3beta1.BatchDocumentInputConfig parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3beta1.BatchDocumentInputConfig parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3beta1.BatchDocumentInputConfig 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.cloud.translate.v3beta1.BatchDocumentInputConfig 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.cloud.translate.v3beta1.BatchDocumentInputConfig 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.cloud.translate.v3beta1.BatchDocumentInputConfig prototype) {
+  public static Builder newBuilder(com.google.cloud.translate.v3beta1.BatchDocumentInputConfig 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;
   }
   /**
-   *
-   *
    * 
    * Input configuration for BatchTranslateDocument request.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.BatchDocumentInputConfig} */ - 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.translation.v3beta1.BatchDocumentInputConfig) com.google.cloud.translate.v3beta1.BatchDocumentInputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_BatchDocumentInputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchDocumentInputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_BatchDocumentInputConfig_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchDocumentInputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.class, - com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.Builder.class); + com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.class, com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.newBuilder() @@ -469,15 +425,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -487,9 +444,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_BatchDocumentInputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchDocumentInputConfig_descriptor; } @java.lang.Override @@ -508,8 +465,7 @@ public com.google.cloud.translate.v3beta1.BatchDocumentInputConfig build() { @java.lang.Override public com.google.cloud.translate.v3beta1.BatchDocumentInputConfig buildPartial() { - com.google.cloud.translate.v3beta1.BatchDocumentInputConfig result = - new com.google.cloud.translate.v3beta1.BatchDocumentInputConfig(this); + com.google.cloud.translate.v3beta1.BatchDocumentInputConfig result = new com.google.cloud.translate.v3beta1.BatchDocumentInputConfig(this); if (sourceCase_ == 1) { if (gcsSourceBuilder_ == null) { result.source_ = source_; @@ -526,39 +482,38 @@ public com.google.cloud.translate.v3beta1.BatchDocumentInputConfig 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.cloud.translate.v3beta1.BatchDocumentInputConfig) { - return mergeFrom((com.google.cloud.translate.v3beta1.BatchDocumentInputConfig) other); + return mergeFrom((com.google.cloud.translate.v3beta1.BatchDocumentInputConfig)other); } else { super.mergeFrom(other); return this; @@ -566,18 +521,15 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.BatchDocumentInputConfig other) { - if (other == com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.getDefaultInstance()) return this; switch (other.getSourceCase()) { - case GCS_SOURCE: - { - mergeGcsSource(other.getGcsSource()); - break; - } - case SOURCE_NOT_SET: - { - break; - } + case GCS_SOURCE: { + mergeGcsSource(other.getGcsSource()); + break; + } + case SOURCE_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -598,8 +550,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.translate.v3beta1.BatchDocumentInputConfig) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.translate.v3beta1.BatchDocumentInputConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -608,12 +559,12 @@ public Builder mergeFrom( } return this; } - private int sourceCase_ = 0; private java.lang.Object source_; - - public SourceCase getSourceCase() { - return SourceCase.forNumber(sourceCase_); + public SourceCase + getSourceCase() { + return SourceCase.forNumber( + sourceCase_); } public Builder clearSource() { @@ -623,14 +574,10 @@ public Builder clearSource() { return this; } + private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.GcsSource, - com.google.cloud.translate.v3beta1.GcsSource.Builder, - com.google.cloud.translate.v3beta1.GcsSourceOrBuilder> - gcsSourceBuilder_; + com.google.cloud.translate.v3beta1.GcsSource, com.google.cloud.translate.v3beta1.GcsSource.Builder, com.google.cloud.translate.v3beta1.GcsSourceOrBuilder> gcsSourceBuilder_; /** - * - * *
      * Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -652,7 +599,6 @@ public Builder clearSource() {
      * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 1; - * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -660,8 +606,6 @@ public boolean hasGcsSource() { return sourceCase_ == 1; } /** - * - * *
      * Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -683,7 +627,6 @@ public boolean hasGcsSource() {
      * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 1; - * * @return The gcsSource. */ @java.lang.Override @@ -701,8 +644,6 @@ public com.google.cloud.translate.v3beta1.GcsSource getGcsSource() { } } /** - * - * *
      * Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -739,8 +680,6 @@ public Builder setGcsSource(com.google.cloud.translate.v3beta1.GcsSource value)
       return this;
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -775,8 +714,6 @@ public Builder setGcsSource(
       return this;
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -801,13 +738,10 @@ public Builder setGcsSource(
      */
     public Builder mergeGcsSource(com.google.cloud.translate.v3beta1.GcsSource value) {
       if (gcsSourceBuilder_ == null) {
-        if (sourceCase_ == 1
-            && source_ != com.google.cloud.translate.v3beta1.GcsSource.getDefaultInstance()) {
-          source_ =
-              com.google.cloud.translate.v3beta1.GcsSource.newBuilder(
-                      (com.google.cloud.translate.v3beta1.GcsSource) source_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (sourceCase_ == 1 &&
+            source_ != com.google.cloud.translate.v3beta1.GcsSource.getDefaultInstance()) {
+          source_ = com.google.cloud.translate.v3beta1.GcsSource.newBuilder((com.google.cloud.translate.v3beta1.GcsSource) source_)
+              .mergeFrom(value).buildPartial();
         } else {
           source_ = value;
         }
@@ -822,8 +756,6 @@ public Builder mergeGcsSource(com.google.cloud.translate.v3beta1.GcsSource value
       return this;
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -863,8 +795,6 @@ public Builder clearGcsSource() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -891,8 +821,6 @@ public com.google.cloud.translate.v3beta1.GcsSource.Builder getGcsSourceBuilder(
       return getGcsSourceFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -927,8 +855,6 @@ public com.google.cloud.translate.v3beta1.GcsSourceOrBuilder getGcsSourceOrBuild
       }
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -952,32 +878,26 @@ public com.google.cloud.translate.v3beta1.GcsSourceOrBuilder getGcsSourceOrBuild
      * .google.cloud.translation.v3beta1.GcsSource gcs_source = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.translate.v3beta1.GcsSource,
-            com.google.cloud.translate.v3beta1.GcsSource.Builder,
-            com.google.cloud.translate.v3beta1.GcsSourceOrBuilder>
+        com.google.cloud.translate.v3beta1.GcsSource, com.google.cloud.translate.v3beta1.GcsSource.Builder, com.google.cloud.translate.v3beta1.GcsSourceOrBuilder> 
         getGcsSourceFieldBuilder() {
       if (gcsSourceBuilder_ == null) {
         if (!(sourceCase_ == 1)) {
           source_ = com.google.cloud.translate.v3beta1.GcsSource.getDefaultInstance();
         }
-        gcsSourceBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.translate.v3beta1.GcsSource,
-                com.google.cloud.translate.v3beta1.GcsSource.Builder,
-                com.google.cloud.translate.v3beta1.GcsSourceOrBuilder>(
+        gcsSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.translate.v3beta1.GcsSource, com.google.cloud.translate.v3beta1.GcsSource.Builder, com.google.cloud.translate.v3beta1.GcsSourceOrBuilder>(
                 (com.google.cloud.translate.v3beta1.GcsSource) source_,
                 getParentForChildren(),
                 isClean());
         source_ = null;
       }
       sourceCase_ = 1;
-      onChanged();
-      ;
+      onChanged();;
       return gcsSourceBuilder_;
     }
-
     @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);
     }
 
@@ -987,12 +907,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.BatchDocumentInputConfig)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.BatchDocumentInputConfig)
   private static final com.google.cloud.translate.v3beta1.BatchDocumentInputConfig DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.BatchDocumentInputConfig();
   }
@@ -1001,16 +921,16 @@ public static com.google.cloud.translate.v3beta1.BatchDocumentInputConfig getDef
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public BatchDocumentInputConfig parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new BatchDocumentInputConfig(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public BatchDocumentInputConfig parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new BatchDocumentInputConfig(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1025,4 +945,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3beta1.BatchDocumentInputConfig getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentInputConfigOrBuilder.java b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentInputConfigOrBuilder.java
similarity index 83%
rename from proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentInputConfigOrBuilder.java
rename to owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentInputConfigOrBuilder.java
index 6ec7519a..388b9133 100644
--- a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentInputConfigOrBuilder.java
+++ b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentInputConfigOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2020 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/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
-public interface BatchDocumentInputConfigOrBuilder
-    extends
+public interface BatchDocumentInputConfigOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.BatchDocumentInputConfig)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Google Cloud Storage location for the source input.
    * This can be a single file (for example,
@@ -47,13 +29,10 @@ public interface BatchDocumentInputConfigOrBuilder
    * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 1; - * * @return Whether the gcsSource field is set. */ boolean hasGcsSource(); /** - * - * *
    * Google Cloud Storage location for the source input.
    * This can be a single file (for example,
@@ -75,13 +54,10 @@ public interface BatchDocumentInputConfigOrBuilder
    * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 1; - * * @return The gcsSource. */ com.google.cloud.translate.v3beta1.GcsSource getGcsSource(); /** - * - * *
    * Google Cloud Storage location for the source input.
    * This can be a single file (for example,
diff --git a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentOutputConfig.java b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentOutputConfig.java
similarity index 84%
rename from proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentOutputConfig.java
rename to owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentOutputConfig.java
index 207fc95e..a430e4a5 100644
--- a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentOutputConfig.java
+++ b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentOutputConfig.java
@@ -1,55 +1,39 @@
-/*
- * Copyright 2020 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/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
 /**
- *
- *
  * 
  * Output configuration for BatchTranslateDocument request.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.BatchDocumentOutputConfig} */ -public final class BatchDocumentOutputConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BatchDocumentOutputConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.BatchDocumentOutputConfig) BatchDocumentOutputConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BatchDocumentOutputConfig.newBuilder() to construct. private BatchDocumentOutputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private BatchDocumentOutputConfig() {} + private BatchDocumentOutputConfig() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BatchDocumentOutputConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private BatchDocumentOutputConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,70 +52,60 @@ private BatchDocumentOutputConfig( case 0: done = true; break; - case 10: - { - com.google.cloud.translate.v3beta1.GcsDestination.Builder subBuilder = null; - if (destinationCase_ == 1) { - subBuilder = - ((com.google.cloud.translate.v3beta1.GcsDestination) destination_).toBuilder(); - } - destination_ = - input.readMessage( - com.google.cloud.translate.v3beta1.GcsDestination.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.translate.v3beta1.GcsDestination) destination_); - destination_ = subBuilder.buildPartial(); - } - destinationCase_ = 1; - break; + case 10: { + com.google.cloud.translate.v3beta1.GcsDestination.Builder subBuilder = null; + if (destinationCase_ == 1) { + subBuilder = ((com.google.cloud.translate.v3beta1.GcsDestination) destination_).toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + destination_ = + input.readMessage(com.google.cloud.translate.v3beta1.GcsDestination.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.translate.v3beta1.GcsDestination) destination_); + destination_ = subBuilder.buildPartial(); } + destinationCase_ = 1; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_BatchDocumentOutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchDocumentOutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_BatchDocumentOutputConfig_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchDocumentOutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.class, - com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.Builder.class); + com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.class, com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.Builder.class); } private int destinationCase_ = 0; private java.lang.Object destination_; - public enum DestinationCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_DESTINATION(1), DESTINATION_NOT_SET(0); private final int value; - private DestinationCase(int value) { this.value = value; } @@ -147,28 +121,24 @@ public static DestinationCase valueOf(int value) { public static DestinationCase forNumber(int value) { switch (value) { - case 1: - return GCS_DESTINATION; - case 0: - return DESTINATION_NOT_SET; - default: - return null; + case 1: return GCS_DESTINATION; + case 0: return DESTINATION_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public DestinationCase getDestinationCase() { - return DestinationCase.forNumber(destinationCase_); + public DestinationCase + getDestinationCase() { + return DestinationCase.forNumber( + destinationCase_); } public static final int GCS_DESTINATION_FIELD_NUMBER = 1; /** - * - * *
    * Google Cloud Storage destination for output content.
    * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -211,7 +181,6 @@ public DestinationCase getDestinationCase() {
    * 
* * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1; - * * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -219,8 +188,6 @@ public boolean hasGcsDestination() { return destinationCase_ == 1; } /** - * - * *
    * Google Cloud Storage destination for output content.
    * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -263,19 +230,16 @@ public boolean hasGcsDestination() {
    * 
* * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1; - * * @return The gcsDestination. */ @java.lang.Override public com.google.cloud.translate.v3beta1.GcsDestination getGcsDestination() { if (destinationCase_ == 1) { - return (com.google.cloud.translate.v3beta1.GcsDestination) destination_; + return (com.google.cloud.translate.v3beta1.GcsDestination) destination_; } return com.google.cloud.translate.v3beta1.GcsDestination.getDefaultInstance(); } /** - * - * *
    * Google Cloud Storage destination for output content.
    * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -322,13 +286,12 @@ public com.google.cloud.translate.v3beta1.GcsDestination getGcsDestination() {
   @java.lang.Override
   public com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder getGcsDestinationOrBuilder() {
     if (destinationCase_ == 1) {
-      return (com.google.cloud.translate.v3beta1.GcsDestination) destination_;
+       return (com.google.cloud.translate.v3beta1.GcsDestination) destination_;
     }
     return com.google.cloud.translate.v3beta1.GcsDestination.getDefaultInstance();
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -340,7 +303,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 (destinationCase_ == 1) {
       output.writeMessage(1, (com.google.cloud.translate.v3beta1.GcsDestination) destination_);
     }
@@ -354,9 +318,8 @@ public int getSerializedSize() {
 
     size = 0;
     if (destinationCase_ == 1) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              1, (com.google.cloud.translate.v3beta1.GcsDestination) destination_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, (com.google.cloud.translate.v3beta1.GcsDestination) destination_);
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -366,18 +329,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.cloud.translate.v3beta1.BatchDocumentOutputConfig)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig other =
-        (com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig) obj;
+    com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig other = (com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig) obj;
 
     if (!getDestinationCase().equals(other.getDestinationCase())) return false;
     switch (destinationCase_) {
       case 1:
-        if (!getGcsDestination().equals(other.getGcsDestination())) return false;
+        if (!getGcsDestination()
+            .equals(other.getGcsDestination())) return false;
         break;
       case 0:
       default:
@@ -407,127 +370,117 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig 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.cloud.translate.v3beta1.BatchDocumentOutputConfig 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.cloud.translate.v3beta1.BatchDocumentOutputConfig parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig 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.cloud.translate.v3beta1.BatchDocumentOutputConfig parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig 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.cloud.translate.v3beta1.BatchDocumentOutputConfig parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig 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.cloud.translate.v3beta1.BatchDocumentOutputConfig parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig 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.cloud.translate.v3beta1.BatchDocumentOutputConfig 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.cloud.translate.v3beta1.BatchDocumentOutputConfig 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.cloud.translate.v3beta1.BatchDocumentOutputConfig prototype) {
+  public static Builder newBuilder(com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig 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;
   }
   /**
-   *
-   *
    * 
    * Output configuration for BatchTranslateDocument request.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.BatchDocumentOutputConfig} */ - 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.translation.v3beta1.BatchDocumentOutputConfig) com.google.cloud.translate.v3beta1.BatchDocumentOutputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_BatchDocumentOutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchDocumentOutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_BatchDocumentOutputConfig_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchDocumentOutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.class, - com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.Builder.class); + com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.class, com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.newBuilder() @@ -535,15 +488,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -553,14 +507,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_BatchDocumentOutputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchDocumentOutputConfig_descriptor; } @java.lang.Override - public com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig - getDefaultInstanceForType() { + public com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig getDefaultInstanceForType() { return com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.getDefaultInstance(); } @@ -575,8 +528,7 @@ public com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig build() { @java.lang.Override public com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig buildPartial() { - com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig result = - new com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig(this); + com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig result = new com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig(this); if (destinationCase_ == 1) { if (gcsDestinationBuilder_ == null) { result.destination_ = destination_; @@ -593,39 +545,38 @@ public com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig 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.cloud.translate.v3beta1.BatchDocumentOutputConfig) { - return mergeFrom((com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig) other); + return mergeFrom((com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig)other); } else { super.mergeFrom(other); return this; @@ -633,19 +584,15 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig other) { - if (other - == com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.getDefaultInstance()) return this; switch (other.getDestinationCase()) { - case GCS_DESTINATION: - { - mergeGcsDestination(other.getGcsDestination()); - break; - } - case DESTINATION_NOT_SET: - { - break; - } + case GCS_DESTINATION: { + mergeGcsDestination(other.getGcsDestination()); + break; + } + case DESTINATION_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -666,8 +613,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -676,12 +622,12 @@ public Builder mergeFrom( } return this; } - private int destinationCase_ = 0; private java.lang.Object destination_; - - public DestinationCase getDestinationCase() { - return DestinationCase.forNumber(destinationCase_); + public DestinationCase + getDestinationCase() { + return DestinationCase.forNumber( + destinationCase_); } public Builder clearDestination() { @@ -691,14 +637,10 @@ public Builder clearDestination() { return this; } + private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.GcsDestination, - com.google.cloud.translate.v3beta1.GcsDestination.Builder, - com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder> - gcsDestinationBuilder_; + com.google.cloud.translate.v3beta1.GcsDestination, com.google.cloud.translate.v3beta1.GcsDestination.Builder, com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder> gcsDestinationBuilder_; /** - * - * *
      * Google Cloud Storage destination for output content.
      * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -741,7 +683,6 @@ public Builder clearDestination() {
      * 
* * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1; - * * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -749,8 +690,6 @@ public boolean hasGcsDestination() { return destinationCase_ == 1; } /** - * - * *
      * Google Cloud Storage destination for output content.
      * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -793,7 +732,6 @@ public boolean hasGcsDestination() {
      * 
* * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1; - * * @return The gcsDestination. */ @java.lang.Override @@ -811,8 +749,6 @@ public com.google.cloud.translate.v3beta1.GcsDestination getGcsDestination() { } } /** - * - * *
      * Google Cloud Storage destination for output content.
      * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -870,8 +806,6 @@ public Builder setGcsDestination(com.google.cloud.translate.v3beta1.GcsDestinati
       return this;
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage destination for output content.
      * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -927,8 +861,6 @@ public Builder setGcsDestination(
       return this;
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage destination for output content.
      * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -974,14 +906,10 @@ public Builder setGcsDestination(
      */
     public Builder mergeGcsDestination(com.google.cloud.translate.v3beta1.GcsDestination value) {
       if (gcsDestinationBuilder_ == null) {
-        if (destinationCase_ == 1
-            && destination_
-                != com.google.cloud.translate.v3beta1.GcsDestination.getDefaultInstance()) {
-          destination_ =
-              com.google.cloud.translate.v3beta1.GcsDestination.newBuilder(
-                      (com.google.cloud.translate.v3beta1.GcsDestination) destination_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (destinationCase_ == 1 &&
+            destination_ != com.google.cloud.translate.v3beta1.GcsDestination.getDefaultInstance()) {
+          destination_ = com.google.cloud.translate.v3beta1.GcsDestination.newBuilder((com.google.cloud.translate.v3beta1.GcsDestination) destination_)
+              .mergeFrom(value).buildPartial();
         } else {
           destination_ = value;
         }
@@ -996,8 +924,6 @@ public Builder mergeGcsDestination(com.google.cloud.translate.v3beta1.GcsDestina
       return this;
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage destination for output content.
      * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -1058,8 +984,6 @@ public Builder clearGcsDestination() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage destination for output content.
      * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -1107,8 +1031,6 @@ public com.google.cloud.translate.v3beta1.GcsDestination.Builder getGcsDestinati
       return getGcsDestinationFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage destination for output content.
      * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -1164,8 +1086,6 @@ public com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder getGcsDestinat
       }
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage destination for output content.
      * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -1210,32 +1130,26 @@ public com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder getGcsDestinat
      * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.translate.v3beta1.GcsDestination,
-            com.google.cloud.translate.v3beta1.GcsDestination.Builder,
-            com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder>
+        com.google.cloud.translate.v3beta1.GcsDestination, com.google.cloud.translate.v3beta1.GcsDestination.Builder, com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder> 
         getGcsDestinationFieldBuilder() {
       if (gcsDestinationBuilder_ == null) {
         if (!(destinationCase_ == 1)) {
           destination_ = com.google.cloud.translate.v3beta1.GcsDestination.getDefaultInstance();
         }
-        gcsDestinationBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.translate.v3beta1.GcsDestination,
-                com.google.cloud.translate.v3beta1.GcsDestination.Builder,
-                com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder>(
+        gcsDestinationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.translate.v3beta1.GcsDestination, com.google.cloud.translate.v3beta1.GcsDestination.Builder, com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder>(
                 (com.google.cloud.translate.v3beta1.GcsDestination) destination_,
                 getParentForChildren(),
                 isClean());
         destination_ = null;
       }
       destinationCase_ = 1;
-      onChanged();
-      ;
+      onChanged();;
       return gcsDestinationBuilder_;
     }
-
     @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);
     }
 
@@ -1245,13 +1159,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.BatchDocumentOutputConfig)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.BatchDocumentOutputConfig)
-  private static final com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig
-      DEFAULT_INSTANCE;
-
+  private static final com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig DEFAULT_INSTANCE;
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig();
   }
@@ -1260,16 +1173,16 @@ public static com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig getDe
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public BatchDocumentOutputConfig parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new BatchDocumentOutputConfig(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public BatchDocumentOutputConfig parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new BatchDocumentOutputConfig(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1284,4 +1197,6 @@ public com.google.protobuf.Parser getParserForType()
   public com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentOutputConfigOrBuilder.java b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentOutputConfigOrBuilder.java
similarity index 91%
rename from proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentOutputConfigOrBuilder.java
rename to owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentOutputConfigOrBuilder.java
index 96d88eb9..24d273b0 100644
--- a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentOutputConfigOrBuilder.java
+++ b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentOutputConfigOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2020 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/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
-public interface BatchDocumentOutputConfigOrBuilder
-    extends
+public interface BatchDocumentOutputConfigOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.BatchDocumentOutputConfig)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Google Cloud Storage destination for output content.
    * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -68,13 +50,10 @@ public interface BatchDocumentOutputConfigOrBuilder
    * 
* * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1; - * * @return Whether the gcsDestination field is set. */ boolean hasGcsDestination(); /** - * - * *
    * Google Cloud Storage destination for output content.
    * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -117,13 +96,10 @@ public interface BatchDocumentOutputConfigOrBuilder
    * 
* * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1; - * * @return The gcsDestination. */ com.google.cloud.translate.v3beta1.GcsDestination getGcsDestination(); /** - * - * *
    * Google Cloud Storage destination for output content.
    * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -169,6 +145,5 @@ public interface BatchDocumentOutputConfigOrBuilder
    */
   com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder getGcsDestinationOrBuilder();
 
-  public com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.DestinationCase
-      getDestinationCase();
+  public com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.DestinationCase getDestinationCase();
 }
diff --git a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentMetadata.java b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentMetadata.java
similarity index 72%
rename from proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentMetadata.java
rename to owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentMetadata.java
index b44aa671..52782fa3 100644
--- a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentMetadata.java
+++ b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentMetadata.java
@@ -1,58 +1,40 @@
-/*
- * Copyright 2020 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/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
 /**
- *
- *
  * 
  * State metadata for the batch translation operation.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata} */ -public final class BatchTranslateDocumentMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BatchTranslateDocumentMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata) BatchTranslateDocumentMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BatchTranslateDocumentMetadata.newBuilder() to construct. - private BatchTranslateDocumentMetadata( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private BatchTranslateDocumentMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BatchTranslateDocumentMetadata() { state_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BatchTranslateDocumentMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private BatchTranslateDocumentMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,115 +53,107 @@ private BatchTranslateDocumentMetadata( case 0: done = true; break; - case 8: - { - int rawValue = input.readEnum(); + case 8: { + int rawValue = input.readEnum(); - state_ = rawValue; - break; - } - case 16: - { - totalPages_ = input.readInt64(); - break; - } - case 24: - { - translatedPages_ = input.readInt64(); - break; - } - case 32: - { - failedPages_ = input.readInt64(); - break; - } - case 40: - { - totalBillablePages_ = input.readInt64(); - break; - } - case 48: - { - totalCharacters_ = input.readInt64(); - break; - } - case 56: - { - translatedCharacters_ = input.readInt64(); - break; - } - case 64: - { - failedCharacters_ = input.readInt64(); - break; - } - case 72: - { - totalBillableCharacters_ = input.readInt64(); - break; + state_ = rawValue; + break; + } + case 16: { + + totalPages_ = input.readInt64(); + break; + } + case 24: { + + translatedPages_ = input.readInt64(); + break; + } + case 32: { + + failedPages_ = input.readInt64(); + break; + } + case 40: { + + totalBillablePages_ = input.readInt64(); + break; + } + case 48: { + + totalCharacters_ = input.readInt64(); + break; + } + case 56: { + + translatedCharacters_ = input.readInt64(); + break; + } + case 64: { + + failedCharacters_ = input.readInt64(); + break; + } + case 72: { + + totalBillableCharacters_ = input.readInt64(); + break; + } + case 82: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (submitTime_ != null) { + subBuilder = submitTime_.toBuilder(); } - case 82: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (submitTime_ != null) { - subBuilder = submitTime_.toBuilder(); - } - submitTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(submitTime_); - submitTime_ = subBuilder.buildPartial(); - } - - break; + submitTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(submitTime_); + submitTime_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentMetadata_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.class, - com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.Builder.class); + com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.class, com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.Builder.class); } /** - * - * *
    * State of the job.
    * 
* * Protobuf enum {@code google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Invalid.
      * 
@@ -188,8 +162,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * Request is being processed.
      * 
@@ -198,8 +170,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ RUNNING(1), /** - * - * *
      * The batch is processed, and at least one item was successfully processed.
      * 
@@ -208,8 +178,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ SUCCEEDED(2), /** - * - * *
      * The batch is done and no item was successfully processed.
      * 
@@ -218,8 +186,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ FAILED(3), /** - * - * *
      * Request is in the process of being canceled after caller invoked
      * longrunning.Operations.CancelOperation on the request id.
@@ -229,8 +195,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     CANCELLING(4),
     /**
-     *
-     *
      * 
      * The batch is done after the user has called the
      * longrunning.Operations.CancelOperation. Any records processed before the
@@ -244,8 +208,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * Invalid.
      * 
@@ -254,8 +216,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Request is being processed.
      * 
@@ -264,8 +224,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RUNNING_VALUE = 1; /** - * - * *
      * The batch is processed, and at least one item was successfully processed.
      * 
@@ -274,8 +232,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SUCCEEDED_VALUE = 2; /** - * - * *
      * The batch is done and no item was successfully processed.
      * 
@@ -284,8 +240,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FAILED_VALUE = 3; /** - * - * *
      * Request is in the process of being canceled after caller invoked
      * longrunning.Operations.CancelOperation on the request id.
@@ -295,8 +249,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int CANCELLING_VALUE = 4;
     /**
-     *
-     *
      * 
      * The batch is done after the user has called the
      * longrunning.Operations.CancelOperation. Any records processed before the
@@ -307,6 +259,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int CANCELLED_VALUE = 5;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -331,57 +284,52 @@ public static State valueOf(int value) {
      */
     public static State forNumber(int value) {
       switch (value) {
-        case 0:
-          return STATE_UNSPECIFIED;
-        case 1:
-          return RUNNING;
-        case 2:
-          return SUCCEEDED;
-        case 3:
-          return FAILED;
-        case 4:
-          return CANCELLING;
-        case 5:
-          return CANCELLED;
-        default:
-          return null;
+        case 0: return STATE_UNSPECIFIED;
+        case 1: return RUNNING;
+        case 2: return SUCCEEDED;
+        case 3: return FAILED;
+        case 4: return CANCELLING;
+        case 5: return CANCELLED;
+        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<
+        State> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public State findValueByNumber(int number) {
+              return State.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public State findValueByNumber(int number) {
-            return State.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.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.getDescriptor()
-          .getEnumTypes()
-          .get(0);
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
+      return com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final State[] VALUES = values();
 
-    public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static State 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;
@@ -401,53 +349,39 @@ private State(int value) {
   public static final int STATE_FIELD_NUMBER = 1;
   private int state_;
   /**
-   *
-   *
    * 
    * The state of the operation.
    * 
* * .google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata.State state = 1; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * The state of the operation.
    * 
* * .google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata.State state = 1; - * * @return The state. */ - @java.lang.Override - public com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.State getState() { + @java.lang.Override public com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.State result = - com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.State.valueOf(state_); - return result == null - ? com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.State.UNRECOGNIZED - : result; + com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.State result = com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.State.valueOf(state_); + return result == null ? com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.State.UNRECOGNIZED : result; } public static final int TOTAL_PAGES_FIELD_NUMBER = 2; private long totalPages_; /** - * - * *
    * Total number of pages to translate in all documents so far. Documents
    * without clear page definition (such as XLSX) are not counted.
    * 
* * int64 total_pages = 2; - * * @return The totalPages. */ @java.lang.Override @@ -458,15 +392,12 @@ public long getTotalPages() { public static final int TRANSLATED_PAGES_FIELD_NUMBER = 3; private long translatedPages_; /** - * - * *
    * Number of successfully translated pages in all documents so far. Documents
    * without clear page definition (such as XLSX) are not counted.
    * 
* * int64 translated_pages = 3; - * * @return The translatedPages. */ @java.lang.Override @@ -477,15 +408,12 @@ public long getTranslatedPages() { public static final int FAILED_PAGES_FIELD_NUMBER = 4; private long failedPages_; /** - * - * *
    * Number of pages that failed to process in all documents so far. Documents
    * without clear page definition (such as XLSX) are not counted.
    * 
* * int64 failed_pages = 4; - * * @return The failedPages. */ @java.lang.Override @@ -496,15 +424,12 @@ public long getFailedPages() { public static final int TOTAL_BILLABLE_PAGES_FIELD_NUMBER = 5; private long totalBillablePages_; /** - * - * *
    * Number of billable pages in documents with clear page definition (such as
    * PDF, DOCX, PPTX) so far.
    * 
* * int64 total_billable_pages = 5; - * * @return The totalBillablePages. */ @java.lang.Override @@ -515,14 +440,11 @@ public long getTotalBillablePages() { public static final int TOTAL_CHARACTERS_FIELD_NUMBER = 6; private long totalCharacters_; /** - * - * *
    * Total number of characters (Unicode codepoints) in all documents so far.
    * 
* * int64 total_characters = 6; - * * @return The totalCharacters. */ @java.lang.Override @@ -533,15 +455,12 @@ public long getTotalCharacters() { public static final int TRANSLATED_CHARACTERS_FIELD_NUMBER = 7; private long translatedCharacters_; /** - * - * *
    * Number of successfully translated characters (Unicode codepoints) in all
    * documents so far.
    * 
* * int64 translated_characters = 7; - * * @return The translatedCharacters. */ @java.lang.Override @@ -552,15 +471,12 @@ public long getTranslatedCharacters() { public static final int FAILED_CHARACTERS_FIELD_NUMBER = 8; private long failedCharacters_; /** - * - * *
    * Number of characters that have failed to process (Unicode codepoints) in
    * all documents so far.
    * 
* * int64 failed_characters = 8; - * * @return The failedCharacters. */ @java.lang.Override @@ -571,15 +487,12 @@ public long getFailedCharacters() { public static final int TOTAL_BILLABLE_CHARACTERS_FIELD_NUMBER = 9; private long totalBillableCharacters_; /** - * - * *
    * Number of billable characters (Unicode codepoints) in documents without
    * clear page definition (such as XLSX) so far.
    * 
* * int64 total_billable_characters = 9; - * * @return The totalBillableCharacters. */ @java.lang.Override @@ -590,14 +503,11 @@ public long getTotalBillableCharacters() { public static final int SUBMIT_TIME_FIELD_NUMBER = 10; private com.google.protobuf.Timestamp submitTime_; /** - * - * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 10; - * * @return Whether the submitTime field is set. */ @java.lang.Override @@ -605,14 +515,11 @@ public boolean hasSubmitTime() { return submitTime_ != null; } /** - * - * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 10; - * * @return The submitTime. */ @java.lang.Override @@ -620,8 +527,6 @@ public com.google.protobuf.Timestamp getSubmitTime() { return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } /** - * - * *
    * Time when the operation was submitted.
    * 
@@ -634,7 +539,6 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -646,10 +550,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (state_ - != com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.State.STATE_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (state_ != com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(1, state_); } if (totalPages_ != 0L) { @@ -688,37 +591,45 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (state_ - != com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.State.STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_); + if (state_ != com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, state_); } if (totalPages_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, totalPages_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, totalPages_); } if (translatedPages_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, translatedPages_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, translatedPages_); } if (failedPages_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, failedPages_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(4, failedPages_); } if (totalBillablePages_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, totalBillablePages_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(5, totalBillablePages_); } if (totalCharacters_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, totalCharacters_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(6, totalCharacters_); } if (translatedCharacters_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(7, translatedCharacters_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(7, translatedCharacters_); } if (failedCharacters_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(8, failedCharacters_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(8, failedCharacters_); } if (totalBillableCharacters_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(9, totalBillableCharacters_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(9, totalBillableCharacters_); } if (submitTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getSubmitTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, getSubmitTime()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -728,26 +639,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.cloud.translate.v3beta1.BatchTranslateDocumentMetadata)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata other = - (com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata) obj; + com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata other = (com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata) obj; if (state_ != other.state_) return false; - if (getTotalPages() != other.getTotalPages()) return false; - if (getTranslatedPages() != other.getTranslatedPages()) return false; - if (getFailedPages() != other.getFailedPages()) return false; - if (getTotalBillablePages() != other.getTotalBillablePages()) return false; - if (getTotalCharacters() != other.getTotalCharacters()) return false; - if (getTranslatedCharacters() != other.getTranslatedCharacters()) return false; - if (getFailedCharacters() != other.getFailedCharacters()) return false; - if (getTotalBillableCharacters() != other.getTotalBillableCharacters()) return false; + if (getTotalPages() + != other.getTotalPages()) return false; + if (getTranslatedPages() + != other.getTranslatedPages()) return false; + if (getFailedPages() + != other.getFailedPages()) return false; + if (getTotalBillablePages() + != other.getTotalBillablePages()) return false; + if (getTotalCharacters() + != other.getTotalCharacters()) return false; + if (getTranslatedCharacters() + != other.getTranslatedCharacters()) return false; + if (getFailedCharacters() + != other.getFailedCharacters()) return false; + if (getTotalBillableCharacters() + != other.getTotalBillableCharacters()) return false; if (hasSubmitTime() != other.hasSubmitTime()) return false; if (hasSubmitTime()) { - if (!getSubmitTime().equals(other.getSubmitTime())) return false; + if (!getSubmitTime() + .equals(other.getSubmitTime())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -763,21 +682,29 @@ public int hashCode() { hash = (37 * hash) + STATE_FIELD_NUMBER; hash = (53 * hash) + state_; hash = (37 * hash) + TOTAL_PAGES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalPages()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTotalPages()); hash = (37 * hash) + TRANSLATED_PAGES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTranslatedPages()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTranslatedPages()); hash = (37 * hash) + FAILED_PAGES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getFailedPages()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getFailedPages()); hash = (37 * hash) + TOTAL_BILLABLE_PAGES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalBillablePages()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTotalBillablePages()); hash = (37 * hash) + TOTAL_CHARACTERS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalCharacters()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTotalCharacters()); hash = (37 * hash) + TRANSLATED_CHARACTERS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTranslatedCharacters()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTranslatedCharacters()); hash = (37 * hash) + FAILED_CHARACTERS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getFailedCharacters()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getFailedCharacters()); hash = (37 * hash) + TOTAL_BILLABLE_CHARACTERS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalBillableCharacters()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTotalBillableCharacters()); if (hasSubmitTime()) { hash = (37 * hash) + SUBMIT_TIME_FIELD_NUMBER; hash = (53 * hash) + getSubmitTime().hashCode(); @@ -788,145 +715,134 @@ public int hashCode() { } public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata 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.cloud.translate.v3beta1.BatchTranslateDocumentMetadata 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.cloud.translate.v3beta1.BatchTranslateDocumentMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata 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.cloud.translate.v3beta1.BatchTranslateDocumentMetadata parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata 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.cloud.translate.v3beta1.BatchTranslateDocumentMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata 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.cloud.translate.v3beta1.BatchTranslateDocumentMetadata - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata - 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.cloud.translate.v3beta1.BatchTranslateDocumentMetadata 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.cloud.translate.v3beta1.BatchTranslateDocumentMetadata 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.cloud.translate.v3beta1.BatchTranslateDocumentMetadata 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.cloud.translate.v3beta1.BatchTranslateDocumentMetadata prototype) { + public static Builder newBuilder(com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata 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; } /** - * - * *
    * State metadata for the batch translation operation.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata} */ - 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.translation.v3beta1.BatchTranslateDocumentMetadata) com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentMetadata_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.class, - com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.Builder.class); + com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.class, com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.Builder.class); } - // Construct using - // com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.newBuilder() + // Construct using com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -958,14 +874,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentMetadata_descriptor; } @java.lang.Override - public com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata - getDefaultInstanceForType() { + public com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata getDefaultInstanceForType() { return com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.getDefaultInstance(); } @@ -980,8 +895,7 @@ public com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata build() @java.lang.Override public com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata buildPartial() { - com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata result = - new com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata(this); + com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata result = new com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata(this); result.state_ = state_; result.totalPages_ = totalPages_; result.translatedPages_ = translatedPages_; @@ -1004,50 +918,46 @@ public com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata 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.cloud.translate.v3beta1.BatchTranslateDocumentMetadata) { - return mergeFrom((com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata) other); + return mergeFrom((com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata other) { - if (other - == com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata other) { + if (other == com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.getDefaultInstance()) return this; if (other.state_ != 0) { setStateValue(other.getStateValue()); } @@ -1097,9 +1007,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1111,114 +1019,86 @@ public Builder mergeFrom( private int state_ = 0; /** - * - * *
      * The state of the operation.
      * 
* - * .google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata.State state = 1; - * - * + * .google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata.State state = 1; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * The state of the operation.
      * 
* - * .google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata.State state = 1; - * - * + * .google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata.State state = 1; * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** - * - * *
      * The state of the operation.
      * 
* - * .google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata.State state = 1; - * - * + * .google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata.State state = 1; * @return The state. */ @java.lang.Override public com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.State result = - com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.State.valueOf(state_); - return result == null - ? com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.State.UNRECOGNIZED - : result; + com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.State result = com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.State.valueOf(state_); + return result == null ? com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.State.UNRECOGNIZED : result; } /** - * - * *
      * The state of the operation.
      * 
* - * .google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata.State state = 1; - * - * + * .google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata.State state = 1; * @param value The state to set. * @return This builder for chaining. */ - public Builder setState( - com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.State value) { + public Builder setState(com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.State value) { if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The state of the operation.
      * 
* - * .google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata.State state = 1; - * - * + * .google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata.State state = 1; * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; } - private long totalPages_; + private long totalPages_ ; /** - * - * *
      * Total number of pages to translate in all documents so far. Documents
      * without clear page definition (such as XLSX) are not counted.
      * 
* * int64 total_pages = 2; - * * @return The totalPages. */ @java.lang.Override @@ -1226,54 +1106,45 @@ public long getTotalPages() { return totalPages_; } /** - * - * *
      * Total number of pages to translate in all documents so far. Documents
      * without clear page definition (such as XLSX) are not counted.
      * 
* * int64 total_pages = 2; - * * @param value The totalPages to set. * @return This builder for chaining. */ public Builder setTotalPages(long value) { - + totalPages_ = value; onChanged(); return this; } /** - * - * *
      * Total number of pages to translate in all documents so far. Documents
      * without clear page definition (such as XLSX) are not counted.
      * 
* * int64 total_pages = 2; - * * @return This builder for chaining. */ public Builder clearTotalPages() { - + totalPages_ = 0L; onChanged(); return this; } - private long translatedPages_; + private long translatedPages_ ; /** - * - * *
      * Number of successfully translated pages in all documents so far. Documents
      * without clear page definition (such as XLSX) are not counted.
      * 
* * int64 translated_pages = 3; - * * @return The translatedPages. */ @java.lang.Override @@ -1281,54 +1152,45 @@ public long getTranslatedPages() { return translatedPages_; } /** - * - * *
      * Number of successfully translated pages in all documents so far. Documents
      * without clear page definition (such as XLSX) are not counted.
      * 
* * int64 translated_pages = 3; - * * @param value The translatedPages to set. * @return This builder for chaining. */ public Builder setTranslatedPages(long value) { - + translatedPages_ = value; onChanged(); return this; } /** - * - * *
      * Number of successfully translated pages in all documents so far. Documents
      * without clear page definition (such as XLSX) are not counted.
      * 
* * int64 translated_pages = 3; - * * @return This builder for chaining. */ public Builder clearTranslatedPages() { - + translatedPages_ = 0L; onChanged(); return this; } - private long failedPages_; + private long failedPages_ ; /** - * - * *
      * Number of pages that failed to process in all documents so far. Documents
      * without clear page definition (such as XLSX) are not counted.
      * 
* * int64 failed_pages = 4; - * * @return The failedPages. */ @java.lang.Override @@ -1336,54 +1198,45 @@ public long getFailedPages() { return failedPages_; } /** - * - * *
      * Number of pages that failed to process in all documents so far. Documents
      * without clear page definition (such as XLSX) are not counted.
      * 
* * int64 failed_pages = 4; - * * @param value The failedPages to set. * @return This builder for chaining. */ public Builder setFailedPages(long value) { - + failedPages_ = value; onChanged(); return this; } /** - * - * *
      * Number of pages that failed to process in all documents so far. Documents
      * without clear page definition (such as XLSX) are not counted.
      * 
* * int64 failed_pages = 4; - * * @return This builder for chaining. */ public Builder clearFailedPages() { - + failedPages_ = 0L; onChanged(); return this; } - private long totalBillablePages_; + private long totalBillablePages_ ; /** - * - * *
      * Number of billable pages in documents with clear page definition (such as
      * PDF, DOCX, PPTX) so far.
      * 
* * int64 total_billable_pages = 5; - * * @return The totalBillablePages. */ @java.lang.Override @@ -1391,53 +1244,44 @@ public long getTotalBillablePages() { return totalBillablePages_; } /** - * - * *
      * Number of billable pages in documents with clear page definition (such as
      * PDF, DOCX, PPTX) so far.
      * 
* * int64 total_billable_pages = 5; - * * @param value The totalBillablePages to set. * @return This builder for chaining. */ public Builder setTotalBillablePages(long value) { - + totalBillablePages_ = value; onChanged(); return this; } /** - * - * *
      * Number of billable pages in documents with clear page definition (such as
      * PDF, DOCX, PPTX) so far.
      * 
* * int64 total_billable_pages = 5; - * * @return This builder for chaining. */ public Builder clearTotalBillablePages() { - + totalBillablePages_ = 0L; onChanged(); return this; } - private long totalCharacters_; + private long totalCharacters_ ; /** - * - * *
      * Total number of characters (Unicode codepoints) in all documents so far.
      * 
* * int64 total_characters = 6; - * * @return The totalCharacters. */ @java.lang.Override @@ -1445,52 +1289,43 @@ public long getTotalCharacters() { return totalCharacters_; } /** - * - * *
      * Total number of characters (Unicode codepoints) in all documents so far.
      * 
* * int64 total_characters = 6; - * * @param value The totalCharacters to set. * @return This builder for chaining. */ public Builder setTotalCharacters(long value) { - + totalCharacters_ = value; onChanged(); return this; } /** - * - * *
      * Total number of characters (Unicode codepoints) in all documents so far.
      * 
* * int64 total_characters = 6; - * * @return This builder for chaining. */ public Builder clearTotalCharacters() { - + totalCharacters_ = 0L; onChanged(); return this; } - private long translatedCharacters_; + private long translatedCharacters_ ; /** - * - * *
      * Number of successfully translated characters (Unicode codepoints) in all
      * documents so far.
      * 
* * int64 translated_characters = 7; - * * @return The translatedCharacters. */ @java.lang.Override @@ -1498,54 +1333,45 @@ public long getTranslatedCharacters() { return translatedCharacters_; } /** - * - * *
      * Number of successfully translated characters (Unicode codepoints) in all
      * documents so far.
      * 
* * int64 translated_characters = 7; - * * @param value The translatedCharacters to set. * @return This builder for chaining. */ public Builder setTranslatedCharacters(long value) { - + translatedCharacters_ = value; onChanged(); return this; } /** - * - * *
      * Number of successfully translated characters (Unicode codepoints) in all
      * documents so far.
      * 
* * int64 translated_characters = 7; - * * @return This builder for chaining. */ public Builder clearTranslatedCharacters() { - + translatedCharacters_ = 0L; onChanged(); return this; } - private long failedCharacters_; + private long failedCharacters_ ; /** - * - * *
      * Number of characters that have failed to process (Unicode codepoints) in
      * all documents so far.
      * 
* * int64 failed_characters = 8; - * * @return The failedCharacters. */ @java.lang.Override @@ -1553,54 +1379,45 @@ public long getFailedCharacters() { return failedCharacters_; } /** - * - * *
      * Number of characters that have failed to process (Unicode codepoints) in
      * all documents so far.
      * 
* * int64 failed_characters = 8; - * * @param value The failedCharacters to set. * @return This builder for chaining. */ public Builder setFailedCharacters(long value) { - + failedCharacters_ = value; onChanged(); return this; } /** - * - * *
      * Number of characters that have failed to process (Unicode codepoints) in
      * all documents so far.
      * 
* * int64 failed_characters = 8; - * * @return This builder for chaining. */ public Builder clearFailedCharacters() { - + failedCharacters_ = 0L; onChanged(); return this; } - private long totalBillableCharacters_; + private long totalBillableCharacters_ ; /** - * - * *
      * Number of billable characters (Unicode codepoints) in documents without
      * clear page definition (such as XLSX) so far.
      * 
* * int64 total_billable_characters = 9; - * * @return The totalBillableCharacters. */ @java.lang.Override @@ -1608,38 +1425,32 @@ public long getTotalBillableCharacters() { return totalBillableCharacters_; } /** - * - * *
      * Number of billable characters (Unicode codepoints) in documents without
      * clear page definition (such as XLSX) so far.
      * 
* * int64 total_billable_characters = 9; - * * @param value The totalBillableCharacters to set. * @return This builder for chaining. */ public Builder setTotalBillableCharacters(long value) { - + totalBillableCharacters_ = value; onChanged(); return this; } /** - * - * *
      * Number of billable characters (Unicode codepoints) in documents without
      * clear page definition (such as XLSX) so far.
      * 
* * int64 total_billable_characters = 9; - * * @return This builder for chaining. */ public Builder clearTotalBillableCharacters() { - + totalBillableCharacters_ = 0L; onChanged(); return this; @@ -1647,47 +1458,34 @@ public Builder clearTotalBillableCharacters() { private com.google.protobuf.Timestamp submitTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - submitTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> submitTimeBuilder_; /** - * - * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 10; - * * @return Whether the submitTime field is set. */ public boolean hasSubmitTime() { return submitTimeBuilder_ != null || submitTime_ != null; } /** - * - * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 10; - * * @return The submitTime. */ public com.google.protobuf.Timestamp getSubmitTime() { if (submitTimeBuilder_ == null) { - return submitTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : submitTime_; + return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } else { return submitTimeBuilder_.getMessage(); } } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -1708,15 +1506,14 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 10; */ - public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setSubmitTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (submitTimeBuilder_ == null) { submitTime_ = builderForValue.build(); onChanged(); @@ -1727,8 +1524,6 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -1739,7 +1534,7 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { if (submitTimeBuilder_ == null) { if (submitTime_ != null) { submitTime_ = - com.google.protobuf.Timestamp.newBuilder(submitTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(submitTime_).mergeFrom(value).buildPartial(); } else { submitTime_ = value; } @@ -1751,8 +1546,6 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -1771,8 +1564,6 @@ public Builder clearSubmitTime() { return this; } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -1780,13 +1571,11 @@ public Builder clearSubmitTime() { * .google.protobuf.Timestamp submit_time = 10; */ public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder() { - + onChanged(); return getSubmitTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -1797,14 +1586,11 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { if (submitTimeBuilder_ != null) { return submitTimeBuilder_.getMessageOrBuilder(); } else { - return submitTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : submitTime_; + return submitTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -1812,24 +1598,21 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { * .google.protobuf.Timestamp submit_time = 10; */ 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> getSubmitTimeFieldBuilder() { if (submitTimeBuilder_ == null) { - submitTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getSubmitTime(), getParentForChildren(), isClean()); + submitTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getSubmitTime(), + getParentForChildren(), + isClean()); submitTime_ = null; } return submitTimeBuilder_; } - @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); } @@ -1839,32 +1622,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata) - private static final com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata - DEFAULT_INSTANCE; - + private static final com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata(); } - public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata - getDefaultInstance() { + public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchTranslateDocumentMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BatchTranslateDocumentMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchTranslateDocumentMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BatchTranslateDocumentMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1876,8 +1657,9 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata - getDefaultInstanceForType() { + public com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentMetadataOrBuilder.java b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentMetadataOrBuilder.java similarity index 81% rename from proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentMetadataOrBuilder.java rename to owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentMetadataOrBuilder.java index e59f2142..d6562ae2 100644 --- a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentMetadataOrBuilder.java +++ b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentMetadataOrBuilder.java @@ -1,191 +1,137 @@ -/* - * Copyright 2020 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/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; -public interface BatchTranslateDocumentMetadataOrBuilder - extends +public interface BatchTranslateDocumentMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The state of the operation.
    * 
* * .google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata.State state = 1; - * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * The state of the operation.
    * 
* * .google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata.State state = 1; - * * @return The state. */ com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.State getState(); /** - * - * *
    * Total number of pages to translate in all documents so far. Documents
    * without clear page definition (such as XLSX) are not counted.
    * 
* * int64 total_pages = 2; - * * @return The totalPages. */ long getTotalPages(); /** - * - * *
    * Number of successfully translated pages in all documents so far. Documents
    * without clear page definition (such as XLSX) are not counted.
    * 
* * int64 translated_pages = 3; - * * @return The translatedPages. */ long getTranslatedPages(); /** - * - * *
    * Number of pages that failed to process in all documents so far. Documents
    * without clear page definition (such as XLSX) are not counted.
    * 
* * int64 failed_pages = 4; - * * @return The failedPages. */ long getFailedPages(); /** - * - * *
    * Number of billable pages in documents with clear page definition (such as
    * PDF, DOCX, PPTX) so far.
    * 
* * int64 total_billable_pages = 5; - * * @return The totalBillablePages. */ long getTotalBillablePages(); /** - * - * *
    * Total number of characters (Unicode codepoints) in all documents so far.
    * 
* * int64 total_characters = 6; - * * @return The totalCharacters. */ long getTotalCharacters(); /** - * - * *
    * Number of successfully translated characters (Unicode codepoints) in all
    * documents so far.
    * 
* * int64 translated_characters = 7; - * * @return The translatedCharacters. */ long getTranslatedCharacters(); /** - * - * *
    * Number of characters that have failed to process (Unicode codepoints) in
    * all documents so far.
    * 
* * int64 failed_characters = 8; - * * @return The failedCharacters. */ long getFailedCharacters(); /** - * - * *
    * Number of billable characters (Unicode codepoints) in documents without
    * clear page definition (such as XLSX) so far.
    * 
* * int64 total_billable_characters = 9; - * * @return The totalBillableCharacters. */ long getTotalBillableCharacters(); /** - * - * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 10; - * * @return Whether the submitTime field is set. */ boolean hasSubmitTime(); /** - * - * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 10; - * * @return The submitTime. */ com.google.protobuf.Timestamp getSubmitTime(); /** - * - * *
    * Time when the operation was submitted.
    * 
diff --git a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentRequest.java b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentRequest.java similarity index 63% rename from proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentRequest.java rename to owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentRequest.java index eeada506..667338ef 100644 --- a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentRequest.java +++ b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 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/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; /** - * - * *
  * The BatchTranslateDocument request.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.BatchTranslateDocumentRequest} */ -public final class BatchTranslateDocumentRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BatchTranslateDocumentRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.BatchTranslateDocumentRequest) BatchTranslateDocumentRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BatchTranslateDocumentRequest.newBuilder() to construct. private BatchTranslateDocumentRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BatchTranslateDocumentRequest() { parent_ = ""; sourceLanguageCode_ = ""; @@ -46,15 +28,16 @@ private BatchTranslateDocumentRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BatchTranslateDocumentRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private BatchTranslateDocumentRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -74,123 +57,102 @@ private BatchTranslateDocumentRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - sourceLanguageCode_ = s; - break; + sourceLanguageCode_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + targetLanguageCodes_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - targetLanguageCodes_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - targetLanguageCodes_.add(s); - break; + targetLanguageCodes_.add(s); + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + inputConfigs_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; } - case 34: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - inputConfigs_ = - new java.util.ArrayList< - com.google.cloud.translate.v3beta1.BatchDocumentInputConfig>(); - mutable_bitField0_ |= 0x00000002; - } - inputConfigs_.add( - input.readMessage( - com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.parser(), - extensionRegistry)); - break; + inputConfigs_.add( + input.readMessage(com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.parser(), extensionRegistry)); + break; + } + case 42: { + com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.Builder subBuilder = null; + if (outputConfig_ != null) { + subBuilder = outputConfig_.toBuilder(); } - case 42: - { - com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.Builder subBuilder = - null; - if (outputConfig_ != null) { - subBuilder = outputConfig_.toBuilder(); - } - outputConfig_ = - input.readMessage( - com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(outputConfig_); - outputConfig_ = subBuilder.buildPartial(); - } - - break; + outputConfig_ = input.readMessage(com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(outputConfig_); + outputConfig_ = subBuilder.buildPartial(); } - case 50: - { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - models_ = - com.google.protobuf.MapField.newMapField(ModelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000004; - } - com.google.protobuf.MapEntry models__ = - input.readMessage( - ModelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - models_.getMutableMap().put(models__.getKey(), models__.getValue()); - break; + + break; + } + case 50: { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + models_ = com.google.protobuf.MapField.newMapField( + ModelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000004; } - case 58: - { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - glossaries_ = - com.google.protobuf.MapField.newMapField( - GlossariesDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000008; - } - com.google.protobuf.MapEntry< - java.lang.String, - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> - glossaries__ = - input.readMessage( - GlossariesDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - glossaries_.getMutableMap().put(glossaries__.getKey(), glossaries__.getValue()); - break; + com.google.protobuf.MapEntry + models__ = input.readMessage( + ModelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + models_.getMutableMap().put( + models__.getKey(), models__.getValue()); + break; + } + case 58: { + if (!((mutable_bitField0_ & 0x00000008) != 0)) { + glossaries_ = com.google.protobuf.MapField.newMapField( + GlossariesDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000008; } - case 66: - { - if (!((mutable_bitField0_ & 0x00000010) != 0)) { - formatConversions_ = - com.google.protobuf.MapField.newMapField( - FormatConversionsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000010; - } - com.google.protobuf.MapEntry formatConversions__ = - input.readMessage( - FormatConversionsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - formatConversions_ - .getMutableMap() - .put(formatConversions__.getKey(), formatConversions__.getValue()); - break; + com.google.protobuf.MapEntry + glossaries__ = input.readMessage( + GlossariesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + glossaries_.getMutableMap().put( + glossaries__.getKey(), glossaries__.getValue()); + break; + } + case 66: { + if (!((mutable_bitField0_ & 0x00000010) != 0)) { + formatConversions_ = com.google.protobuf.MapField.newMapField( + FormatConversionsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000010; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + com.google.protobuf.MapEntry + formatConversions__ = input.readMessage( + FormatConversionsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + formatConversions_.getMutableMap().put( + formatConversions__.getKey(), formatConversions__.getValue()); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { targetLanguageCodes_ = targetLanguageCodes_.getUnmodifiableView(); @@ -202,15 +164,15 @@ private BatchTranslateDocumentRequest( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_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 internalGetModels(); @@ -219,25 +181,21 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { case 8: return internalGetFormatConversions(); 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.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest.class, - com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest.Builder.class); + com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest.class, com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. Location to make a regional call.
    * Format: `projects/{project-number-or-id}/locations/{location-id}`.
@@ -247,10 +205,7 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
    * error is returned.
    * 
* - * - * 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 @@ -259,15 +214,14 @@ 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. Location to make a regional call.
    * Format: `projects/{project-number-or-id}/locations/{location-id}`.
@@ -277,18 +231,17 @@ public java.lang.String getParent() {
    * error is returned.
    * 
* - * - * 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 { @@ -299,8 +252,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int SOURCE_LANGUAGE_CODE_FIELD_NUMBER = 2; private volatile java.lang.Object sourceLanguageCode_; /** - * - * *
    * Required. The BCP-47 language code of the input document if known, for
    * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -308,7 +259,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The sourceLanguageCode. */ @java.lang.Override @@ -317,15 +267,14 @@ public java.lang.String getSourceLanguageCode() { 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(); sourceLanguageCode_ = s; return s; } } /** - * - * *
    * Required. The BCP-47 language code of the input document if known, for
    * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -333,15 +282,16 @@ public java.lang.String getSourceLanguageCode() {
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for sourceLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { + public com.google.protobuf.ByteString + getSourceLanguageCodeBytes() { java.lang.Object ref = sourceLanguageCode_; 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); sourceLanguageCode_ = b; return b; } else { @@ -352,48 +302,37 @@ public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { public static final int TARGET_LANGUAGE_CODES_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList targetLanguageCodes_; /** - * - * *
    * Required. The BCP-47 language code to use for translation of the input
    * document. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @return A list containing the targetLanguageCodes. */ - public com.google.protobuf.ProtocolStringList getTargetLanguageCodesList() { + public com.google.protobuf.ProtocolStringList + getTargetLanguageCodesList() { return targetLanguageCodes_; } /** - * - * *
    * Required. The BCP-47 language code to use for translation of the input
    * document. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The count of targetLanguageCodes. */ public int getTargetLanguageCodesCount() { return targetLanguageCodes_.size(); } /** - * - * *
    * Required. The BCP-47 language code to use for translation of the input
    * document. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param index The index of the element to return. * @return The targetLanguageCodes at the given index. */ @@ -401,28 +340,23 @@ public java.lang.String getTargetLanguageCodes(int index) { return targetLanguageCodes_.get(index); } /** - * - * *
    * Required. The BCP-47 language code to use for translation of the input
    * document. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param index The index of the value to return. * @return The bytes of the targetLanguageCodes at the given index. */ - public com.google.protobuf.ByteString getTargetLanguageCodesBytes(int index) { + public com.google.protobuf.ByteString + getTargetLanguageCodesBytes(int index) { return targetLanguageCodes_.getByteString(index); } public static final int INPUT_CONFIGS_FIELD_NUMBER = 4; private java.util.List inputConfigs_; /** - * - * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -430,18 +364,13 @@ public com.google.protobuf.ByteString getTargetLanguageCodesBytes(int index) {
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public java.util.List - getInputConfigsList() { + public java.util.List getInputConfigsList() { return inputConfigs_; } /** - * - * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -449,19 +378,14 @@ public com.google.protobuf.ByteString getTargetLanguageCodesBytes(int index) {
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.translate.v3beta1.BatchDocumentInputConfigOrBuilder> + public java.util.List getInputConfigsOrBuilderList() { return inputConfigs_; } /** - * - * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -469,17 +393,13 @@ public com.google.protobuf.ByteString getTargetLanguageCodesBytes(int index) {
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public int getInputConfigsCount() { return inputConfigs_.size(); } /** - * - * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -487,17 +407,13 @@ public int getInputConfigsCount() {
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.translate.v3beta1.BatchDocumentInputConfig getInputConfigs(int index) { return inputConfigs_.get(index); } /** - * - * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -505,31 +421,24 @@ public com.google.cloud.translate.v3beta1.BatchDocumentInputConfig getInputConfi
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.translate.v3beta1.BatchDocumentInputConfigOrBuilder - getInputConfigsOrBuilder(int index) { + public com.google.cloud.translate.v3beta1.BatchDocumentInputConfigOrBuilder getInputConfigsOrBuilder( + int index) { return inputConfigs_.get(index); } public static final int OUTPUT_CONFIG_FIELD_NUMBER = 5; private com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig outputConfig_; /** - * - * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * - * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the outputConfig field is set. */ @java.lang.Override @@ -537,63 +446,52 @@ public boolean hasOutputConfig() { return outputConfig_ != null; } /** - * - * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * - * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; * @return The outputConfig. */ @java.lang.Override public com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig getOutputConfig() { - return outputConfig_ == null - ? com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.getDefaultInstance() : outputConfig_; } /** - * - * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * - * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.translate.v3beta1.BatchDocumentOutputConfigOrBuilder - getOutputConfigOrBuilder() { + public com.google.cloud.translate.v3beta1.BatchDocumentOutputConfigOrBuilder getOutputConfigOrBuilder() { return getOutputConfig(); } public static final int MODELS_FIELD_NUMBER = 6; - private static final class ModelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_ModelsEntry_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.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_ModelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - - private com.google.protobuf.MapField models_; - - private com.google.protobuf.MapField internalGetModels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> models_; + private com.google.protobuf.MapField + internalGetModels() { if (models_ == null) { - return com.google.protobuf.MapField.emptyMapField(ModelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + ModelsDefaultEntryHolder.defaultEntry); } return models_; } @@ -602,8 +500,6 @@ public int getModelsCount() { return internalGetModels().getMap().size(); } /** - * - * *
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is the model name. Value can be a built-in general model,
@@ -619,22 +515,22 @@ public int getModelsCount() {
    *
    * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
+
   @java.lang.Override
-  public boolean containsModels(java.lang.String key) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
+  public boolean containsModels(
+      java.lang.String key) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
     return internalGetModels().getMap().containsKey(key);
   }
-  /** Use {@link #getModelsMap()} instead. */
+  /**
+   * Use {@link #getModelsMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getModels() {
     return getModelsMap();
   }
   /**
-   *
-   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is the model name. Value can be a built-in general model,
@@ -651,12 +547,11 @@ public java.util.Map getModels() {
    * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
+
   public java.util.Map getModelsMap() {
     return internalGetModels().getMap();
   }
   /**
-   *
-   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is the model name. Value can be a built-in general model,
@@ -673,16 +568,16 @@ public java.util.Map getModelsMap() {
    * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public java.lang.String getModelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
-    java.util.Map map = internalGetModels().getMap();
+
+  public java.lang.String getModelsOrDefault(
+      java.lang.String key,
+      java.lang.String defaultValue) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
+    java.util.Map map =
+        internalGetModels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is the model name. Value can be a built-in general model,
@@ -699,11 +594,12 @@ public java.lang.String getModelsOrDefault(java.lang.String key, java.lang.Strin
    * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public java.lang.String getModelsOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
-    java.util.Map map = internalGetModels().getMap();
+
+  public java.lang.String getModelsOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
+    java.util.Map map =
+        internalGetModels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -711,32 +607,24 @@ public java.lang.String getModelsOrThrow(java.lang.String key) {
   }
 
   public static final int GLOSSARIES_FIELD_NUMBER = 7;
-
   private static final class GlossariesDefaultEntryHolder {
     static final com.google.protobuf.MapEntry<
-            java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig>
-        defaultEntry =
+        java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> defaultEntry =
             com.google.protobuf.MapEntry
-                .
-                    newDefaultInstance(
-                        com.google.cloud.translate.v3beta1.TranslationServiceProto
-                            .internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_GlossariesEntry_descriptor,
-                        com.google.protobuf.WireFormat.FieldType.STRING,
-                        "",
-                        com.google.protobuf.WireFormat.FieldType.MESSAGE,
-                        com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig
-                            .getDefaultInstance());
+            .newDefaultInstance(
+                com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_GlossariesEntry_descriptor, 
+                com.google.protobuf.WireFormat.FieldType.STRING,
+                "",
+                com.google.protobuf.WireFormat.FieldType.MESSAGE,
+                com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance());
   }
-
   private com.google.protobuf.MapField<
-          java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig>
-      glossaries_;
-
-  private com.google.protobuf.MapField<
-          java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig>
-      internalGetGlossaries() {
+      java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> glossaries_;
+  private com.google.protobuf.MapField
+  internalGetGlossaries() {
     if (glossaries_ == null) {
-      return com.google.protobuf.MapField.emptyMapField(GlossariesDefaultEntryHolder.defaultEntry);
+      return com.google.protobuf.MapField.emptyMapField(
+          GlossariesDefaultEntryHolder.defaultEntry);
     }
     return glossaries_;
   }
@@ -745,89 +633,70 @@ public int getGlossariesCount() {
     return internalGetGlossaries().getMap().size();
   }
   /**
-   *
-   *
    * 
    * Optional. Glossaries to be applied. It's keyed by target language code.
    * 
* - * - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ + @java.lang.Override - public boolean containsGlossaries(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } + public boolean containsGlossaries( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } return internalGetGlossaries().getMap().containsKey(key); } - /** Use {@link #getGlossariesMap()} instead. */ + /** + * Use {@link #getGlossariesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated - public java.util.Map< - java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> - getGlossaries() { + public java.util.Map getGlossaries() { return getGlossariesMap(); } /** - * - * *
    * Optional. Glossaries to be applied. It's keyed by target language code.
    * 
* - * - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.Map< - java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> - getGlossariesMap() { + + public java.util.Map getGlossariesMap() { return internalGetGlossaries().getMap(); } /** - * - * *
    * Optional. Glossaries to be applied. It's keyed by target language code.
    * 
* - * - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossariesOrDefault( java.lang.String key, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig defaultValue) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map - map = internalGetGlossaries().getMap(); + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetGlossaries().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Optional. Glossaries to be applied. It's keyed by target language code.
    * 
* - * - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossariesOrThrow( java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map - map = internalGetGlossaries().getMap(); + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetGlossaries().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -835,22 +704,21 @@ public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossar } public static final int FORMAT_CONVERSIONS_FIELD_NUMBER = 8; - private static final class FormatConversionsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_FormatConversionsEntry_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.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_FormatConversionsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - - private com.google.protobuf.MapField formatConversions_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> formatConversions_; private com.google.protobuf.MapField - internalGetFormatConversions() { + internalGetFormatConversions() { if (formatConversions_ == null) { return com.google.protobuf.MapField.emptyMapField( FormatConversionsDefaultEntryHolder.defaultEntry); @@ -862,8 +730,6 @@ public int getFormatConversionsCount() { return internalGetFormatConversions().getMap().size(); } /** - * - * *
    * Optional. File format conversion map to be applied to all input files.
    * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -875,26 +741,24 @@ public int getFormatConversionsCount() {
    * original file.
    * 
* - * - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; */ + @java.lang.Override - public boolean containsFormatConversions(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } + public boolean containsFormatConversions( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } return internalGetFormatConversions().getMap().containsKey(key); } - /** Use {@link #getFormatConversionsMap()} instead. */ + /** + * Use {@link #getFormatConversionsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getFormatConversions() { return getFormatConversionsMap(); } /** - * - * *
    * Optional. File format conversion map to be applied to all input files.
    * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -906,17 +770,14 @@ public java.util.Map getFormatConversions()
    * original file.
    * 
* - * - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.util.Map getFormatConversionsMap() { return internalGetFormatConversions().getMap(); } /** - * - * *
    * Optional. File format conversion map to be applied to all input files.
    * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -928,22 +789,19 @@ public java.util.Map getFormatConversionsMap
    * original file.
    * 
* - * - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.lang.String getFormatConversionsOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetFormatConversions().getMap(); + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetFormatConversions().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Optional. File format conversion map to be applied to all input files.
    * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -955,16 +813,15 @@ public java.lang.String getFormatConversionsOrDefault(
    * original file.
    * 
* - * - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getFormatConversionsOrThrow(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetFormatConversions().getMap(); + + public java.lang.String getFormatConversionsOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetFormatConversions().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -972,7 +829,6 @@ public java.lang.String getFormatConversionsOrThrow(java.lang.String key) { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -984,11 +840,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + 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_); } - if (!getSourceLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceLanguageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, sourceLanguageCode_); } for (int i = 0; i < targetLanguageCodes_.size(); i++) { @@ -1000,11 +857,20 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (outputConfig_ != null) { output.writeMessage(5, getOutputConfig()); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetModels(), ModelsDefaultEntryHolder.defaultEntry, 6); - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetGlossaries(), GlossariesDefaultEntryHolder.defaultEntry, 7); - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetModels(), + ModelsDefaultEntryHolder.defaultEntry, + 6); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetGlossaries(), + GlossariesDefaultEntryHolder.defaultEntry, + 7); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( output, internalGetFormatConversions(), FormatConversionsDefaultEntryHolder.defaultEntry, @@ -1018,10 +884,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } - if (!getSourceLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceLanguageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, sourceLanguageCode_); } { @@ -1033,43 +899,42 @@ public int getSerializedSize() { size += 1 * getTargetLanguageCodesList().size(); } for (int i = 0; i < inputConfigs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, inputConfigs_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, inputConfigs_.get(i)); } if (outputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getOutputConfig()); - } - for (java.util.Map.Entry entry : - internalGetModels().getMap().entrySet()) { - com.google.protobuf.MapEntry models__ = - ModelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, models__); - } - for (java.util.Map.Entry< - java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> - entry : internalGetGlossaries().getMap().entrySet()) { - com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> - glossaries__ = - GlossariesDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, glossaries__); - } - for (java.util.Map.Entry entry : - internalGetFormatConversions().getMap().entrySet()) { - com.google.protobuf.MapEntry formatConversions__ = - FormatConversionsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, formatConversions__); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getOutputConfig()); + } + for (java.util.Map.Entry entry + : internalGetModels().getMap().entrySet()) { + com.google.protobuf.MapEntry + models__ = ModelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, models__); + } + for (java.util.Map.Entry entry + : internalGetGlossaries().getMap().entrySet()) { + com.google.protobuf.MapEntry + glossaries__ = GlossariesDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, glossaries__); + } + for (java.util.Map.Entry entry + : internalGetFormatConversions().getMap().entrySet()) { + com.google.protobuf.MapEntry + formatConversions__ = FormatConversionsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, formatConversions__); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1079,25 +944,32 @@ 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.cloud.translate.v3beta1.BatchTranslateDocumentRequest)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest other = - (com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest) obj; + com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest other = (com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getSourceLanguageCode().equals(other.getSourceLanguageCode())) return false; - if (!getTargetLanguageCodesList().equals(other.getTargetLanguageCodesList())) return false; - if (!getInputConfigsList().equals(other.getInputConfigsList())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getSourceLanguageCode() + .equals(other.getSourceLanguageCode())) return false; + if (!getTargetLanguageCodesList() + .equals(other.getTargetLanguageCodesList())) return false; + if (!getInputConfigsList() + .equals(other.getInputConfigsList())) return false; if (hasOutputConfig() != other.hasOutputConfig()) return false; if (hasOutputConfig()) { - if (!getOutputConfig().equals(other.getOutputConfig())) return false; - } - if (!internalGetModels().equals(other.internalGetModels())) return false; - if (!internalGetGlossaries().equals(other.internalGetGlossaries())) return false; - if (!internalGetFormatConversions().equals(other.internalGetFormatConversions())) return false; + if (!getOutputConfig() + .equals(other.getOutputConfig())) return false; + } + if (!internalGetModels().equals( + other.internalGetModels())) return false; + if (!internalGetGlossaries().equals( + other.internalGetGlossaries())) return false; + if (!internalGetFormatConversions().equals( + other.internalGetFormatConversions())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1143,121 +1015,114 @@ public int hashCode() { } public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest 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.cloud.translate.v3beta1.BatchTranslateDocumentRequest 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.cloud.translate.v3beta1.BatchTranslateDocumentRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest 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.cloud.translate.v3beta1.BatchTranslateDocumentRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest 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.cloud.translate.v3beta1.BatchTranslateDocumentRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest 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.cloud.translate.v3beta1.BatchTranslateDocumentRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest 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.cloud.translate.v3beta1.BatchTranslateDocumentRequest 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.cloud.translate.v3beta1.BatchTranslateDocumentRequest 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.cloud.translate.v3beta1.BatchTranslateDocumentRequest prototype) { + public static Builder newBuilder(com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest 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 BatchTranslateDocument request.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.BatchTranslateDocumentRequest} */ - 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.translation.v3beta1.BatchTranslateDocumentRequest) com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 6: return internalGetModels(); @@ -1266,12 +1131,13 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { case 8: return internalGetFormatConversions(); 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 internalGetMutableModels(); @@ -1280,18 +1146,16 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) { case 8: return internalGetMutableFormatConversions(); 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.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest.class, - com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest.Builder.class); + com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest.class, com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest.newBuilder() @@ -1299,17 +1163,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getInputConfigsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1338,14 +1202,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_descriptor; } @java.lang.Override - public com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest - getDefaultInstanceForType() { + public com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest getDefaultInstanceForType() { return com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest.getDefaultInstance(); } @@ -1360,8 +1223,7 @@ public com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest build() @java.lang.Override public com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest buildPartial() { - com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest result = - new com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest(this); + com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest result = new com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest(this); int from_bitField0_ = bitField0_; result.parent_ = parent_; result.sourceLanguageCode_ = sourceLanguageCode_; @@ -1398,50 +1260,46 @@ public com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest buildPar 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.cloud.translate.v3beta1.BatchTranslateDocumentRequest) { - return mergeFrom((com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest) other); + return mergeFrom((com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest other) { - if (other - == com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest other) { + if (other == com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -1478,10 +1336,9 @@ public Builder mergeFrom( inputConfigsBuilder_ = null; inputConfigs_ = other.inputConfigs_; bitField0_ = (bitField0_ & ~0x00000002); - inputConfigsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getInputConfigsFieldBuilder() - : null; + inputConfigsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getInputConfigsFieldBuilder() : null; } else { inputConfigsBuilder_.addAllMessages(other.inputConfigs_); } @@ -1490,9 +1347,12 @@ public Builder mergeFrom( if (other.hasOutputConfig()) { mergeOutputConfig(other.getOutputConfig()); } - internalGetMutableModels().mergeFrom(other.internalGetModels()); - internalGetMutableGlossaries().mergeFrom(other.internalGetGlossaries()); - internalGetMutableFormatConversions().mergeFrom(other.internalGetFormatConversions()); + internalGetMutableModels().mergeFrom( + other.internalGetModels()); + internalGetMutableGlossaries().mergeFrom( + other.internalGetGlossaries()); + internalGetMutableFormatConversions().mergeFrom( + other.internalGetFormatConversions()); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -1512,9 +1372,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1523,13 +1381,10 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Location to make a regional call.
      * Format: `projects/{project-number-or-id}/locations/{location-id}`.
@@ -1539,16 +1394,14 @@ public Builder mergeFrom(
      * error is returned.
      * 
* - * - * 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; @@ -1557,8 +1410,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Location to make a regional call.
      * Format: `projects/{project-number-or-id}/locations/{location-id}`.
@@ -1568,17 +1419,16 @@ public java.lang.String getParent() {
      * error is returned.
      * 
* - * - * 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 { @@ -1586,8 +1436,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Location to make a regional call.
      * Format: `projects/{project-number-or-id}/locations/{location-id}`.
@@ -1597,25 +1445,21 @@ public com.google.protobuf.ByteString getParentBytes() {
      * error is returned.
      * 
* - * - * 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) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. Location to make a regional call.
      * Format: `projects/{project-number-or-id}/locations/{location-id}`.
@@ -1625,21 +1469,16 @@ public Builder setParent(java.lang.String value) {
      * error is returned.
      * 
* - * - * 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() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. Location to make a regional call.
      * Format: `projects/{project-number-or-id}/locations/{location-id}`.
@@ -1649,19 +1488,17 @@ public Builder clearParent() {
      * error is returned.
      * 
* - * - * 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) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -1669,8 +1506,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object sourceLanguageCode_ = ""; /** - * - * *
      * Required. The BCP-47 language code of the input document if known, for
      * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -1678,13 +1513,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The sourceLanguageCode. */ public java.lang.String getSourceLanguageCode() { java.lang.Object ref = sourceLanguageCode_; 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(); sourceLanguageCode_ = s; return s; @@ -1693,8 +1528,6 @@ public java.lang.String getSourceLanguageCode() { } } /** - * - * *
      * Required. The BCP-47 language code of the input document if known, for
      * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -1702,14 +1535,15 @@ public java.lang.String getSourceLanguageCode() {
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for sourceLanguageCode. */ - public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { + public com.google.protobuf.ByteString + getSourceLanguageCodeBytes() { java.lang.Object ref = sourceLanguageCode_; 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); sourceLanguageCode_ = b; return b; } else { @@ -1717,8 +1551,6 @@ public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { } } /** - * - * *
      * Required. The BCP-47 language code of the input document if known, for
      * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -1726,22 +1558,20 @@ public com.google.protobuf.ByteString getSourceLanguageCodeBytes() {
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCode(java.lang.String value) { + public Builder setSourceLanguageCode( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + sourceLanguageCode_ = value; onChanged(); return this; } /** - * - * *
      * Required. The BCP-47 language code of the input document if known, for
      * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -1749,18 +1579,15 @@ public Builder setSourceLanguageCode(java.lang.String value) {
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearSourceLanguageCode() { - + sourceLanguageCode_ = getDefaultInstance().getSourceLanguageCode(); onChanged(); return this; } /** - * - * *
      * Required. The BCP-47 language code of the input document if known, for
      * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -1768,73 +1595,60 @@ public Builder clearSourceLanguageCode() {
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCodeBytes(com.google.protobuf.ByteString value) { + public Builder setSourceLanguageCodeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceLanguageCode_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList targetLanguageCodes_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList targetLanguageCodes_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureTargetLanguageCodesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { targetLanguageCodes_ = new com.google.protobuf.LazyStringArrayList(targetLanguageCodes_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * Required. The BCP-47 language code to use for translation of the input
      * document. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @return A list containing the targetLanguageCodes. */ - public com.google.protobuf.ProtocolStringList getTargetLanguageCodesList() { + public com.google.protobuf.ProtocolStringList + getTargetLanguageCodesList() { return targetLanguageCodes_.getUnmodifiableView(); } /** - * - * *
      * Required. The BCP-47 language code to use for translation of the input
      * document. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The count of targetLanguageCodes. */ public int getTargetLanguageCodesCount() { return targetLanguageCodes_.size(); } /** - * - * *
      * Required. The BCP-47 language code to use for translation of the input
      * document. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param index The index of the element to return. * @return The targetLanguageCodes at the given index. */ @@ -1842,100 +1656,85 @@ public java.lang.String getTargetLanguageCodes(int index) { return targetLanguageCodes_.get(index); } /** - * - * *
      * Required. The BCP-47 language code to use for translation of the input
      * document. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param index The index of the value to return. * @return The bytes of the targetLanguageCodes at the given index. */ - public com.google.protobuf.ByteString getTargetLanguageCodesBytes(int index) { + public com.google.protobuf.ByteString + getTargetLanguageCodesBytes(int index) { return targetLanguageCodes_.getByteString(index); } /** - * - * *
      * Required. The BCP-47 language code to use for translation of the input
      * document. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param index The index to set the value at. * @param value The targetLanguageCodes to set. * @return This builder for chaining. */ - public Builder setTargetLanguageCodes(int index, java.lang.String value) { + public Builder setTargetLanguageCodes( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureTargetLanguageCodesIsMutable(); + throw new NullPointerException(); + } + ensureTargetLanguageCodesIsMutable(); targetLanguageCodes_.set(index, value); onChanged(); return this; } /** - * - * *
      * Required. The BCP-47 language code to use for translation of the input
      * document. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param value The targetLanguageCodes to add. * @return This builder for chaining. */ - public Builder addTargetLanguageCodes(java.lang.String value) { + public Builder addTargetLanguageCodes( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureTargetLanguageCodesIsMutable(); + throw new NullPointerException(); + } + ensureTargetLanguageCodesIsMutable(); targetLanguageCodes_.add(value); onChanged(); return this; } /** - * - * *
      * Required. The BCP-47 language code to use for translation of the input
      * document. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param values The targetLanguageCodes to add. * @return This builder for chaining. */ - public Builder addAllTargetLanguageCodes(java.lang.Iterable values) { + public Builder addAllTargetLanguageCodes( + java.lang.Iterable values) { ensureTargetLanguageCodesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, targetLanguageCodes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, targetLanguageCodes_); onChanged(); return this; } /** - * - * *
      * Required. The BCP-47 language code to use for translation of the input
      * document. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @return This builder for chaining. */ public Builder clearTargetLanguageCodes() { @@ -1945,51 +1744,40 @@ public Builder clearTargetLanguageCodes() { return this; } /** - * - * *
      * Required. The BCP-47 language code to use for translation of the input
      * document. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param value The bytes of the targetLanguageCodes to add. * @return This builder for chaining. */ - public Builder addTargetLanguageCodesBytes(com.google.protobuf.ByteString value) { + public Builder addTargetLanguageCodesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureTargetLanguageCodesIsMutable(); targetLanguageCodes_.add(value); onChanged(); return this; } - private java.util.List - inputConfigs_ = java.util.Collections.emptyList(); - + private java.util.List inputConfigs_ = + java.util.Collections.emptyList(); private void ensureInputConfigsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - inputConfigs_ = - new java.util.ArrayList( - inputConfigs_); + inputConfigs_ = new java.util.ArrayList(inputConfigs_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.translate.v3beta1.BatchDocumentInputConfig, - com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.Builder, - com.google.cloud.translate.v3beta1.BatchDocumentInputConfigOrBuilder> - inputConfigsBuilder_; + com.google.cloud.translate.v3beta1.BatchDocumentInputConfig, com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.Builder, com.google.cloud.translate.v3beta1.BatchDocumentInputConfigOrBuilder> inputConfigsBuilder_; /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -1997,12 +1785,9 @@ private void ensureInputConfigsIsMutable() {
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List - getInputConfigsList() { + public java.util.List getInputConfigsList() { if (inputConfigsBuilder_ == null) { return java.util.Collections.unmodifiableList(inputConfigs_); } else { @@ -2010,8 +1795,6 @@ private void ensureInputConfigsIsMutable() { } } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2019,9 +1802,7 @@ private void ensureInputConfigsIsMutable() {
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ public int getInputConfigsCount() { if (inputConfigsBuilder_ == null) { @@ -2031,8 +1812,6 @@ public int getInputConfigsCount() { } } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2040,9 +1819,7 @@ public int getInputConfigsCount() {
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.translate.v3beta1.BatchDocumentInputConfig getInputConfigs(int index) { if (inputConfigsBuilder_ == null) { @@ -2052,8 +1829,6 @@ public com.google.cloud.translate.v3beta1.BatchDocumentInputConfig getInputConfi } } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2061,9 +1836,7 @@ public com.google.cloud.translate.v3beta1.BatchDocumentInputConfig getInputConfi
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setInputConfigs( int index, com.google.cloud.translate.v3beta1.BatchDocumentInputConfig value) { @@ -2080,8 +1853,6 @@ public Builder setInputConfigs( return this; } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2089,13 +1860,10 @@ public Builder setInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setInputConfigs( - int index, - com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.Builder builderForValue) { + int index, com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.Builder builderForValue) { if (inputConfigsBuilder_ == null) { ensureInputConfigsIsMutable(); inputConfigs_.set(index, builderForValue.build()); @@ -2106,8 +1874,6 @@ public Builder setInputConfigs( return this; } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2115,12 +1881,9 @@ public Builder setInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder addInputConfigs( - com.google.cloud.translate.v3beta1.BatchDocumentInputConfig value) { + public Builder addInputConfigs(com.google.cloud.translate.v3beta1.BatchDocumentInputConfig value) { if (inputConfigsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2134,8 +1897,6 @@ public Builder addInputConfigs( return this; } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2143,9 +1904,7 @@ public Builder addInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addInputConfigs( int index, com.google.cloud.translate.v3beta1.BatchDocumentInputConfig value) { @@ -2162,8 +1921,6 @@ public Builder addInputConfigs( return this; } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2171,9 +1928,7 @@ public Builder addInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addInputConfigs( com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.Builder builderForValue) { @@ -2187,8 +1942,6 @@ public Builder addInputConfigs( return this; } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2196,13 +1949,10 @@ public Builder addInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addInputConfigs( - int index, - com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.Builder builderForValue) { + int index, com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.Builder builderForValue) { if (inputConfigsBuilder_ == null) { ensureInputConfigsIsMutable(); inputConfigs_.add(index, builderForValue.build()); @@ -2213,8 +1963,6 @@ public Builder addInputConfigs( return this; } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2222,16 +1970,14 @@ public Builder addInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addAllInputConfigs( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (inputConfigsBuilder_ == null) { ensureInputConfigsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, inputConfigs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, inputConfigs_); onChanged(); } else { inputConfigsBuilder_.addAllMessages(values); @@ -2239,8 +1985,6 @@ public Builder addAllInputConfigs( return this; } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2248,9 +1992,7 @@ public Builder addAllInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearInputConfigs() { if (inputConfigsBuilder_ == null) { @@ -2263,8 +2005,6 @@ public Builder clearInputConfigs() { return this; } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2272,9 +2012,7 @@ public Builder clearInputConfigs() {
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder removeInputConfigs(int index) { if (inputConfigsBuilder_ == null) { @@ -2287,8 +2025,6 @@ public Builder removeInputConfigs(int index) { return this; } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2296,17 +2032,13 @@ public Builder removeInputConfigs(int index) {
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.Builder - getInputConfigsBuilder(int index) { + public com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.Builder getInputConfigsBuilder( + int index) { return getInputConfigsFieldBuilder().getBuilder(index); } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2314,21 +2046,16 @@ public Builder removeInputConfigs(int index) {
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.translate.v3beta1.BatchDocumentInputConfigOrBuilder - getInputConfigsOrBuilder(int index) { + public com.google.cloud.translate.v3beta1.BatchDocumentInputConfigOrBuilder getInputConfigsOrBuilder( + int index) { if (inputConfigsBuilder_ == null) { - return inputConfigs_.get(index); - } else { + return inputConfigs_.get(index); } else { return inputConfigsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2336,13 +2063,10 @@ public Builder removeInputConfigs(int index) {
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List< - ? extends com.google.cloud.translate.v3beta1.BatchDocumentInputConfigOrBuilder> - getInputConfigsOrBuilderList() { + public java.util.List + getInputConfigsOrBuilderList() { if (inputConfigsBuilder_ != null) { return inputConfigsBuilder_.getMessageOrBuilderList(); } else { @@ -2350,8 +2074,6 @@ public Builder removeInputConfigs(int index) { } } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2359,19 +2081,13 @@ public Builder removeInputConfigs(int index) {
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.Builder - addInputConfigsBuilder() { - return getInputConfigsFieldBuilder() - .addBuilder( - com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.getDefaultInstance()); + public com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.Builder addInputConfigsBuilder() { + return getInputConfigsFieldBuilder().addBuilder( + com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.getDefaultInstance()); } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2379,20 +2095,14 @@ public Builder removeInputConfigs(int index) {
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.Builder - addInputConfigsBuilder(int index) { - return getInputConfigsFieldBuilder() - .addBuilder( - index, - com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.getDefaultInstance()); + public com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.Builder addInputConfigsBuilder( + int index) { + return getInputConfigsFieldBuilder().addBuilder( + index, com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.getDefaultInstance()); } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2400,27 +2110,22 @@ public Builder removeInputConfigs(int index) {
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List - getInputConfigsBuilderList() { + public java.util.List + getInputConfigsBuilderList() { return getInputConfigsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.translate.v3beta1.BatchDocumentInputConfig, - com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.Builder, - com.google.cloud.translate.v3beta1.BatchDocumentInputConfigOrBuilder> + com.google.cloud.translate.v3beta1.BatchDocumentInputConfig, com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.Builder, com.google.cloud.translate.v3beta1.BatchDocumentInputConfigOrBuilder> getInputConfigsFieldBuilder() { if (inputConfigsBuilder_ == null) { - inputConfigsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.translate.v3beta1.BatchDocumentInputConfig, - com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.Builder, - com.google.cloud.translate.v3beta1.BatchDocumentInputConfigOrBuilder>( - inputConfigs_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + inputConfigsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.translate.v3beta1.BatchDocumentInputConfig, com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.Builder, com.google.cloud.translate.v3beta1.BatchDocumentInputConfigOrBuilder>( + inputConfigs_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); inputConfigs_ = null; } return inputConfigsBuilder_; @@ -2428,67 +2133,47 @@ public Builder removeInputConfigs(int index) { private com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig outputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig, - com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.Builder, - com.google.cloud.translate.v3beta1.BatchDocumentOutputConfigOrBuilder> - outputConfigBuilder_; + com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig, com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.Builder, com.google.cloud.translate.v3beta1.BatchDocumentOutputConfigOrBuilder> outputConfigBuilder_; /** - * - * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * - * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return outputConfigBuilder_ != null || outputConfig_ != null; } /** - * - * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * - * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; * @return The outputConfig. */ public com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig getOutputConfig() { if (outputConfigBuilder_ == null) { - return outputConfig_ == null - ? com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.getDefaultInstance() : outputConfig_; } else { return outputConfigBuilder_.getMessage(); } } /** - * - * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * - * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setOutputConfig( - com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig value) { + public Builder setOutputConfig(com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig value) { if (outputConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2502,17 +2187,13 @@ public Builder setOutputConfig( return this; } /** - * - * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * - * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setOutputConfig( com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.Builder builderForValue) { @@ -2526,26 +2207,19 @@ public Builder setOutputConfig( return this; } /** - * - * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * - * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeOutputConfig( - com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig value) { + public Builder mergeOutputConfig(com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig value) { if (outputConfigBuilder_ == null) { if (outputConfig_ != null) { outputConfig_ = - com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.newBuilder(outputConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.newBuilder(outputConfig_).mergeFrom(value).buildPartial(); } else { outputConfig_ = value; } @@ -2557,17 +2231,13 @@ public Builder mergeOutputConfig( return this; } /** - * - * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * - * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearOutputConfig() { if (outputConfigBuilder_ == null) { @@ -2581,92 +2251,75 @@ public Builder clearOutputConfig() { return this; } /** - * - * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * - * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.Builder - getOutputConfigBuilder() { - + public com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.Builder getOutputConfigBuilder() { + onChanged(); return getOutputConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * - * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.translate.v3beta1.BatchDocumentOutputConfigOrBuilder - getOutputConfigOrBuilder() { + public com.google.cloud.translate.v3beta1.BatchDocumentOutputConfigOrBuilder getOutputConfigOrBuilder() { if (outputConfigBuilder_ != null) { return outputConfigBuilder_.getMessageOrBuilder(); } else { - return outputConfig_ == null - ? com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? + com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.getDefaultInstance() : outputConfig_; } } /** - * - * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * - * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig, - com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.Builder, - com.google.cloud.translate.v3beta1.BatchDocumentOutputConfigOrBuilder> + com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig, com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.Builder, com.google.cloud.translate.v3beta1.BatchDocumentOutputConfigOrBuilder> getOutputConfigFieldBuilder() { if (outputConfigBuilder_ == null) { - outputConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig, - com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.Builder, - com.google.cloud.translate.v3beta1.BatchDocumentOutputConfigOrBuilder>( - getOutputConfig(), getParentForChildren(), isClean()); + outputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig, com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.Builder, com.google.cloud.translate.v3beta1.BatchDocumentOutputConfigOrBuilder>( + getOutputConfig(), + getParentForChildren(), + isClean()); outputConfig_ = null; } return outputConfigBuilder_; } - private com.google.protobuf.MapField models_; - - private com.google.protobuf.MapField internalGetModels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> models_; + private com.google.protobuf.MapField + internalGetModels() { if (models_ == null) { - return com.google.protobuf.MapField.emptyMapField(ModelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + ModelsDefaultEntryHolder.defaultEntry); } return models_; } - private com.google.protobuf.MapField - internalGetMutableModels() { - onChanged(); - ; + internalGetMutableModels() { + onChanged();; if (models_ == null) { - models_ = com.google.protobuf.MapField.newMapField(ModelsDefaultEntryHolder.defaultEntry); + models_ = com.google.protobuf.MapField.newMapField( + ModelsDefaultEntryHolder.defaultEntry); } if (!models_.isMutable()) { models_ = models_.copy(); @@ -2678,8 +2331,6 @@ public int getModelsCount() { return internalGetModels().getMap().size(); } /** - * - * *
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is the model name. Value can be a built-in general model,
@@ -2695,22 +2346,22 @@ public int getModelsCount() {
      *
      * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
+
     @java.lang.Override
-    public boolean containsModels(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
+    public boolean containsModels(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
       return internalGetModels().getMap().containsKey(key);
     }
-    /** Use {@link #getModelsMap()} instead. */
+    /**
+     * Use {@link #getModelsMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getModels() {
       return getModelsMap();
     }
     /**
-     *
-     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is the model name. Value can be a built-in general model,
@@ -2727,12 +2378,11 @@ public java.util.Map getModels() {
      * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
+
     public java.util.Map getModelsMap() {
       return internalGetModels().getMap();
     }
     /**
-     *
-     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is the model name. Value can be a built-in general model,
@@ -2749,17 +2399,16 @@ public java.util.Map getModelsMap() {
      * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
+
     public java.lang.String getModelsOrDefault(
-        java.lang.String key, java.lang.String defaultValue) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      java.util.Map map = internalGetModels().getMap();
+        java.lang.String key,
+        java.lang.String defaultValue) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      java.util.Map map =
+          internalGetModels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is the model name. Value can be a built-in general model,
@@ -2776,11 +2425,12 @@ public java.lang.String getModelsOrDefault(
      * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public java.lang.String getModelsOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      java.util.Map map = internalGetModels().getMap();
+
+    public java.lang.String getModelsOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      java.util.Map map =
+          internalGetModels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -2788,12 +2438,11 @@ public java.lang.String getModelsOrThrow(java.lang.String key) {
     }
 
     public Builder clearModels() {
-      internalGetMutableModels().getMutableMap().clear();
+      internalGetMutableModels().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is the model name. Value can be a built-in general model,
@@ -2809,21 +2458,23 @@ public Builder clearModels() {
      *
      * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder removeModels(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      internalGetMutableModels().getMutableMap().remove(key);
+
+    public Builder removeModels(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      internalGetMutableModels().getMutableMap()
+          .remove(key);
       return this;
     }
-    /** Use alternate mutation accessors instead. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableModels() {
+    public java.util.Map
+    getMutableModels() {
       return internalGetMutableModels().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is the model name. Value can be a built-in general model,
@@ -2839,19 +2490,16 @@ public java.util.Map getMutableModels() {
      *
      * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putModels(java.lang.String key, java.lang.String value) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      if (value == null) {
-        throw new java.lang.NullPointerException();
-      }
-      internalGetMutableModels().getMutableMap().put(key, value);
+    public Builder putModels(
+        java.lang.String key,
+        java.lang.String value) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      if (value == null) { throw new java.lang.NullPointerException(); }
+      internalGetMutableModels().getMutableMap()
+          .put(key, value);
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is the model name. Value can be a built-in general model,
@@ -2867,33 +2515,30 @@ public Builder putModels(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putAllModels(java.util.Map values) {
-      internalGetMutableModels().getMutableMap().putAll(values);
+
+    public Builder putAllModels(
+        java.util.Map values) {
+      internalGetMutableModels().getMutableMap()
+          .putAll(values);
       return this;
     }
 
     private com.google.protobuf.MapField<
-            java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig>
-        glossaries_;
-
-    private com.google.protobuf.MapField<
-            java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig>
-        internalGetGlossaries() {
+        java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> glossaries_;
+    private com.google.protobuf.MapField
+    internalGetGlossaries() {
       if (glossaries_ == null) {
         return com.google.protobuf.MapField.emptyMapField(
             GlossariesDefaultEntryHolder.defaultEntry);
       }
       return glossaries_;
     }
-
-    private com.google.protobuf.MapField<
-            java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig>
-        internalGetMutableGlossaries() {
-      onChanged();
-      ;
+    private com.google.protobuf.MapField
+    internalGetMutableGlossaries() {
+      onChanged();;
       if (glossaries_ == null) {
-        glossaries_ =
-            com.google.protobuf.MapField.newMapField(GlossariesDefaultEntryHolder.defaultEntry);
+        glossaries_ = com.google.protobuf.MapField.newMapField(
+            GlossariesDefaultEntryHolder.defaultEntry);
       }
       if (!glossaries_.isMutable()) {
         glossaries_ = glossaries_.copy();
@@ -2905,91 +2550,70 @@ public int getGlossariesCount() {
       return internalGetGlossaries().getMap().size();
     }
     /**
-     *
-     *
      * 
      * Optional. Glossaries to be applied. It's keyed by target language code.
      * 
* - * - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ + @java.lang.Override - public boolean containsGlossaries(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } + public boolean containsGlossaries( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } return internalGetGlossaries().getMap().containsKey(key); } - /** Use {@link #getGlossariesMap()} instead. */ + /** + * Use {@link #getGlossariesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated - public java.util.Map< - java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> - getGlossaries() { + public java.util.Map getGlossaries() { return getGlossariesMap(); } /** - * - * *
      * Optional. Glossaries to be applied. It's keyed by target language code.
      * 
* - * - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.Map< - java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> - getGlossariesMap() { + + public java.util.Map getGlossariesMap() { return internalGetGlossaries().getMap(); } /** - * - * *
      * Optional. Glossaries to be applied. It's keyed by target language code.
      * 
* - * - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossariesOrDefault( java.lang.String key, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig defaultValue) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map< - java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> - map = internalGetGlossaries().getMap(); + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetGlossaries().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Optional. Glossaries to be applied. It's keyed by target language code.
      * 
* - * - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossariesOrThrow( java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map< - java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> - map = internalGetGlossaries().getMap(); + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetGlossaries().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -2997,95 +2621,80 @@ public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossar } public Builder clearGlossaries() { - internalGetMutableGlossaries().getMutableMap().clear(); + internalGetMutableGlossaries().getMutableMap() + .clear(); return this; } /** - * - * *
      * Optional. Glossaries to be applied. It's keyed by target language code.
      * 
* - * - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder removeGlossaries(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableGlossaries().getMutableMap().remove(key); + + public Builder removeGlossaries( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableGlossaries().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map< - java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> - getMutableGlossaries() { + public java.util.Map + getMutableGlossaries() { return internalGetMutableGlossaries().getMutableMap(); } /** - * - * *
      * Optional. Glossaries to be applied. It's keyed by target language code.
      * 
* - * - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder putGlossaries( java.lang.String key, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig value) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - if (value == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableGlossaries().getMutableMap().put(key, value); + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableGlossaries().getMutableMap() + .put(key, value); return this; } /** - * - * *
      * Optional. Glossaries to be applied. It's keyed by target language code.
      * 
* - * - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ + public Builder putAllGlossaries( - java.util.Map< - java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> - values) { - internalGetMutableGlossaries().getMutableMap().putAll(values); + java.util.Map values) { + internalGetMutableGlossaries().getMutableMap() + .putAll(values); return this; } - private com.google.protobuf.MapField formatConversions_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> formatConversions_; private com.google.protobuf.MapField - internalGetFormatConversions() { + internalGetFormatConversions() { if (formatConversions_ == null) { return com.google.protobuf.MapField.emptyMapField( FormatConversionsDefaultEntryHolder.defaultEntry); } return formatConversions_; } - private com.google.protobuf.MapField - internalGetMutableFormatConversions() { - onChanged(); - ; + internalGetMutableFormatConversions() { + onChanged();; if (formatConversions_ == null) { - formatConversions_ = - com.google.protobuf.MapField.newMapField( - FormatConversionsDefaultEntryHolder.defaultEntry); + formatConversions_ = com.google.protobuf.MapField.newMapField( + FormatConversionsDefaultEntryHolder.defaultEntry); } if (!formatConversions_.isMutable()) { formatConversions_ = formatConversions_.copy(); @@ -3097,8 +2706,6 @@ public int getFormatConversionsCount() { return internalGetFormatConversions().getMap().size(); } /** - * - * *
      * Optional. File format conversion map to be applied to all input files.
      * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -3110,26 +2717,24 @@ public int getFormatConversionsCount() {
      * original file.
      * 
* - * - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; */ + @java.lang.Override - public boolean containsFormatConversions(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } + public boolean containsFormatConversions( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } return internalGetFormatConversions().getMap().containsKey(key); } - /** Use {@link #getFormatConversionsMap()} instead. */ + /** + * Use {@link #getFormatConversionsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getFormatConversions() { return getFormatConversionsMap(); } /** - * - * *
      * Optional. File format conversion map to be applied to all input files.
      * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -3141,17 +2746,14 @@ public java.util.Map getFormatConversions()
      * original file.
      * 
* - * - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.util.Map getFormatConversionsMap() { return internalGetFormatConversions().getMap(); } /** - * - * *
      * Optional. File format conversion map to be applied to all input files.
      * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -3163,23 +2765,19 @@ public java.util.Map getFormatConversionsMap
      * original file.
      * 
* - * - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.lang.String getFormatConversionsOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new java.lang.NullPointerException(); - } + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetFormatConversions().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Optional. File format conversion map to be applied to all input files.
      * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -3191,15 +2789,13 @@ public java.lang.String getFormatConversionsOrDefault(
      * original file.
      * 
* - * - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getFormatConversionsOrThrow(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } + + public java.lang.String getFormatConversionsOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetFormatConversions().getMap(); if (!map.containsKey(key)) { @@ -3209,12 +2805,11 @@ public java.lang.String getFormatConversionsOrThrow(java.lang.String key) { } public Builder clearFormatConversions() { - internalGetMutableFormatConversions().getMutableMap().clear(); + internalGetMutableFormatConversions().getMutableMap() + .clear(); return this; } /** - * - * *
      * Optional. File format conversion map to be applied to all input files.
      * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -3226,25 +2821,25 @@ public Builder clearFormatConversions() {
      * original file.
      * 
* - * - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder removeFormatConversions(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableFormatConversions().getMutableMap().remove(key); + + public Builder removeFormatConversions( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableFormatConversions().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableFormatConversions() { + public java.util.Map + getMutableFormatConversions() { return internalGetMutableFormatConversions().getMutableMap(); } /** - * - * *
      * Optional. File format conversion map to be applied to all input files.
      * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -3256,23 +2851,18 @@ public java.util.Map getMutableFormatConvers
      * original file.
      * 
* - * - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder putFormatConversions(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - if (value == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableFormatConversions().getMutableMap().put(key, value); + public Builder putFormatConversions( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableFormatConversions().getMutableMap() + .put(key, value); return this; } /** - * - * *
      * Optional. File format conversion map to be applied to all input files.
      * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -3284,18 +2874,18 @@ public Builder putFormatConversions(java.lang.String key, java.lang.String value
      * original file.
      * 
* - * - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; */ + public Builder putAllFormatConversions( java.util.Map values) { - internalGetMutableFormatConversions().getMutableMap().putAll(values); + internalGetMutableFormatConversions().getMutableMap() + .putAll(values); 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); } @@ -3305,32 +2895,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.BatchTranslateDocumentRequest) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.BatchTranslateDocumentRequest) - private static final com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest(); } - public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest - getDefaultInstance() { + public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchTranslateDocumentRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BatchTranslateDocumentRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchTranslateDocumentRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BatchTranslateDocumentRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3342,8 +2930,9 @@ public com.google.protobuf.Parser getParserForTyp } @java.lang.Override - public com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest - getDefaultInstanceForType() { + public com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentRequestOrBuilder.java b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentRequestOrBuilder.java similarity index 71% rename from proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentRequestOrBuilder.java rename to owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentRequestOrBuilder.java index 3859890b..f9ecaa0f 100644 --- a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentRequestOrBuilder.java +++ b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 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/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; -public interface BatchTranslateDocumentRequestOrBuilder - extends +public interface BatchTranslateDocumentRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.BatchTranslateDocumentRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Location to make a regional call.
    * Format: `projects/{project-number-or-id}/locations/{location-id}`.
@@ -35,16 +17,11 @@ public interface BatchTranslateDocumentRequestOrBuilder
    * error is returned.
    * 
* - * - * 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. Location to make a regional call.
    * Format: `projects/{project-number-or-id}/locations/{location-id}`.
@@ -54,17 +31,13 @@ public interface BatchTranslateDocumentRequestOrBuilder
    * error is returned.
    * 
* - * - * 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(); /** - * - * *
    * Required. The BCP-47 language code of the input document if known, for
    * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -72,13 +45,10 @@ public interface BatchTranslateDocumentRequestOrBuilder
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The sourceLanguageCode. */ java.lang.String getSourceLanguageCode(); /** - * - * *
    * Required. The BCP-47 language code of the input document if known, for
    * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -86,73 +56,57 @@ public interface BatchTranslateDocumentRequestOrBuilder
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for sourceLanguageCode. */ - com.google.protobuf.ByteString getSourceLanguageCodeBytes(); + com.google.protobuf.ByteString + getSourceLanguageCodeBytes(); /** - * - * *
    * Required. The BCP-47 language code to use for translation of the input
    * document. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @return A list containing the targetLanguageCodes. */ - java.util.List getTargetLanguageCodesList(); + java.util.List + getTargetLanguageCodesList(); /** - * - * *
    * Required. The BCP-47 language code to use for translation of the input
    * document. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The count of targetLanguageCodes. */ int getTargetLanguageCodesCount(); /** - * - * *
    * Required. The BCP-47 language code to use for translation of the input
    * document. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param index The index of the element to return. * @return The targetLanguageCodes at the given index. */ java.lang.String getTargetLanguageCodes(int index); /** - * - * *
    * Required. The BCP-47 language code to use for translation of the input
    * document. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param index The index of the value to return. * @return The bytes of the targetLanguageCodes at the given index. */ - com.google.protobuf.ByteString getTargetLanguageCodesBytes(int index); + com.google.protobuf.ByteString + getTargetLanguageCodesBytes(int index); /** - * - * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -160,14 +114,11 @@ public interface BatchTranslateDocumentRequestOrBuilder
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ - java.util.List getInputConfigsList(); + java.util.List + getInputConfigsList(); /** - * - * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -175,14 +126,10 @@ public interface BatchTranslateDocumentRequestOrBuilder
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.translate.v3beta1.BatchDocumentInputConfig getInputConfigs(int index); /** - * - * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -190,14 +137,10 @@ public interface BatchTranslateDocumentRequestOrBuilder
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ int getInputConfigsCount(); /** - * - * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -205,15 +148,11 @@ public interface BatchTranslateDocumentRequestOrBuilder
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ - java.util.List + java.util.List getInputConfigsOrBuilderList(); /** - * - * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -221,63 +160,45 @@ public interface BatchTranslateDocumentRequestOrBuilder
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.translate.v3beta1.BatchDocumentInputConfigOrBuilder getInputConfigsOrBuilder( int index); /** - * - * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * - * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the outputConfig field is set. */ boolean hasOutputConfig(); /** - * - * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * - * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; * @return The outputConfig. */ com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig getOutputConfig(); /** - * - * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * - * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.translate.v3beta1.BatchDocumentOutputConfigOrBuilder getOutputConfigOrBuilder(); /** - * - * *
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is the model name. Value can be a built-in general model,
@@ -295,8 +216,6 @@ com.google.cloud.translate.v3beta1.BatchDocumentInputConfigOrBuilder getInputCon
    */
   int getModelsCount();
   /**
-   *
-   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is the model name. Value can be a built-in general model,
@@ -312,13 +231,15 @@ com.google.cloud.translate.v3beta1.BatchDocumentInputConfigOrBuilder getInputCon
    *
    * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
-  boolean containsModels(java.lang.String key);
-  /** Use {@link #getModelsMap()} instead. */
+  boolean containsModels(
+      java.lang.String key);
+  /**
+   * Use {@link #getModelsMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getModels();
+  java.util.Map
+  getModels();
   /**
-   *
-   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is the model name. Value can be a built-in general model,
@@ -334,10 +255,9 @@ com.google.cloud.translate.v3beta1.BatchDocumentInputConfigOrBuilder getInputCon
    *
    * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.util.Map getModelsMap();
+  java.util.Map
+  getModelsMap();
   /**
-   *
-   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is the model name. Value can be a built-in general model,
@@ -353,10 +273,11 @@ com.google.cloud.translate.v3beta1.BatchDocumentInputConfigOrBuilder getInputCon
    *
    * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.lang.String getModelsOrDefault(java.lang.String key, java.lang.String defaultValue);
+
+  java.lang.String getModelsOrDefault(
+      java.lang.String key,
+      java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is the model name. Value can be a built-in general model,
@@ -372,80 +293,65 @@ com.google.cloud.translate.v3beta1.BatchDocumentInputConfigOrBuilder getInputCon
    *
    * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.lang.String getModelsOrThrow(java.lang.String key);
+
+  java.lang.String getModelsOrThrow(
+      java.lang.String key);
 
   /**
-   *
-   *
    * 
    * Optional. Glossaries to be applied. It's keyed by target language code.
    * 
* - * - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ int getGlossariesCount(); /** - * - * *
    * Optional. Glossaries to be applied. It's keyed by target language code.
    * 
* - * - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsGlossaries( + java.lang.String key); + /** + * Use {@link #getGlossariesMap()} instead. */ - boolean containsGlossaries(java.lang.String key); - /** Use {@link #getGlossariesMap()} instead. */ @java.lang.Deprecated java.util.Map - getGlossaries(); + getGlossaries(); /** - * - * *
    * Optional. Glossaries to be applied. It's keyed by target language code.
    * 
* - * - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ java.util.Map - getGlossariesMap(); + getGlossariesMap(); /** - * - * *
    * Optional. Glossaries to be applied. It's keyed by target language code.
    * 
* - * - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossariesOrDefault( java.lang.String key, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig defaultValue); /** - * - * *
    * Optional. Glossaries to be applied. It's keyed by target language code.
    * 
* - * - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossariesOrThrow( java.lang.String key); /** - * - * *
    * Optional. File format conversion map to be applied to all input files.
    * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -457,14 +363,10 @@ com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossariesOrTh
    * original file.
    * 
* - * - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; */ int getFormatConversionsCount(); /** - * - * *
    * Optional. File format conversion map to be applied to all input files.
    * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -476,17 +378,17 @@ com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossariesOrTh
    * original file.
    * 
* - * - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsFormatConversions( + java.lang.String key); + /** + * Use {@link #getFormatConversionsMap()} instead. */ - boolean containsFormatConversions(java.lang.String key); - /** Use {@link #getFormatConversionsMap()} instead. */ @java.lang.Deprecated - java.util.Map getFormatConversions(); + java.util.Map + getFormatConversions(); /** - * - * *
    * Optional. File format conversion map to be applied to all input files.
    * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -498,14 +400,11 @@ com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossariesOrTh
    * original file.
    * 
* - * - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.Map getFormatConversionsMap(); + java.util.Map + getFormatConversionsMap(); /** - * - * *
    * Optional. File format conversion map to be applied to all input files.
    * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -517,15 +416,13 @@ com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossariesOrTh
    * original file.
    * 
* - * - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; */ + java.lang.String getFormatConversionsOrDefault( - java.lang.String key, java.lang.String defaultValue); + java.lang.String key, + java.lang.String defaultValue); /** - * - * *
    * Optional. File format conversion map to be applied to all input files.
    * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -537,9 +434,9 @@ java.lang.String getFormatConversionsOrDefault(
    * original file.
    * 
* - * - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; */ - java.lang.String getFormatConversionsOrThrow(java.lang.String key); + + java.lang.String getFormatConversionsOrThrow( + java.lang.String key); } diff --git a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentResponse.java b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentResponse.java similarity index 73% rename from proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentResponse.java rename to owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentResponse.java index 24be43de..89e068ec 100644 --- a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentResponse.java +++ b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentResponse.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 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/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; /** - * - * *
  * Stored in the
  * [google.longrunning.Operation.response][google.longrunning.Operation.response]
@@ -30,30 +13,30 @@
  *
  * Protobuf type {@code google.cloud.translation.v3beta1.BatchTranslateDocumentResponse}
  */
-public final class BatchTranslateDocumentResponse extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class BatchTranslateDocumentResponse extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.BatchTranslateDocumentResponse)
     BatchTranslateDocumentResponseOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use BatchTranslateDocumentResponse.newBuilder() to construct.
-  private BatchTranslateDocumentResponse(
-      com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private BatchTranslateDocumentResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private BatchTranslateDocumentResponse() {}
+  private BatchTranslateDocumentResponse() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new BatchTranslateDocumentResponse();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private BatchTranslateDocumentResponse(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -72,122 +55,113 @@ private BatchTranslateDocumentResponse(
           case 0:
             done = true;
             break;
-          case 8:
-            {
-              totalPages_ = input.readInt64();
-              break;
-            }
-          case 16:
-            {
-              translatedPages_ = input.readInt64();
-              break;
-            }
-          case 24:
-            {
-              failedPages_ = input.readInt64();
-              break;
-            }
-          case 32:
-            {
-              totalBillablePages_ = input.readInt64();
-              break;
-            }
-          case 40:
-            {
-              totalCharacters_ = input.readInt64();
-              break;
-            }
-          case 48:
-            {
-              translatedCharacters_ = input.readInt64();
-              break;
-            }
-          case 56:
-            {
-              failedCharacters_ = input.readInt64();
-              break;
+          case 8: {
+
+            totalPages_ = input.readInt64();
+            break;
+          }
+          case 16: {
+
+            translatedPages_ = input.readInt64();
+            break;
+          }
+          case 24: {
+
+            failedPages_ = input.readInt64();
+            break;
+          }
+          case 32: {
+
+            totalBillablePages_ = input.readInt64();
+            break;
+          }
+          case 40: {
+
+            totalCharacters_ = input.readInt64();
+            break;
+          }
+          case 48: {
+
+            translatedCharacters_ = input.readInt64();
+            break;
+          }
+          case 56: {
+
+            failedCharacters_ = input.readInt64();
+            break;
+          }
+          case 64: {
+
+            totalBillableCharacters_ = input.readInt64();
+            break;
+          }
+          case 74: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (submitTime_ != null) {
+              subBuilder = submitTime_.toBuilder();
             }
-          case 64:
-            {
-              totalBillableCharacters_ = input.readInt64();
-              break;
+            submitTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(submitTime_);
+              submitTime_ = subBuilder.buildPartial();
             }
-          case 74:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (submitTime_ != null) {
-                subBuilder = submitTime_.toBuilder();
-              }
-              submitTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(submitTime_);
-                submitTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+
+            break;
+          }
+          case 82: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (endTime_ != null) {
+              subBuilder = endTime_.toBuilder();
             }
-          case 82:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (endTime_ != null) {
-                subBuilder = endTime_.toBuilder();
-              }
-              endTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(endTime_);
-                endTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+            endTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(endTime_);
+              endTime_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.translate.v3beta1.TranslationServiceProto
-        .internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.translate.v3beta1.TranslationServiceProto
-        .internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentResponse_fieldAccessorTable
+    return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse.class,
-            com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse.Builder.class);
+            com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse.class, com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse.Builder.class);
   }
 
   public static final int TOTAL_PAGES_FIELD_NUMBER = 1;
   private long totalPages_;
   /**
-   *
-   *
    * 
    * Total number of pages to translate in all documents. Documents without
    * clear page definition (such as XLSX) are not counted.
    * 
* * int64 total_pages = 1; - * * @return The totalPages. */ @java.lang.Override @@ -198,15 +172,12 @@ public long getTotalPages() { public static final int TRANSLATED_PAGES_FIELD_NUMBER = 2; private long translatedPages_; /** - * - * *
    * Number of successfully translated pages in all documents. Documents without
    * clear page definition (such as XLSX) are not counted.
    * 
* * int64 translated_pages = 2; - * * @return The translatedPages. */ @java.lang.Override @@ -217,15 +188,12 @@ public long getTranslatedPages() { public static final int FAILED_PAGES_FIELD_NUMBER = 3; private long failedPages_; /** - * - * *
    * Number of pages that failed to process in all documents. Documents without
    * clear page definition (such as XLSX) are not counted.
    * 
* * int64 failed_pages = 3; - * * @return The failedPages. */ @java.lang.Override @@ -236,15 +204,12 @@ public long getFailedPages() { public static final int TOTAL_BILLABLE_PAGES_FIELD_NUMBER = 4; private long totalBillablePages_; /** - * - * *
    * Number of billable pages in documents with clear page definition (such as
    * PDF, DOCX, PPTX)
    * 
* * int64 total_billable_pages = 4; - * * @return The totalBillablePages. */ @java.lang.Override @@ -255,14 +220,11 @@ public long getTotalBillablePages() { public static final int TOTAL_CHARACTERS_FIELD_NUMBER = 5; private long totalCharacters_; /** - * - * *
    * Total number of characters (Unicode codepoints) in all documents.
    * 
* * int64 total_characters = 5; - * * @return The totalCharacters. */ @java.lang.Override @@ -273,15 +235,12 @@ public long getTotalCharacters() { public static final int TRANSLATED_CHARACTERS_FIELD_NUMBER = 6; private long translatedCharacters_; /** - * - * *
    * Number of successfully translated characters (Unicode codepoints) in all
    * documents.
    * 
* * int64 translated_characters = 6; - * * @return The translatedCharacters. */ @java.lang.Override @@ -292,15 +251,12 @@ public long getTranslatedCharacters() { public static final int FAILED_CHARACTERS_FIELD_NUMBER = 7; private long failedCharacters_; /** - * - * *
    * Number of characters that have failed to process (Unicode codepoints) in
    * all documents.
    * 
* * int64 failed_characters = 7; - * * @return The failedCharacters. */ @java.lang.Override @@ -311,15 +267,12 @@ public long getFailedCharacters() { public static final int TOTAL_BILLABLE_CHARACTERS_FIELD_NUMBER = 8; private long totalBillableCharacters_; /** - * - * *
    * Number of billable characters (Unicode codepoints) in documents without
    * clear page definition, such as XLSX.
    * 
* * int64 total_billable_characters = 8; - * * @return The totalBillableCharacters. */ @java.lang.Override @@ -330,14 +283,11 @@ public long getTotalBillableCharacters() { public static final int SUBMIT_TIME_FIELD_NUMBER = 9; private com.google.protobuf.Timestamp submitTime_; /** - * - * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 9; - * * @return Whether the submitTime field is set. */ @java.lang.Override @@ -345,14 +295,11 @@ public boolean hasSubmitTime() { return submitTime_ != null; } /** - * - * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 9; - * * @return The submitTime. */ @java.lang.Override @@ -360,8 +307,6 @@ public com.google.protobuf.Timestamp getSubmitTime() { return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } /** - * - * *
    * Time when the operation was submitted.
    * 
@@ -376,8 +321,6 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 10; private com.google.protobuf.Timestamp endTime_; /** - * - * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -385,7 +328,6 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() {
    * 
* * .google.protobuf.Timestamp end_time = 10; - * * @return Whether the endTime field is set. */ @java.lang.Override @@ -393,8 +335,6 @@ public boolean hasEndTime() { return endTime_ != null; } /** - * - * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -402,7 +342,6 @@ public boolean hasEndTime() {
    * 
* * .google.protobuf.Timestamp end_time = 10; - * * @return The endTime. */ @java.lang.Override @@ -410,8 +349,6 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** - * - * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -426,7 +363,6 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -438,7 +374,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 (totalPages_ != 0L) {
       output.writeInt64(1, totalPages_);
     }
@@ -479,34 +416,44 @@ public int getSerializedSize() {
 
     size = 0;
     if (totalPages_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, totalPages_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(1, totalPages_);
     }
     if (translatedPages_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, translatedPages_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(2, translatedPages_);
     }
     if (failedPages_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, failedPages_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(3, failedPages_);
     }
     if (totalBillablePages_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, totalBillablePages_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(4, totalBillablePages_);
     }
     if (totalCharacters_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, totalCharacters_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(5, totalCharacters_);
     }
     if (translatedCharacters_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, translatedCharacters_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(6, translatedCharacters_);
     }
     if (failedCharacters_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream.computeInt64Size(7, failedCharacters_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(7, failedCharacters_);
     }
     if (totalBillableCharacters_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream.computeInt64Size(8, totalBillableCharacters_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(8, totalBillableCharacters_);
     }
     if (submitTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getSubmitTime());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(9, getSubmitTime());
     }
     if (endTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getEndTime());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(10, getEndTime());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -516,29 +463,38 @@ 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.cloud.translate.v3beta1.BatchTranslateDocumentResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse other =
-        (com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse) obj;
-
-    if (getTotalPages() != other.getTotalPages()) return false;
-    if (getTranslatedPages() != other.getTranslatedPages()) return false;
-    if (getFailedPages() != other.getFailedPages()) return false;
-    if (getTotalBillablePages() != other.getTotalBillablePages()) return false;
-    if (getTotalCharacters() != other.getTotalCharacters()) return false;
-    if (getTranslatedCharacters() != other.getTranslatedCharacters()) return false;
-    if (getFailedCharacters() != other.getFailedCharacters()) return false;
-    if (getTotalBillableCharacters() != other.getTotalBillableCharacters()) return false;
+    com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse other = (com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse) obj;
+
+    if (getTotalPages()
+        != other.getTotalPages()) return false;
+    if (getTranslatedPages()
+        != other.getTranslatedPages()) return false;
+    if (getFailedPages()
+        != other.getFailedPages()) return false;
+    if (getTotalBillablePages()
+        != other.getTotalBillablePages()) return false;
+    if (getTotalCharacters()
+        != other.getTotalCharacters()) return false;
+    if (getTranslatedCharacters()
+        != other.getTranslatedCharacters()) return false;
+    if (getFailedCharacters()
+        != other.getFailedCharacters()) return false;
+    if (getTotalBillableCharacters()
+        != other.getTotalBillableCharacters()) return false;
     if (hasSubmitTime() != other.hasSubmitTime()) return false;
     if (hasSubmitTime()) {
-      if (!getSubmitTime().equals(other.getSubmitTime())) return false;
+      if (!getSubmitTime()
+          .equals(other.getSubmitTime())) return false;
     }
     if (hasEndTime() != other.hasEndTime()) return false;
     if (hasEndTime()) {
-      if (!getEndTime().equals(other.getEndTime())) return false;
+      if (!getEndTime()
+          .equals(other.getEndTime())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -552,21 +508,29 @@ public int hashCode() {
     int hash = 41;
     hash = (19 * hash) + getDescriptor().hashCode();
     hash = (37 * hash) + TOTAL_PAGES_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalPages());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+        getTotalPages());
     hash = (37 * hash) + TRANSLATED_PAGES_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTranslatedPages());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+        getTranslatedPages());
     hash = (37 * hash) + FAILED_PAGES_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getFailedPages());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+        getFailedPages());
     hash = (37 * hash) + TOTAL_BILLABLE_PAGES_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalBillablePages());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+        getTotalBillablePages());
     hash = (37 * hash) + TOTAL_CHARACTERS_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalCharacters());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+        getTotalCharacters());
     hash = (37 * hash) + TRANSLATED_CHARACTERS_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTranslatedCharacters());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+        getTranslatedCharacters());
     hash = (37 * hash) + FAILED_CHARACTERS_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getFailedCharacters());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+        getFailedCharacters());
     hash = (37 * hash) + TOTAL_BILLABLE_CHARACTERS_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalBillableCharacters());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+        getTotalBillableCharacters());
     if (hasSubmitTime()) {
       hash = (37 * hash) + SUBMIT_TIME_FIELD_NUMBER;
       hash = (53 * hash) + getSubmitTime().hashCode();
@@ -581,105 +545,96 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse 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.cloud.translate.v3beta1.BatchTranslateDocumentResponse 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.cloud.translate.v3beta1.BatchTranslateDocumentResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse 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.cloud.translate.v3beta1.BatchTranslateDocumentResponse parseFrom(
-      byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+  public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse parseFrom(byte[] data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse 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.cloud.translate.v3beta1.BatchTranslateDocumentResponse parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse 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.cloud.translate.v3beta1.BatchTranslateDocumentResponse
-      parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
-  public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse
-      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.cloud.translate.v3beta1.BatchTranslateDocumentResponse 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.cloud.translate.v3beta1.BatchTranslateDocumentResponse 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.cloud.translate.v3beta1.BatchTranslateDocumentResponse 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.cloud.translate.v3beta1.BatchTranslateDocumentResponse prototype) {
+  public static Builder newBuilder(com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse 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;
   }
   /**
-   *
-   *
    * 
    * Stored in the
    * [google.longrunning.Operation.response][google.longrunning.Operation.response]
@@ -689,40 +644,38 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.translation.v3beta1.BatchTranslateDocumentResponse}
    */
-  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.translation.v3beta1.BatchTranslateDocumentResponse)
       com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentResponse_fieldAccessorTable
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse.class,
-              com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse.Builder.class);
+              com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse.class, com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse.Builder.class);
     }
 
-    // Construct using
-    // com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse.newBuilder()
+    // Construct using com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse.newBuilder()
     private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -758,14 +711,13 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentResponse_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse
-        getDefaultInstanceForType() {
+    public com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse getDefaultInstanceForType() {
       return com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse.getDefaultInstance();
     }
 
@@ -780,8 +732,7 @@ public com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse build()
 
     @java.lang.Override
     public com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse buildPartial() {
-      com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse result =
-          new com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse(this);
+      com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse result = new com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse(this);
       result.totalPages_ = totalPages_;
       result.translatedPages_ = translatedPages_;
       result.failedPages_ = failedPages_;
@@ -808,50 +759,46 @@ public com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse 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.cloud.translate.v3beta1.BatchTranslateDocumentResponse) {
-        return mergeFrom((com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse) other);
+        return mergeFrom((com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(
-        com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse other) {
-      if (other
-          == com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse.getDefaultInstance())
-        return this;
+    public Builder mergeFrom(com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse other) {
+      if (other == com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse.getDefaultInstance()) return this;
       if (other.getTotalPages() != 0L) {
         setTotalPages(other.getTotalPages());
       }
@@ -901,9 +848,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse)
-                e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -913,17 +858,14 @@ public Builder mergeFrom(
       return this;
     }
 
-    private long totalPages_;
+    private long totalPages_ ;
     /**
-     *
-     *
      * 
      * Total number of pages to translate in all documents. Documents without
      * clear page definition (such as XLSX) are not counted.
      * 
* * int64 total_pages = 1; - * * @return The totalPages. */ @java.lang.Override @@ -931,54 +873,45 @@ public long getTotalPages() { return totalPages_; } /** - * - * *
      * Total number of pages to translate in all documents. Documents without
      * clear page definition (such as XLSX) are not counted.
      * 
* * int64 total_pages = 1; - * * @param value The totalPages to set. * @return This builder for chaining. */ public Builder setTotalPages(long value) { - + totalPages_ = value; onChanged(); return this; } /** - * - * *
      * Total number of pages to translate in all documents. Documents without
      * clear page definition (such as XLSX) are not counted.
      * 
* * int64 total_pages = 1; - * * @return This builder for chaining. */ public Builder clearTotalPages() { - + totalPages_ = 0L; onChanged(); return this; } - private long translatedPages_; + private long translatedPages_ ; /** - * - * *
      * Number of successfully translated pages in all documents. Documents without
      * clear page definition (such as XLSX) are not counted.
      * 
* * int64 translated_pages = 2; - * * @return The translatedPages. */ @java.lang.Override @@ -986,54 +919,45 @@ public long getTranslatedPages() { return translatedPages_; } /** - * - * *
      * Number of successfully translated pages in all documents. Documents without
      * clear page definition (such as XLSX) are not counted.
      * 
* * int64 translated_pages = 2; - * * @param value The translatedPages to set. * @return This builder for chaining. */ public Builder setTranslatedPages(long value) { - + translatedPages_ = value; onChanged(); return this; } /** - * - * *
      * Number of successfully translated pages in all documents. Documents without
      * clear page definition (such as XLSX) are not counted.
      * 
* * int64 translated_pages = 2; - * * @return This builder for chaining. */ public Builder clearTranslatedPages() { - + translatedPages_ = 0L; onChanged(); return this; } - private long failedPages_; + private long failedPages_ ; /** - * - * *
      * Number of pages that failed to process in all documents. Documents without
      * clear page definition (such as XLSX) are not counted.
      * 
* * int64 failed_pages = 3; - * * @return The failedPages. */ @java.lang.Override @@ -1041,54 +965,45 @@ public long getFailedPages() { return failedPages_; } /** - * - * *
      * Number of pages that failed to process in all documents. Documents without
      * clear page definition (such as XLSX) are not counted.
      * 
* * int64 failed_pages = 3; - * * @param value The failedPages to set. * @return This builder for chaining. */ public Builder setFailedPages(long value) { - + failedPages_ = value; onChanged(); return this; } /** - * - * *
      * Number of pages that failed to process in all documents. Documents without
      * clear page definition (such as XLSX) are not counted.
      * 
* * int64 failed_pages = 3; - * * @return This builder for chaining. */ public Builder clearFailedPages() { - + failedPages_ = 0L; onChanged(); return this; } - private long totalBillablePages_; + private long totalBillablePages_ ; /** - * - * *
      * Number of billable pages in documents with clear page definition (such as
      * PDF, DOCX, PPTX)
      * 
* * int64 total_billable_pages = 4; - * * @return The totalBillablePages. */ @java.lang.Override @@ -1096,53 +1011,44 @@ public long getTotalBillablePages() { return totalBillablePages_; } /** - * - * *
      * Number of billable pages in documents with clear page definition (such as
      * PDF, DOCX, PPTX)
      * 
* * int64 total_billable_pages = 4; - * * @param value The totalBillablePages to set. * @return This builder for chaining. */ public Builder setTotalBillablePages(long value) { - + totalBillablePages_ = value; onChanged(); return this; } /** - * - * *
      * Number of billable pages in documents with clear page definition (such as
      * PDF, DOCX, PPTX)
      * 
* * int64 total_billable_pages = 4; - * * @return This builder for chaining. */ public Builder clearTotalBillablePages() { - + totalBillablePages_ = 0L; onChanged(); return this; } - private long totalCharacters_; + private long totalCharacters_ ; /** - * - * *
      * Total number of characters (Unicode codepoints) in all documents.
      * 
* * int64 total_characters = 5; - * * @return The totalCharacters. */ @java.lang.Override @@ -1150,52 +1056,43 @@ public long getTotalCharacters() { return totalCharacters_; } /** - * - * *
      * Total number of characters (Unicode codepoints) in all documents.
      * 
* * int64 total_characters = 5; - * * @param value The totalCharacters to set. * @return This builder for chaining. */ public Builder setTotalCharacters(long value) { - + totalCharacters_ = value; onChanged(); return this; } /** - * - * *
      * Total number of characters (Unicode codepoints) in all documents.
      * 
* * int64 total_characters = 5; - * * @return This builder for chaining. */ public Builder clearTotalCharacters() { - + totalCharacters_ = 0L; onChanged(); return this; } - private long translatedCharacters_; + private long translatedCharacters_ ; /** - * - * *
      * Number of successfully translated characters (Unicode codepoints) in all
      * documents.
      * 
* * int64 translated_characters = 6; - * * @return The translatedCharacters. */ @java.lang.Override @@ -1203,54 +1100,45 @@ public long getTranslatedCharacters() { return translatedCharacters_; } /** - * - * *
      * Number of successfully translated characters (Unicode codepoints) in all
      * documents.
      * 
* * int64 translated_characters = 6; - * * @param value The translatedCharacters to set. * @return This builder for chaining. */ public Builder setTranslatedCharacters(long value) { - + translatedCharacters_ = value; onChanged(); return this; } /** - * - * *
      * Number of successfully translated characters (Unicode codepoints) in all
      * documents.
      * 
* * int64 translated_characters = 6; - * * @return This builder for chaining. */ public Builder clearTranslatedCharacters() { - + translatedCharacters_ = 0L; onChanged(); return this; } - private long failedCharacters_; + private long failedCharacters_ ; /** - * - * *
      * Number of characters that have failed to process (Unicode codepoints) in
      * all documents.
      * 
* * int64 failed_characters = 7; - * * @return The failedCharacters. */ @java.lang.Override @@ -1258,54 +1146,45 @@ public long getFailedCharacters() { return failedCharacters_; } /** - * - * *
      * Number of characters that have failed to process (Unicode codepoints) in
      * all documents.
      * 
* * int64 failed_characters = 7; - * * @param value The failedCharacters to set. * @return This builder for chaining. */ public Builder setFailedCharacters(long value) { - + failedCharacters_ = value; onChanged(); return this; } /** - * - * *
      * Number of characters that have failed to process (Unicode codepoints) in
      * all documents.
      * 
* * int64 failed_characters = 7; - * * @return This builder for chaining. */ public Builder clearFailedCharacters() { - + failedCharacters_ = 0L; onChanged(); return this; } - private long totalBillableCharacters_; + private long totalBillableCharacters_ ; /** - * - * *
      * Number of billable characters (Unicode codepoints) in documents without
      * clear page definition, such as XLSX.
      * 
* * int64 total_billable_characters = 8; - * * @return The totalBillableCharacters. */ @java.lang.Override @@ -1313,38 +1192,32 @@ public long getTotalBillableCharacters() { return totalBillableCharacters_; } /** - * - * *
      * Number of billable characters (Unicode codepoints) in documents without
      * clear page definition, such as XLSX.
      * 
* * int64 total_billable_characters = 8; - * * @param value The totalBillableCharacters to set. * @return This builder for chaining. */ public Builder setTotalBillableCharacters(long value) { - + totalBillableCharacters_ = value; onChanged(); return this; } /** - * - * *
      * Number of billable characters (Unicode codepoints) in documents without
      * clear page definition, such as XLSX.
      * 
* * int64 total_billable_characters = 8; - * * @return This builder for chaining. */ public Builder clearTotalBillableCharacters() { - + totalBillableCharacters_ = 0L; onChanged(); return this; @@ -1352,47 +1225,34 @@ public Builder clearTotalBillableCharacters() { private com.google.protobuf.Timestamp submitTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - submitTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> submitTimeBuilder_; /** - * - * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 9; - * * @return Whether the submitTime field is set. */ public boolean hasSubmitTime() { return submitTimeBuilder_ != null || submitTime_ != null; } /** - * - * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 9; - * * @return The submitTime. */ public com.google.protobuf.Timestamp getSubmitTime() { if (submitTimeBuilder_ == null) { - return submitTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : submitTime_; + return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } else { return submitTimeBuilder_.getMessage(); } } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -1413,15 +1273,14 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 9; */ - public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setSubmitTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (submitTimeBuilder_ == null) { submitTime_ = builderForValue.build(); onChanged(); @@ -1432,8 +1291,6 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -1444,7 +1301,7 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { if (submitTimeBuilder_ == null) { if (submitTime_ != null) { submitTime_ = - com.google.protobuf.Timestamp.newBuilder(submitTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(submitTime_).mergeFrom(value).buildPartial(); } else { submitTime_ = value; } @@ -1456,8 +1313,6 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -1476,8 +1331,6 @@ public Builder clearSubmitTime() { return this; } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -1485,13 +1338,11 @@ public Builder clearSubmitTime() { * .google.protobuf.Timestamp submit_time = 9; */ public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder() { - + onChanged(); return getSubmitTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -1502,14 +1353,11 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { if (submitTimeBuilder_ != null) { return submitTimeBuilder_.getMessageOrBuilder(); } else { - return submitTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : submitTime_; + return submitTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -1517,17 +1365,14 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { * .google.protobuf.Timestamp submit_time = 9; */ 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> getSubmitTimeFieldBuilder() { if (submitTimeBuilder_ == null) { - submitTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getSubmitTime(), getParentForChildren(), isClean()); + submitTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getSubmitTime(), + getParentForChildren(), + isClean()); submitTime_ = null; } return submitTimeBuilder_; @@ -1535,13 +1380,8 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - endTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; /** - * - * *
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1549,15 +1389,12 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() {
      * 
* * .google.protobuf.Timestamp end_time = 10; - * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; } /** - * - * *
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1565,7 +1402,6 @@ public boolean hasEndTime() {
      * 
* * .google.protobuf.Timestamp end_time = 10; - * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1576,8 +1412,6 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** - * - * *
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1600,8 +1434,6 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1610,7 +1442,8 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp end_time = 10;
      */
-    public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setEndTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (endTimeBuilder_ == null) {
         endTime_ = builderForValue.build();
         onChanged();
@@ -1621,8 +1454,6 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue)
       return this;
     }
     /**
-     *
-     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1635,7 +1466,7 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       if (endTimeBuilder_ == null) {
         if (endTime_ != null) {
           endTime_ =
-              com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial();
+            com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial();
         } else {
           endTime_ = value;
         }
@@ -1647,8 +1478,6 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1669,8 +1498,6 @@ public Builder clearEndTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1680,13 +1507,11 @@ public Builder clearEndTime() {
      * .google.protobuf.Timestamp end_time = 10;
      */
     public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() {
-
+      
       onChanged();
       return getEndTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1699,12 +1524,11 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
       if (endTimeBuilder_ != null) {
         return endTimeBuilder_.getMessageOrBuilder();
       } else {
-        return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
+        return endTime_ == null ?
+            com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
       }
     }
     /**
-     *
-     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1714,24 +1538,21 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
      * .google.protobuf.Timestamp end_time = 10;
      */
     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> 
         getEndTimeFieldBuilder() {
       if (endTimeBuilder_ == null) {
-        endTimeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Timestamp,
-                com.google.protobuf.Timestamp.Builder,
-                com.google.protobuf.TimestampOrBuilder>(
-                getEndTime(), getParentForChildren(), isClean());
+        endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                getEndTime(),
+                getParentForChildren(),
+                isClean());
         endTime_ = null;
       }
       return endTimeBuilder_;
     }
-
     @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);
     }
 
@@ -1741,32 +1562,30 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.BatchTranslateDocumentResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.BatchTranslateDocumentResponse)
-  private static final com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse
-      DEFAULT_INSTANCE;
-
+  private static final com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse DEFAULT_INSTANCE;
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse();
   }
 
-  public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse
-      getDefaultInstance() {
+  public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public BatchTranslateDocumentResponse parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new BatchTranslateDocumentResponse(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public BatchTranslateDocumentResponse parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new BatchTranslateDocumentResponse(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1778,8 +1597,9 @@ public com.google.protobuf.Parser getParserForTy
   }
 
   @java.lang.Override
-  public com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse
-      getDefaultInstanceForType() {
+  public com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentResponseOrBuilder.java b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentResponseOrBuilder.java
similarity index 82%
rename from proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentResponseOrBuilder.java
rename to owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentResponseOrBuilder.java
index 413d4af7..48ae3544 100644
--- a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentResponseOrBuilder.java
+++ b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentResponseOrBuilder.java
@@ -1,166 +1,118 @@
-/*
- * Copyright 2020 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/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
-public interface BatchTranslateDocumentResponseOrBuilder
-    extends
+public interface BatchTranslateDocumentResponseOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.BatchTranslateDocumentResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Total number of pages to translate in all documents. Documents without
    * clear page definition (such as XLSX) are not counted.
    * 
* * int64 total_pages = 1; - * * @return The totalPages. */ long getTotalPages(); /** - * - * *
    * Number of successfully translated pages in all documents. Documents without
    * clear page definition (such as XLSX) are not counted.
    * 
* * int64 translated_pages = 2; - * * @return The translatedPages. */ long getTranslatedPages(); /** - * - * *
    * Number of pages that failed to process in all documents. Documents without
    * clear page definition (such as XLSX) are not counted.
    * 
* * int64 failed_pages = 3; - * * @return The failedPages. */ long getFailedPages(); /** - * - * *
    * Number of billable pages in documents with clear page definition (such as
    * PDF, DOCX, PPTX)
    * 
* * int64 total_billable_pages = 4; - * * @return The totalBillablePages. */ long getTotalBillablePages(); /** - * - * *
    * Total number of characters (Unicode codepoints) in all documents.
    * 
* * int64 total_characters = 5; - * * @return The totalCharacters. */ long getTotalCharacters(); /** - * - * *
    * Number of successfully translated characters (Unicode codepoints) in all
    * documents.
    * 
* * int64 translated_characters = 6; - * * @return The translatedCharacters. */ long getTranslatedCharacters(); /** - * - * *
    * Number of characters that have failed to process (Unicode codepoints) in
    * all documents.
    * 
* * int64 failed_characters = 7; - * * @return The failedCharacters. */ long getFailedCharacters(); /** - * - * *
    * Number of billable characters (Unicode codepoints) in documents without
    * clear page definition, such as XLSX.
    * 
* * int64 total_billable_characters = 8; - * * @return The totalBillableCharacters. */ long getTotalBillableCharacters(); /** - * - * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 9; - * * @return Whether the submitTime field is set. */ boolean hasSubmitTime(); /** - * - * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 9; - * * @return The submitTime. */ com.google.protobuf.Timestamp getSubmitTime(); /** - * - * *
    * Time when the operation was submitted.
    * 
@@ -170,8 +122,6 @@ public interface BatchTranslateDocumentResponseOrBuilder com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder(); /** - * - * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -179,13 +129,10 @@ public interface BatchTranslateDocumentResponseOrBuilder
    * 
* * .google.protobuf.Timestamp end_time = 10; - * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** - * - * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -193,13 +140,10 @@ public interface BatchTranslateDocumentResponseOrBuilder
    * 
* * .google.protobuf.Timestamp end_time = 10; - * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** - * - * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
diff --git a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateMetadata.java b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateMetadata.java
similarity index 72%
rename from proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateMetadata.java
rename to owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateMetadata.java
index fa2f5640..fb42d2bf 100644
--- a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateMetadata.java
+++ b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateMetadata.java
@@ -1,57 +1,40 @@
-/*
- * Copyright 2020 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/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
 /**
- *
- *
  * 
  * State metadata for the batch translation operation.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.BatchTranslateMetadata} */ -public final class BatchTranslateMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BatchTranslateMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.BatchTranslateMetadata) BatchTranslateMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BatchTranslateMetadata.newBuilder() to construct. private BatchTranslateMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BatchTranslateMetadata() { state_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BatchTranslateMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private BatchTranslateMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,90 +53,82 @@ private BatchTranslateMetadata( case 0: done = true; break; - case 8: - { - int rawValue = input.readEnum(); + case 8: { + int rawValue = input.readEnum(); - state_ = rawValue; - break; - } - case 16: - { - translatedCharacters_ = input.readInt64(); - break; - } - case 24: - { - failedCharacters_ = input.readInt64(); - break; - } - case 32: - { - totalCharacters_ = input.readInt64(); - break; + state_ = rawValue; + break; + } + case 16: { + + translatedCharacters_ = input.readInt64(); + break; + } + case 24: { + + failedCharacters_ = input.readInt64(); + break; + } + case 32: { + + totalCharacters_ = input.readInt64(); + break; + } + case 42: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (submitTime_ != null) { + subBuilder = submitTime_.toBuilder(); } - case 42: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (submitTime_ != null) { - subBuilder = submitTime_.toBuilder(); - } - submitTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(submitTime_); - submitTime_ = subBuilder.buildPartial(); - } - - break; + submitTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(submitTime_); + submitTime_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_BatchTranslateMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_BatchTranslateMetadata_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.BatchTranslateMetadata.class, - com.google.cloud.translate.v3beta1.BatchTranslateMetadata.Builder.class); + com.google.cloud.translate.v3beta1.BatchTranslateMetadata.class, com.google.cloud.translate.v3beta1.BatchTranslateMetadata.Builder.class); } /** - * - * *
    * State of the job.
    * 
* * Protobuf enum {@code google.cloud.translation.v3beta1.BatchTranslateMetadata.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Invalid.
      * 
@@ -162,8 +137,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * Request is being processed.
      * 
@@ -172,8 +145,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ RUNNING(1), /** - * - * *
      * The batch is processed, and at least one item was successfully
      * processed.
@@ -183,8 +154,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     SUCCEEDED(2),
     /**
-     *
-     *
      * 
      * The batch is done and no item was successfully processed.
      * 
@@ -193,8 +162,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ FAILED(3), /** - * - * *
      * Request is in the process of being canceled after caller invoked
      * longrunning.Operations.CancelOperation on the request id.
@@ -204,8 +171,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     CANCELLING(4),
     /**
-     *
-     *
      * 
      * The batch is done after the user has called the
      * longrunning.Operations.CancelOperation. Any records processed before the
@@ -219,8 +184,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * Invalid.
      * 
@@ -229,8 +192,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Request is being processed.
      * 
@@ -239,8 +200,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RUNNING_VALUE = 1; /** - * - * *
      * The batch is processed, and at least one item was successfully
      * processed.
@@ -250,8 +209,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int SUCCEEDED_VALUE = 2;
     /**
-     *
-     *
      * 
      * The batch is done and no item was successfully processed.
      * 
@@ -260,8 +217,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FAILED_VALUE = 3; /** - * - * *
      * Request is in the process of being canceled after caller invoked
      * longrunning.Operations.CancelOperation on the request id.
@@ -271,8 +226,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int CANCELLING_VALUE = 4;
     /**
-     *
-     *
      * 
      * The batch is done after the user has called the
      * longrunning.Operations.CancelOperation. Any records processed before the
@@ -283,6 +236,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int CANCELLED_VALUE = 5;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -307,57 +261,52 @@ public static State valueOf(int value) {
      */
     public static State forNumber(int value) {
       switch (value) {
-        case 0:
-          return STATE_UNSPECIFIED;
-        case 1:
-          return RUNNING;
-        case 2:
-          return SUCCEEDED;
-        case 3:
-          return FAILED;
-        case 4:
-          return CANCELLING;
-        case 5:
-          return CANCELLED;
-        default:
-          return null;
+        case 0: return STATE_UNSPECIFIED;
+        case 1: return RUNNING;
+        case 2: return SUCCEEDED;
+        case 3: return FAILED;
+        case 4: return CANCELLING;
+        case 5: return CANCELLED;
+        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<
+        State> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public State findValueByNumber(int number) {
+              return State.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public State findValueByNumber(int number) {
-            return State.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.cloud.translate.v3beta1.BatchTranslateMetadata.getDescriptor()
-          .getEnumTypes()
-          .get(0);
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
+      return com.google.cloud.translate.v3beta1.BatchTranslateMetadata.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final State[] VALUES = values();
 
-    public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static State 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;
@@ -377,52 +326,38 @@ private State(int value) {
   public static final int STATE_FIELD_NUMBER = 1;
   private int state_;
   /**
-   *
-   *
    * 
    * The state of the operation.
    * 
* * .google.cloud.translation.v3beta1.BatchTranslateMetadata.State state = 1; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * The state of the operation.
    * 
* * .google.cloud.translation.v3beta1.BatchTranslateMetadata.State state = 1; - * * @return The state. */ - @java.lang.Override - public com.google.cloud.translate.v3beta1.BatchTranslateMetadata.State getState() { + @java.lang.Override public com.google.cloud.translate.v3beta1.BatchTranslateMetadata.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.translate.v3beta1.BatchTranslateMetadata.State result = - com.google.cloud.translate.v3beta1.BatchTranslateMetadata.State.valueOf(state_); - return result == null - ? com.google.cloud.translate.v3beta1.BatchTranslateMetadata.State.UNRECOGNIZED - : result; + com.google.cloud.translate.v3beta1.BatchTranslateMetadata.State result = com.google.cloud.translate.v3beta1.BatchTranslateMetadata.State.valueOf(state_); + return result == null ? com.google.cloud.translate.v3beta1.BatchTranslateMetadata.State.UNRECOGNIZED : result; } public static final int TRANSLATED_CHARACTERS_FIELD_NUMBER = 2; private long translatedCharacters_; /** - * - * *
    * Number of successfully translated characters so far (Unicode codepoints).
    * 
* * int64 translated_characters = 2; - * * @return The translatedCharacters. */ @java.lang.Override @@ -433,15 +368,12 @@ public long getTranslatedCharacters() { public static final int FAILED_CHARACTERS_FIELD_NUMBER = 3; private long failedCharacters_; /** - * - * *
    * Number of characters that have failed to process so far (Unicode
    * codepoints).
    * 
* * int64 failed_characters = 3; - * * @return The failedCharacters. */ @java.lang.Override @@ -452,8 +384,6 @@ public long getFailedCharacters() { public static final int TOTAL_CHARACTERS_FIELD_NUMBER = 4; private long totalCharacters_; /** - * - * *
    * Total number of characters (Unicode codepoints).
    * This is the total number of codepoints from input files times the number of
@@ -461,7 +391,6 @@ public long getFailedCharacters() {
    * 
* * int64 total_characters = 4; - * * @return The totalCharacters. */ @java.lang.Override @@ -472,14 +401,11 @@ public long getTotalCharacters() { public static final int SUBMIT_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp submitTime_; /** - * - * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 5; - * * @return Whether the submitTime field is set. */ @java.lang.Override @@ -487,14 +413,11 @@ public boolean hasSubmitTime() { return submitTime_ != null; } /** - * - * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 5; - * * @return The submitTime. */ @java.lang.Override @@ -502,8 +425,6 @@ public com.google.protobuf.Timestamp getSubmitTime() { return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } /** - * - * *
    * Time when the operation was submitted.
    * 
@@ -516,7 +437,6 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -528,10 +448,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (state_ - != com.google.cloud.translate.v3beta1.BatchTranslateMetadata.State.STATE_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (state_ != com.google.cloud.translate.v3beta1.BatchTranslateMetadata.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(1, state_); } if (translatedCharacters_ != 0L) { @@ -555,22 +474,25 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (state_ - != com.google.cloud.translate.v3beta1.BatchTranslateMetadata.State.STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_); + if (state_ != com.google.cloud.translate.v3beta1.BatchTranslateMetadata.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, state_); } if (translatedCharacters_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, translatedCharacters_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, translatedCharacters_); } if (failedCharacters_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, failedCharacters_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, failedCharacters_); } if (totalCharacters_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, totalCharacters_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(4, totalCharacters_); } if (submitTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getSubmitTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getSubmitTime()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -580,21 +502,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.cloud.translate.v3beta1.BatchTranslateMetadata)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.BatchTranslateMetadata other = - (com.google.cloud.translate.v3beta1.BatchTranslateMetadata) obj; + com.google.cloud.translate.v3beta1.BatchTranslateMetadata other = (com.google.cloud.translate.v3beta1.BatchTranslateMetadata) obj; if (state_ != other.state_) return false; - if (getTranslatedCharacters() != other.getTranslatedCharacters()) return false; - if (getFailedCharacters() != other.getFailedCharacters()) return false; - if (getTotalCharacters() != other.getTotalCharacters()) return false; + if (getTranslatedCharacters() + != other.getTranslatedCharacters()) return false; + if (getFailedCharacters() + != other.getFailedCharacters()) return false; + if (getTotalCharacters() + != other.getTotalCharacters()) return false; if (hasSubmitTime() != other.hasSubmitTime()) return false; if (hasSubmitTime()) { - if (!getSubmitTime().equals(other.getSubmitTime())) return false; + if (!getSubmitTime() + .equals(other.getSubmitTime())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -610,11 +535,14 @@ public int hashCode() { hash = (37 * hash) + STATE_FIELD_NUMBER; hash = (53 * hash) + state_; hash = (37 * hash) + TRANSLATED_CHARACTERS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTranslatedCharacters()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTranslatedCharacters()); hash = (37 * hash) + FAILED_CHARACTERS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getFailedCharacters()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getFailedCharacters()); hash = (37 * hash) + TOTAL_CHARACTERS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalCharacters()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTotalCharacters()); if (hasSubmitTime()) { hash = (37 * hash) + SUBMIT_TIME_FIELD_NUMBER; hash = (53 * hash) + getSubmitTime().hashCode(); @@ -625,127 +553,117 @@ public int hashCode() { } public static com.google.cloud.translate.v3beta1.BatchTranslateMetadata 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.cloud.translate.v3beta1.BatchTranslateMetadata 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.cloud.translate.v3beta1.BatchTranslateMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.BatchTranslateMetadata 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.cloud.translate.v3beta1.BatchTranslateMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.BatchTranslateMetadata 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.cloud.translate.v3beta1.BatchTranslateMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.BatchTranslateMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.BatchTranslateMetadata 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.cloud.translate.v3beta1.BatchTranslateMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.BatchTranslateMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.BatchTranslateMetadata 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.cloud.translate.v3beta1.BatchTranslateMetadata 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.cloud.translate.v3beta1.BatchTranslateMetadata 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.cloud.translate.v3beta1.BatchTranslateMetadata prototype) { + public static Builder newBuilder(com.google.cloud.translate.v3beta1.BatchTranslateMetadata 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; } /** - * - * *
    * State metadata for the batch translation operation.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.BatchTranslateMetadata} */ - 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.translation.v3beta1.BatchTranslateMetadata) com.google.cloud.translate.v3beta1.BatchTranslateMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_BatchTranslateMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_BatchTranslateMetadata_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.BatchTranslateMetadata.class, - com.google.cloud.translate.v3beta1.BatchTranslateMetadata.Builder.class); + com.google.cloud.translate.v3beta1.BatchTranslateMetadata.class, com.google.cloud.translate.v3beta1.BatchTranslateMetadata.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.BatchTranslateMetadata.newBuilder() @@ -753,15 +671,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -783,9 +702,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_BatchTranslateMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateMetadata_descriptor; } @java.lang.Override @@ -804,8 +723,7 @@ public com.google.cloud.translate.v3beta1.BatchTranslateMetadata build() { @java.lang.Override public com.google.cloud.translate.v3beta1.BatchTranslateMetadata buildPartial() { - com.google.cloud.translate.v3beta1.BatchTranslateMetadata result = - new com.google.cloud.translate.v3beta1.BatchTranslateMetadata(this); + com.google.cloud.translate.v3beta1.BatchTranslateMetadata result = new com.google.cloud.translate.v3beta1.BatchTranslateMetadata(this); result.state_ = state_; result.translatedCharacters_ = translatedCharacters_; result.failedCharacters_ = failedCharacters_; @@ -823,39 +741,38 @@ public com.google.cloud.translate.v3beta1.BatchTranslateMetadata 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.cloud.translate.v3beta1.BatchTranslateMetadata) { - return mergeFrom((com.google.cloud.translate.v3beta1.BatchTranslateMetadata) other); + return mergeFrom((com.google.cloud.translate.v3beta1.BatchTranslateMetadata)other); } else { super.mergeFrom(other); return this; @@ -863,8 +780,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.BatchTranslateMetadata other) { - if (other == com.google.cloud.translate.v3beta1.BatchTranslateMetadata.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3beta1.BatchTranslateMetadata.getDefaultInstance()) return this; if (other.state_ != 0) { setStateValue(other.getStateValue()); } @@ -899,8 +815,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.translate.v3beta1.BatchTranslateMetadata) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.translate.v3beta1.BatchTranslateMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -912,67 +827,51 @@ public Builder mergeFrom( private int state_ = 0; /** - * - * *
      * The state of the operation.
      * 
* * .google.cloud.translation.v3beta1.BatchTranslateMetadata.State state = 1; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * The state of the operation.
      * 
* * .google.cloud.translation.v3beta1.BatchTranslateMetadata.State state = 1; - * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** - * - * *
      * The state of the operation.
      * 
* * .google.cloud.translation.v3beta1.BatchTranslateMetadata.State state = 1; - * * @return The state. */ @java.lang.Override public com.google.cloud.translate.v3beta1.BatchTranslateMetadata.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.translate.v3beta1.BatchTranslateMetadata.State result = - com.google.cloud.translate.v3beta1.BatchTranslateMetadata.State.valueOf(state_); - return result == null - ? com.google.cloud.translate.v3beta1.BatchTranslateMetadata.State.UNRECOGNIZED - : result; + com.google.cloud.translate.v3beta1.BatchTranslateMetadata.State result = com.google.cloud.translate.v3beta1.BatchTranslateMetadata.State.valueOf(state_); + return result == null ? com.google.cloud.translate.v3beta1.BatchTranslateMetadata.State.UNRECOGNIZED : result; } /** - * - * *
      * The state of the operation.
      * 
* * .google.cloud.translation.v3beta1.BatchTranslateMetadata.State state = 1; - * * @param value The state to set. * @return This builder for chaining. */ @@ -980,39 +879,33 @@ public Builder setState(com.google.cloud.translate.v3beta1.BatchTranslateMetadat if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The state of the operation.
      * 
* * .google.cloud.translation.v3beta1.BatchTranslateMetadata.State state = 1; - * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; } - private long translatedCharacters_; + private long translatedCharacters_ ; /** - * - * *
      * Number of successfully translated characters so far (Unicode codepoints).
      * 
* * int64 translated_characters = 2; - * * @return The translatedCharacters. */ @java.lang.Override @@ -1020,52 +913,43 @@ public long getTranslatedCharacters() { return translatedCharacters_; } /** - * - * *
      * Number of successfully translated characters so far (Unicode codepoints).
      * 
* * int64 translated_characters = 2; - * * @param value The translatedCharacters to set. * @return This builder for chaining. */ public Builder setTranslatedCharacters(long value) { - + translatedCharacters_ = value; onChanged(); return this; } /** - * - * *
      * Number of successfully translated characters so far (Unicode codepoints).
      * 
* * int64 translated_characters = 2; - * * @return This builder for chaining. */ public Builder clearTranslatedCharacters() { - + translatedCharacters_ = 0L; onChanged(); return this; } - private long failedCharacters_; + private long failedCharacters_ ; /** - * - * *
      * Number of characters that have failed to process so far (Unicode
      * codepoints).
      * 
* * int64 failed_characters = 3; - * * @return The failedCharacters. */ @java.lang.Override @@ -1073,47 +957,39 @@ public long getFailedCharacters() { return failedCharacters_; } /** - * - * *
      * Number of characters that have failed to process so far (Unicode
      * codepoints).
      * 
* * int64 failed_characters = 3; - * * @param value The failedCharacters to set. * @return This builder for chaining. */ public Builder setFailedCharacters(long value) { - + failedCharacters_ = value; onChanged(); return this; } /** - * - * *
      * Number of characters that have failed to process so far (Unicode
      * codepoints).
      * 
* * int64 failed_characters = 3; - * * @return This builder for chaining. */ public Builder clearFailedCharacters() { - + failedCharacters_ = 0L; onChanged(); return this; } - private long totalCharacters_; + private long totalCharacters_ ; /** - * - * *
      * Total number of characters (Unicode codepoints).
      * This is the total number of codepoints from input files times the number of
@@ -1121,7 +997,6 @@ public Builder clearFailedCharacters() {
      * 
* * int64 total_characters = 4; - * * @return The totalCharacters. */ @java.lang.Override @@ -1129,8 +1004,6 @@ public long getTotalCharacters() { return totalCharacters_; } /** - * - * *
      * Total number of characters (Unicode codepoints).
      * This is the total number of codepoints from input files times the number of
@@ -1138,19 +1011,16 @@ public long getTotalCharacters() {
      * 
* * int64 total_characters = 4; - * * @param value The totalCharacters to set. * @return This builder for chaining. */ public Builder setTotalCharacters(long value) { - + totalCharacters_ = value; onChanged(); return this; } /** - * - * *
      * Total number of characters (Unicode codepoints).
      * This is the total number of codepoints from input files times the number of
@@ -1158,11 +1028,10 @@ public Builder setTotalCharacters(long value) {
      * 
* * int64 total_characters = 4; - * * @return This builder for chaining. */ public Builder clearTotalCharacters() { - + totalCharacters_ = 0L; onChanged(); return this; @@ -1170,47 +1039,34 @@ public Builder clearTotalCharacters() { private com.google.protobuf.Timestamp submitTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - submitTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> submitTimeBuilder_; /** - * - * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 5; - * * @return Whether the submitTime field is set. */ public boolean hasSubmitTime() { return submitTimeBuilder_ != null || submitTime_ != null; } /** - * - * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 5; - * * @return The submitTime. */ public com.google.protobuf.Timestamp getSubmitTime() { if (submitTimeBuilder_ == null) { - return submitTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : submitTime_; + return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } else { return submitTimeBuilder_.getMessage(); } } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -1231,15 +1087,14 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 5; */ - public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setSubmitTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (submitTimeBuilder_ == null) { submitTime_ = builderForValue.build(); onChanged(); @@ -1250,8 +1105,6 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -1262,7 +1115,7 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { if (submitTimeBuilder_ == null) { if (submitTime_ != null) { submitTime_ = - com.google.protobuf.Timestamp.newBuilder(submitTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(submitTime_).mergeFrom(value).buildPartial(); } else { submitTime_ = value; } @@ -1274,8 +1127,6 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -1294,8 +1145,6 @@ public Builder clearSubmitTime() { return this; } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -1303,13 +1152,11 @@ public Builder clearSubmitTime() { * .google.protobuf.Timestamp submit_time = 5; */ public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder() { - + onChanged(); return getSubmitTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -1320,14 +1167,11 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { if (submitTimeBuilder_ != null) { return submitTimeBuilder_.getMessageOrBuilder(); } else { - return submitTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : submitTime_; + return submitTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -1335,24 +1179,21 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { * .google.protobuf.Timestamp submit_time = 5; */ 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> getSubmitTimeFieldBuilder() { if (submitTimeBuilder_ == null) { - submitTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getSubmitTime(), getParentForChildren(), isClean()); + submitTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getSubmitTime(), + getParentForChildren(), + isClean()); submitTime_ = null; } return submitTimeBuilder_; } - @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); } @@ -1362,12 +1203,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.BatchTranslateMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.BatchTranslateMetadata) private static final com.google.cloud.translate.v3beta1.BatchTranslateMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.BatchTranslateMetadata(); } @@ -1376,16 +1217,16 @@ public static com.google.cloud.translate.v3beta1.BatchTranslateMetadata getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchTranslateMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BatchTranslateMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchTranslateMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BatchTranslateMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1400,4 +1241,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3beta1.BatchTranslateMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateMetadataOrBuilder.java b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateMetadataOrBuilder.java similarity index 75% rename from proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateMetadataOrBuilder.java rename to owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateMetadataOrBuilder.java index 33c429bb..24288b89 100644 --- a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateMetadataOrBuilder.java +++ b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateMetadataOrBuilder.java @@ -1,83 +1,53 @@ -/* - * Copyright 2020 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/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; -public interface BatchTranslateMetadataOrBuilder - extends +public interface BatchTranslateMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.BatchTranslateMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The state of the operation.
    * 
* * .google.cloud.translation.v3beta1.BatchTranslateMetadata.State state = 1; - * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * The state of the operation.
    * 
* * .google.cloud.translation.v3beta1.BatchTranslateMetadata.State state = 1; - * * @return The state. */ com.google.cloud.translate.v3beta1.BatchTranslateMetadata.State getState(); /** - * - * *
    * Number of successfully translated characters so far (Unicode codepoints).
    * 
* * int64 translated_characters = 2; - * * @return The translatedCharacters. */ long getTranslatedCharacters(); /** - * - * *
    * Number of characters that have failed to process so far (Unicode
    * codepoints).
    * 
* * int64 failed_characters = 3; - * * @return The failedCharacters. */ long getFailedCharacters(); /** - * - * *
    * Total number of characters (Unicode codepoints).
    * This is the total number of codepoints from input files times the number of
@@ -85,38 +55,29 @@ public interface BatchTranslateMetadataOrBuilder
    * 
* * int64 total_characters = 4; - * * @return The totalCharacters. */ long getTotalCharacters(); /** - * - * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 5; - * * @return Whether the submitTime field is set. */ boolean hasSubmitTime(); /** - * - * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 5; - * * @return The submitTime. */ com.google.protobuf.Timestamp getSubmitTime(); /** - * - * *
    * Time when the operation was submitted.
    * 
diff --git a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateResponse.java b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateResponse.java similarity index 73% rename from proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateResponse.java rename to owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateResponse.java index 7de25916..66e50fb4 100644 --- a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateResponse.java +++ b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateResponse.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 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/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; /** - * - * *
  * Stored in the
  * [google.longrunning.Operation.response][google.longrunning.Operation.response]
@@ -30,29 +13,30 @@
  *
  * Protobuf type {@code google.cloud.translation.v3beta1.BatchTranslateResponse}
  */
-public final class BatchTranslateResponse extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class BatchTranslateResponse extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.BatchTranslateResponse)
     BatchTranslateResponseOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use BatchTranslateResponse.newBuilder() to construct.
   private BatchTranslateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private BatchTranslateResponse() {}
+  private BatchTranslateResponse() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new BatchTranslateResponse();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private BatchTranslateResponse(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -71,96 +55,87 @@ private BatchTranslateResponse(
           case 0:
             done = true;
             break;
-          case 8:
-            {
-              totalCharacters_ = input.readInt64();
-              break;
-            }
-          case 16:
-            {
-              translatedCharacters_ = input.readInt64();
-              break;
+          case 8: {
+
+            totalCharacters_ = input.readInt64();
+            break;
+          }
+          case 16: {
+
+            translatedCharacters_ = input.readInt64();
+            break;
+          }
+          case 24: {
+
+            failedCharacters_ = input.readInt64();
+            break;
+          }
+          case 34: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (submitTime_ != null) {
+              subBuilder = submitTime_.toBuilder();
             }
-          case 24:
-            {
-              failedCharacters_ = input.readInt64();
-              break;
+            submitTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(submitTime_);
+              submitTime_ = subBuilder.buildPartial();
             }
-          case 34:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (submitTime_ != null) {
-                subBuilder = submitTime_.toBuilder();
-              }
-              submitTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(submitTime_);
-                submitTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+
+            break;
+          }
+          case 42: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (endTime_ != null) {
+              subBuilder = endTime_.toBuilder();
             }
-          case 42:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (endTime_ != null) {
-                subBuilder = endTime_.toBuilder();
-              }
-              endTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(endTime_);
-                endTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+            endTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(endTime_);
+              endTime_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.translate.v3beta1.TranslationServiceProto
-        .internal_static_google_cloud_translation_v3beta1_BatchTranslateResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.translate.v3beta1.TranslationServiceProto
-        .internal_static_google_cloud_translation_v3beta1_BatchTranslateResponse_fieldAccessorTable
+    return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.translate.v3beta1.BatchTranslateResponse.class,
-            com.google.cloud.translate.v3beta1.BatchTranslateResponse.Builder.class);
+            com.google.cloud.translate.v3beta1.BatchTranslateResponse.class, com.google.cloud.translate.v3beta1.BatchTranslateResponse.Builder.class);
   }
 
   public static final int TOTAL_CHARACTERS_FIELD_NUMBER = 1;
   private long totalCharacters_;
   /**
-   *
-   *
    * 
    * Total number of characters (Unicode codepoints).
    * 
* * int64 total_characters = 1; - * * @return The totalCharacters. */ @java.lang.Override @@ -171,14 +146,11 @@ public long getTotalCharacters() { public static final int TRANSLATED_CHARACTERS_FIELD_NUMBER = 2; private long translatedCharacters_; /** - * - * *
    * Number of successfully translated characters (Unicode codepoints).
    * 
* * int64 translated_characters = 2; - * * @return The translatedCharacters. */ @java.lang.Override @@ -189,14 +161,11 @@ public long getTranslatedCharacters() { public static final int FAILED_CHARACTERS_FIELD_NUMBER = 3; private long failedCharacters_; /** - * - * *
    * Number of characters that have failed to process (Unicode codepoints).
    * 
* * int64 failed_characters = 3; - * * @return The failedCharacters. */ @java.lang.Override @@ -207,14 +176,11 @@ public long getFailedCharacters() { public static final int SUBMIT_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp submitTime_; /** - * - * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 4; - * * @return Whether the submitTime field is set. */ @java.lang.Override @@ -222,14 +188,11 @@ public boolean hasSubmitTime() { return submitTime_ != null; } /** - * - * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 4; - * * @return The submitTime. */ @java.lang.Override @@ -237,8 +200,6 @@ public com.google.protobuf.Timestamp getSubmitTime() { return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } /** - * - * *
    * Time when the operation was submitted.
    * 
@@ -253,8 +214,6 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp endTime_; /** - * - * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -262,7 +221,6 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() {
    * 
* * .google.protobuf.Timestamp end_time = 5; - * * @return Whether the endTime field is set. */ @java.lang.Override @@ -270,8 +228,6 @@ public boolean hasEndTime() { return endTime_ != null; } /** - * - * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -279,7 +235,6 @@ public boolean hasEndTime() {
    * 
* * .google.protobuf.Timestamp end_time = 5; - * * @return The endTime. */ @java.lang.Override @@ -287,8 +242,6 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** - * - * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -303,7 +256,6 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -315,7 +267,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 (totalCharacters_ != 0L) {
       output.writeInt64(1, totalCharacters_);
     }
@@ -341,19 +294,24 @@ public int getSerializedSize() {
 
     size = 0;
     if (totalCharacters_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, totalCharacters_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(1, totalCharacters_);
     }
     if (translatedCharacters_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, translatedCharacters_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(2, translatedCharacters_);
     }
     if (failedCharacters_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, failedCharacters_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(3, failedCharacters_);
     }
     if (submitTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getSubmitTime());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(4, getSubmitTime());
     }
     if (endTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getEndTime());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(5, getEndTime());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -363,24 +321,28 @@ 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.cloud.translate.v3beta1.BatchTranslateResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3beta1.BatchTranslateResponse other =
-        (com.google.cloud.translate.v3beta1.BatchTranslateResponse) obj;
+    com.google.cloud.translate.v3beta1.BatchTranslateResponse other = (com.google.cloud.translate.v3beta1.BatchTranslateResponse) obj;
 
-    if (getTotalCharacters() != other.getTotalCharacters()) return false;
-    if (getTranslatedCharacters() != other.getTranslatedCharacters()) return false;
-    if (getFailedCharacters() != other.getFailedCharacters()) return false;
+    if (getTotalCharacters()
+        != other.getTotalCharacters()) return false;
+    if (getTranslatedCharacters()
+        != other.getTranslatedCharacters()) return false;
+    if (getFailedCharacters()
+        != other.getFailedCharacters()) return false;
     if (hasSubmitTime() != other.hasSubmitTime()) return false;
     if (hasSubmitTime()) {
-      if (!getSubmitTime().equals(other.getSubmitTime())) return false;
+      if (!getSubmitTime()
+          .equals(other.getSubmitTime())) return false;
     }
     if (hasEndTime() != other.hasEndTime()) return false;
     if (hasEndTime()) {
-      if (!getEndTime().equals(other.getEndTime())) return false;
+      if (!getEndTime()
+          .equals(other.getEndTime())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -394,11 +356,14 @@ public int hashCode() {
     int hash = 41;
     hash = (19 * hash) + getDescriptor().hashCode();
     hash = (37 * hash) + TOTAL_CHARACTERS_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalCharacters());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+        getTotalCharacters());
     hash = (37 * hash) + TRANSLATED_CHARACTERS_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTranslatedCharacters());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+        getTranslatedCharacters());
     hash = (37 * hash) + FAILED_CHARACTERS_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getFailedCharacters());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+        getFailedCharacters());
     if (hasSubmitTime()) {
       hash = (37 * hash) + SUBMIT_TIME_FIELD_NUMBER;
       hash = (53 * hash) + getSubmitTime().hashCode();
@@ -413,104 +378,96 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3beta1.BatchTranslateResponse 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.cloud.translate.v3beta1.BatchTranslateResponse 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.cloud.translate.v3beta1.BatchTranslateResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3beta1.BatchTranslateResponse 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.cloud.translate.v3beta1.BatchTranslateResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3beta1.BatchTranslateResponse 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.cloud.translate.v3beta1.BatchTranslateResponse parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3beta1.BatchTranslateResponse parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3beta1.BatchTranslateResponse 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.cloud.translate.v3beta1.BatchTranslateResponse parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3beta1.BatchTranslateResponse parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3beta1.BatchTranslateResponse 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.cloud.translate.v3beta1.BatchTranslateResponse 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.cloud.translate.v3beta1.BatchTranslateResponse 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.cloud.translate.v3beta1.BatchTranslateResponse prototype) {
+  public static Builder newBuilder(com.google.cloud.translate.v3beta1.BatchTranslateResponse 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;
   }
   /**
-   *
-   *
    * 
    * Stored in the
    * [google.longrunning.Operation.response][google.longrunning.Operation.response]
@@ -520,23 +477,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.translation.v3beta1.BatchTranslateResponse}
    */
-  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.translation.v3beta1.BatchTranslateResponse)
       com.google.cloud.translate.v3beta1.BatchTranslateResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3beta1_BatchTranslateResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3beta1_BatchTranslateResponse_fieldAccessorTable
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.translate.v3beta1.BatchTranslateResponse.class,
-              com.google.cloud.translate.v3beta1.BatchTranslateResponse.Builder.class);
+              com.google.cloud.translate.v3beta1.BatchTranslateResponse.class, com.google.cloud.translate.v3beta1.BatchTranslateResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.translate.v3beta1.BatchTranslateResponse.newBuilder()
@@ -544,15 +499,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -578,9 +534,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3beta1_BatchTranslateResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateResponse_descriptor;
     }
 
     @java.lang.Override
@@ -599,8 +555,7 @@ public com.google.cloud.translate.v3beta1.BatchTranslateResponse build() {
 
     @java.lang.Override
     public com.google.cloud.translate.v3beta1.BatchTranslateResponse buildPartial() {
-      com.google.cloud.translate.v3beta1.BatchTranslateResponse result =
-          new com.google.cloud.translate.v3beta1.BatchTranslateResponse(this);
+      com.google.cloud.translate.v3beta1.BatchTranslateResponse result = new com.google.cloud.translate.v3beta1.BatchTranslateResponse(this);
       result.totalCharacters_ = totalCharacters_;
       result.translatedCharacters_ = translatedCharacters_;
       result.failedCharacters_ = failedCharacters_;
@@ -622,39 +577,38 @@ public com.google.cloud.translate.v3beta1.BatchTranslateResponse 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.cloud.translate.v3beta1.BatchTranslateResponse) {
-        return mergeFrom((com.google.cloud.translate.v3beta1.BatchTranslateResponse) other);
+        return mergeFrom((com.google.cloud.translate.v3beta1.BatchTranslateResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -662,8 +616,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.translate.v3beta1.BatchTranslateResponse other) {
-      if (other == com.google.cloud.translate.v3beta1.BatchTranslateResponse.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.translate.v3beta1.BatchTranslateResponse.getDefaultInstance()) return this;
       if (other.getTotalCharacters() != 0L) {
         setTotalCharacters(other.getTotalCharacters());
       }
@@ -698,8 +651,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.translate.v3beta1.BatchTranslateResponse) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.translate.v3beta1.BatchTranslateResponse) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -709,16 +661,13 @@ public Builder mergeFrom(
       return this;
     }
 
-    private long totalCharacters_;
+    private long totalCharacters_ ;
     /**
-     *
-     *
      * 
      * Total number of characters (Unicode codepoints).
      * 
* * int64 total_characters = 1; - * * @return The totalCharacters. */ @java.lang.Override @@ -726,51 +675,42 @@ public long getTotalCharacters() { return totalCharacters_; } /** - * - * *
      * Total number of characters (Unicode codepoints).
      * 
* * int64 total_characters = 1; - * * @param value The totalCharacters to set. * @return This builder for chaining. */ public Builder setTotalCharacters(long value) { - + totalCharacters_ = value; onChanged(); return this; } /** - * - * *
      * Total number of characters (Unicode codepoints).
      * 
* * int64 total_characters = 1; - * * @return This builder for chaining. */ public Builder clearTotalCharacters() { - + totalCharacters_ = 0L; onChanged(); return this; } - private long translatedCharacters_; + private long translatedCharacters_ ; /** - * - * *
      * Number of successfully translated characters (Unicode codepoints).
      * 
* * int64 translated_characters = 2; - * * @return The translatedCharacters. */ @java.lang.Override @@ -778,51 +718,42 @@ public long getTranslatedCharacters() { return translatedCharacters_; } /** - * - * *
      * Number of successfully translated characters (Unicode codepoints).
      * 
* * int64 translated_characters = 2; - * * @param value The translatedCharacters to set. * @return This builder for chaining. */ public Builder setTranslatedCharacters(long value) { - + translatedCharacters_ = value; onChanged(); return this; } /** - * - * *
      * Number of successfully translated characters (Unicode codepoints).
      * 
* * int64 translated_characters = 2; - * * @return This builder for chaining. */ public Builder clearTranslatedCharacters() { - + translatedCharacters_ = 0L; onChanged(); return this; } - private long failedCharacters_; + private long failedCharacters_ ; /** - * - * *
      * Number of characters that have failed to process (Unicode codepoints).
      * 
* * int64 failed_characters = 3; - * * @return The failedCharacters. */ @java.lang.Override @@ -830,36 +761,30 @@ public long getFailedCharacters() { return failedCharacters_; } /** - * - * *
      * Number of characters that have failed to process (Unicode codepoints).
      * 
* * int64 failed_characters = 3; - * * @param value The failedCharacters to set. * @return This builder for chaining. */ public Builder setFailedCharacters(long value) { - + failedCharacters_ = value; onChanged(); return this; } /** - * - * *
      * Number of characters that have failed to process (Unicode codepoints).
      * 
* * int64 failed_characters = 3; - * * @return This builder for chaining. */ public Builder clearFailedCharacters() { - + failedCharacters_ = 0L; onChanged(); return this; @@ -867,47 +792,34 @@ public Builder clearFailedCharacters() { private com.google.protobuf.Timestamp submitTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - submitTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> submitTimeBuilder_; /** - * - * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 4; - * * @return Whether the submitTime field is set. */ public boolean hasSubmitTime() { return submitTimeBuilder_ != null || submitTime_ != null; } /** - * - * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 4; - * * @return The submitTime. */ public com.google.protobuf.Timestamp getSubmitTime() { if (submitTimeBuilder_ == null) { - return submitTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : submitTime_; + return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } else { return submitTimeBuilder_.getMessage(); } } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -928,15 +840,14 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 4; */ - public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setSubmitTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (submitTimeBuilder_ == null) { submitTime_ = builderForValue.build(); onChanged(); @@ -947,8 +858,6 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -959,7 +868,7 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { if (submitTimeBuilder_ == null) { if (submitTime_ != null) { submitTime_ = - com.google.protobuf.Timestamp.newBuilder(submitTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(submitTime_).mergeFrom(value).buildPartial(); } else { submitTime_ = value; } @@ -971,8 +880,6 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -991,8 +898,6 @@ public Builder clearSubmitTime() { return this; } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -1000,13 +905,11 @@ public Builder clearSubmitTime() { * .google.protobuf.Timestamp submit_time = 4; */ public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder() { - + onChanged(); return getSubmitTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -1017,14 +920,11 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { if (submitTimeBuilder_ != null) { return submitTimeBuilder_.getMessageOrBuilder(); } else { - return submitTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : submitTime_; + return submitTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -1032,17 +932,14 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { * .google.protobuf.Timestamp submit_time = 4; */ 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> getSubmitTimeFieldBuilder() { if (submitTimeBuilder_ == null) { - submitTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getSubmitTime(), getParentForChildren(), isClean()); + submitTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getSubmitTime(), + getParentForChildren(), + isClean()); submitTime_ = null; } return submitTimeBuilder_; @@ -1050,13 +947,8 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - endTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; /** - * - * *
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1064,15 +956,12 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() {
      * 
* * .google.protobuf.Timestamp end_time = 5; - * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; } /** - * - * *
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1080,7 +969,6 @@ public boolean hasEndTime() {
      * 
* * .google.protobuf.Timestamp end_time = 5; - * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1091,8 +979,6 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** - * - * *
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1115,8 +1001,6 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1125,7 +1009,8 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp end_time = 5;
      */
-    public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setEndTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (endTimeBuilder_ == null) {
         endTime_ = builderForValue.build();
         onChanged();
@@ -1136,8 +1021,6 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue)
       return this;
     }
     /**
-     *
-     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1150,7 +1033,7 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       if (endTimeBuilder_ == null) {
         if (endTime_ != null) {
           endTime_ =
-              com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial();
+            com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial();
         } else {
           endTime_ = value;
         }
@@ -1162,8 +1045,6 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1184,8 +1065,6 @@ public Builder clearEndTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1195,13 +1074,11 @@ public Builder clearEndTime() {
      * .google.protobuf.Timestamp end_time = 5;
      */
     public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() {
-
+      
       onChanged();
       return getEndTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1214,12 +1091,11 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
       if (endTimeBuilder_ != null) {
         return endTimeBuilder_.getMessageOrBuilder();
       } else {
-        return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
+        return endTime_ == null ?
+            com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
       }
     }
     /**
-     *
-     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1229,24 +1105,21 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
      * .google.protobuf.Timestamp end_time = 5;
      */
     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> 
         getEndTimeFieldBuilder() {
       if (endTimeBuilder_ == null) {
-        endTimeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Timestamp,
-                com.google.protobuf.Timestamp.Builder,
-                com.google.protobuf.TimestampOrBuilder>(
-                getEndTime(), getParentForChildren(), isClean());
+        endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                getEndTime(),
+                getParentForChildren(),
+                isClean());
         endTime_ = null;
       }
       return endTimeBuilder_;
     }
-
     @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);
     }
 
@@ -1256,12 +1129,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.BatchTranslateResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.BatchTranslateResponse)
   private static final com.google.cloud.translate.v3beta1.BatchTranslateResponse DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.BatchTranslateResponse();
   }
@@ -1270,16 +1143,16 @@ public static com.google.cloud.translate.v3beta1.BatchTranslateResponse getDefau
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public BatchTranslateResponse parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new BatchTranslateResponse(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public BatchTranslateResponse parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new BatchTranslateResponse(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1294,4 +1167,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3beta1.BatchTranslateResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateResponseOrBuilder.java b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateResponseOrBuilder.java
similarity index 76%
rename from proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateResponseOrBuilder.java
rename to owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateResponseOrBuilder.java
index 0f69ba03..3c63f054 100644
--- a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateResponseOrBuilder.java
+++ b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateResponseOrBuilder.java
@@ -1,94 +1,61 @@
-/*
- * Copyright 2020 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/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
-public interface BatchTranslateResponseOrBuilder
-    extends
+public interface BatchTranslateResponseOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.BatchTranslateResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Total number of characters (Unicode codepoints).
    * 
* * int64 total_characters = 1; - * * @return The totalCharacters. */ long getTotalCharacters(); /** - * - * *
    * Number of successfully translated characters (Unicode codepoints).
    * 
* * int64 translated_characters = 2; - * * @return The translatedCharacters. */ long getTranslatedCharacters(); /** - * - * *
    * Number of characters that have failed to process (Unicode codepoints).
    * 
* * int64 failed_characters = 3; - * * @return The failedCharacters. */ long getFailedCharacters(); /** - * - * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 4; - * * @return Whether the submitTime field is set. */ boolean hasSubmitTime(); /** - * - * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 4; - * * @return The submitTime. */ com.google.protobuf.Timestamp getSubmitTime(); /** - * - * *
    * Time when the operation was submitted.
    * 
@@ -98,8 +65,6 @@ public interface BatchTranslateResponseOrBuilder com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder(); /** - * - * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -107,13 +72,10 @@ public interface BatchTranslateResponseOrBuilder
    * 
* * .google.protobuf.Timestamp end_time = 5; - * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** - * - * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -121,13 +83,10 @@ public interface BatchTranslateResponseOrBuilder
    * 
* * .google.protobuf.Timestamp end_time = 5; - * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** - * - * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
diff --git a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateTextRequest.java b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateTextRequest.java
similarity index 65%
rename from proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateTextRequest.java
rename to owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateTextRequest.java
index 99b6cacd..e3be0614 100644
--- a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateTextRequest.java
+++ b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateTextRequest.java
@@ -1,42 +1,24 @@
-/*
- * Copyright 2020 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/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
 /**
- *
- *
  * 
  * The batch translation request.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.BatchTranslateTextRequest} */ -public final class BatchTranslateTextRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BatchTranslateTextRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.BatchTranslateTextRequest) BatchTranslateTextRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BatchTranslateTextRequest.newBuilder() to construct. private BatchTranslateTextRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BatchTranslateTextRequest() { parent_ = ""; sourceLanguageCode_ = ""; @@ -46,15 +28,16 @@ private BatchTranslateTextRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BatchTranslateTextRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private BatchTranslateTextRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -74,115 +57,102 @@ private BatchTranslateTextRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - sourceLanguageCode_ = s; - break; + sourceLanguageCode_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + targetLanguageCodes_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - targetLanguageCodes_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - targetLanguageCodes_.add(s); - break; + targetLanguageCodes_.add(s); + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + models_ = com.google.protobuf.MapField.newMapField( + ModelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000002; } - case 34: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - models_ = - com.google.protobuf.MapField.newMapField(ModelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000002; - } - com.google.protobuf.MapEntry models__ = - input.readMessage( - ModelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - models_.getMutableMap().put(models__.getKey(), models__.getValue()); - break; + com.google.protobuf.MapEntry + models__ = input.readMessage( + ModelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + models_.getMutableMap().put( + models__.getKey(), models__.getValue()); + break; + } + case 42: { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + inputConfigs_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; } - case 42: - { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - inputConfigs_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - inputConfigs_.add( - input.readMessage( - com.google.cloud.translate.v3beta1.InputConfig.parser(), extensionRegistry)); - break; + inputConfigs_.add( + input.readMessage(com.google.cloud.translate.v3beta1.InputConfig.parser(), extensionRegistry)); + break; + } + case 50: { + com.google.cloud.translate.v3beta1.OutputConfig.Builder subBuilder = null; + if (outputConfig_ != null) { + subBuilder = outputConfig_.toBuilder(); } - case 50: - { - com.google.cloud.translate.v3beta1.OutputConfig.Builder subBuilder = null; - if (outputConfig_ != null) { - subBuilder = outputConfig_.toBuilder(); - } - outputConfig_ = - input.readMessage( - com.google.cloud.translate.v3beta1.OutputConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(outputConfig_); - outputConfig_ = subBuilder.buildPartial(); - } - - break; + outputConfig_ = input.readMessage(com.google.cloud.translate.v3beta1.OutputConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(outputConfig_); + outputConfig_ = subBuilder.buildPartial(); } - case 58: - { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - glossaries_ = - com.google.protobuf.MapField.newMapField( - GlossariesDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000008; - } - com.google.protobuf.MapEntry< - java.lang.String, - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> - glossaries__ = - input.readMessage( - GlossariesDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - glossaries_.getMutableMap().put(glossaries__.getKey(), glossaries__.getValue()); - break; + + break; + } + case 58: { + if (!((mutable_bitField0_ & 0x00000008) != 0)) { + glossaries_ = com.google.protobuf.MapField.newMapField( + GlossariesDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000008; } - case 74: - { - if (!((mutable_bitField0_ & 0x00000010) != 0)) { - labels_ = - com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000010; - } - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); - break; + com.google.protobuf.MapEntry + glossaries__ = input.readMessage( + GlossariesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + glossaries_.getMutableMap().put( + glossaries__.getKey(), glossaries__.getValue()); + break; + } + case 74: { + if (!((mutable_bitField0_ & 0x00000010) != 0)) { + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000010; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put( + labels__.getKey(), labels__.getValue()); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { targetLanguageCodes_ = targetLanguageCodes_.getUnmodifiableView(); @@ -194,15 +164,15 @@ private BatchTranslateTextRequest( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_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 4: return internalGetModels(); @@ -211,25 +181,21 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { case 9: 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.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.BatchTranslateTextRequest.class, - com.google.cloud.translate.v3beta1.BatchTranslateTextRequest.Builder.class); + com.google.cloud.translate.v3beta1.BatchTranslateTextRequest.class, com.google.cloud.translate.v3beta1.BatchTranslateTextRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. Location to make a call. Must refer to a caller's project.
    * Format: `projects/{project-number-or-id}/locations/{location-id}`.
@@ -239,10 +205,7 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
    * error is returned.
    * 
* - * - * 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 @@ -251,15 +214,14 @@ 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. Location to make a call. Must refer to a caller's project.
    * Format: `projects/{project-number-or-id}/locations/{location-id}`.
@@ -269,18 +231,17 @@ public java.lang.String getParent() {
    * error is returned.
    * 
* - * - * 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 { @@ -291,14 +252,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int SOURCE_LANGUAGE_CODE_FIELD_NUMBER = 2; private volatile java.lang.Object sourceLanguageCode_; /** - * - * *
    * Required. Source language code.
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The sourceLanguageCode. */ @java.lang.Override @@ -307,29 +265,29 @@ public java.lang.String getSourceLanguageCode() { 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(); sourceLanguageCode_ = s; return s; } } /** - * - * *
    * Required. Source language code.
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for sourceLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { + public com.google.protobuf.ByteString + getSourceLanguageCodeBytes() { java.lang.Object ref = sourceLanguageCode_; 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); sourceLanguageCode_ = b; return b; } else { @@ -340,45 +298,34 @@ public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { public static final int TARGET_LANGUAGE_CODES_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList targetLanguageCodes_; /** - * - * *
    * Required. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @return A list containing the targetLanguageCodes. */ - public com.google.protobuf.ProtocolStringList getTargetLanguageCodesList() { + public com.google.protobuf.ProtocolStringList + getTargetLanguageCodesList() { return targetLanguageCodes_; } /** - * - * *
    * Required. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The count of targetLanguageCodes. */ public int getTargetLanguageCodesCount() { return targetLanguageCodes_.size(); } /** - * - * *
    * Required. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param index The index of the element to return. * @return The targetLanguageCodes at the given index. */ @@ -386,40 +333,38 @@ public java.lang.String getTargetLanguageCodes(int index) { return targetLanguageCodes_.get(index); } /** - * - * *
    * Required. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param index The index of the value to return. * @return The bytes of the targetLanguageCodes at the given index. */ - public com.google.protobuf.ByteString getTargetLanguageCodesBytes(int index) { + public com.google.protobuf.ByteString + getTargetLanguageCodesBytes(int index) { return targetLanguageCodes_.getByteString(index); } public static final int MODELS_FIELD_NUMBER = 4; - private static final class ModelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_ModelsEntry_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.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_ModelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - - private com.google.protobuf.MapField models_; - - private com.google.protobuf.MapField internalGetModels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> models_; + private com.google.protobuf.MapField + internalGetModels() { if (models_ == null) { - return com.google.protobuf.MapField.emptyMapField(ModelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + ModelsDefaultEntryHolder.defaultEntry); } return models_; } @@ -428,8 +373,6 @@ public int getModelsCount() { return internalGetModels().getMap().size(); } /** - * - * *
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is model name. Value can be a built-in general model,
@@ -445,22 +388,22 @@ public int getModelsCount() {
    *
    * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
+
   @java.lang.Override
-  public boolean containsModels(java.lang.String key) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
+  public boolean containsModels(
+      java.lang.String key) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
     return internalGetModels().getMap().containsKey(key);
   }
-  /** Use {@link #getModelsMap()} instead. */
+  /**
+   * Use {@link #getModelsMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getModels() {
     return getModelsMap();
   }
   /**
-   *
-   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is model name. Value can be a built-in general model,
@@ -477,12 +420,11 @@ public java.util.Map getModels() {
    * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
+
   public java.util.Map getModelsMap() {
     return internalGetModels().getMap();
   }
   /**
-   *
-   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is model name. Value can be a built-in general model,
@@ -499,16 +441,16 @@ public java.util.Map getModelsMap() {
    * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public java.lang.String getModelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
-    java.util.Map map = internalGetModels().getMap();
+
+  public java.lang.String getModelsOrDefault(
+      java.lang.String key,
+      java.lang.String defaultValue) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
+    java.util.Map map =
+        internalGetModels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is model name. Value can be a built-in general model,
@@ -525,11 +467,12 @@ public java.lang.String getModelsOrDefault(java.lang.String key, java.lang.Strin
    * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public java.lang.String getModelsOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
-    java.util.Map map = internalGetModels().getMap();
+
+  public java.lang.String getModelsOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
+    java.util.Map map =
+        internalGetModels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -539,8 +482,6 @@ public java.lang.String getModelsOrThrow(java.lang.String key) {
   public static final int INPUT_CONFIGS_FIELD_NUMBER = 5;
   private java.util.List inputConfigs_;
   /**
-   *
-   *
    * 
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -548,17 +489,13 @@ public java.lang.String getModelsOrThrow(java.lang.String key) {
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public java.util.List getInputConfigsList() { return inputConfigs_; } /** - * - * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -566,18 +503,14 @@ public java.util.List getInputCo
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public java.util.List + public java.util.List getInputConfigsOrBuilderList() { return inputConfigs_; } /** - * - * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -585,17 +518,13 @@ public java.util.List getInputCo
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public int getInputConfigsCount() { return inputConfigs_.size(); } /** - * - * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -603,17 +532,13 @@ public int getInputConfigsCount() {
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.translate.v3beta1.InputConfig getInputConfigs(int index) { return inputConfigs_.get(index); } /** - * - * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -621,9 +546,7 @@ public com.google.cloud.translate.v3beta1.InputConfig getInputConfigs(int index)
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.translate.v3beta1.InputConfigOrBuilder getInputConfigsOrBuilder( @@ -634,18 +557,13 @@ public com.google.cloud.translate.v3beta1.InputConfigOrBuilder getInputConfigsOr public static final int OUTPUT_CONFIG_FIELD_NUMBER = 6; private com.google.cloud.translate.v3beta1.OutputConfig outputConfig_; /** - * - * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * - * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the outputConfig field is set. */ @java.lang.Override @@ -653,38 +571,27 @@ public boolean hasOutputConfig() { return outputConfig_ != null; } /** - * - * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * - * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; * @return The outputConfig. */ @java.lang.Override public com.google.cloud.translate.v3beta1.OutputConfig getOutputConfig() { - return outputConfig_ == null - ? com.google.cloud.translate.v3beta1.OutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? com.google.cloud.translate.v3beta1.OutputConfig.getDefaultInstance() : outputConfig_; } /** - * - * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * - * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.translate.v3beta1.OutputConfigOrBuilder getOutputConfigOrBuilder() { @@ -692,32 +599,24 @@ public com.google.cloud.translate.v3beta1.OutputConfigOrBuilder getOutputConfigO } public static final int GLOSSARIES_FIELD_NUMBER = 7; - private static final class GlossariesDefaultEntryHolder { static final com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> - defaultEntry = + java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> defaultEntry = com.google.protobuf.MapEntry - . - newDefaultInstance( - com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_GlossariesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig - .getDefaultInstance()); + .newDefaultInstance( + com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_GlossariesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance()); } - - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> - glossaries_; - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> - internalGetGlossaries() { + java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> glossaries_; + private com.google.protobuf.MapField + internalGetGlossaries() { if (glossaries_ == null) { - return com.google.protobuf.MapField.emptyMapField(GlossariesDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + GlossariesDefaultEntryHolder.defaultEntry); } return glossaries_; } @@ -726,93 +625,74 @@ public int getGlossariesCount() { return internalGetGlossaries().getMap().size(); } /** - * - * *
    * Optional. Glossaries to be applied for translation.
    * It's keyed by target language code.
    * 
* - * - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ + @java.lang.Override - public boolean containsGlossaries(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } + public boolean containsGlossaries( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } return internalGetGlossaries().getMap().containsKey(key); } - /** Use {@link #getGlossariesMap()} instead. */ + /** + * Use {@link #getGlossariesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated - public java.util.Map< - java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> - getGlossaries() { + public java.util.Map getGlossaries() { return getGlossariesMap(); } /** - * - * *
    * Optional. Glossaries to be applied for translation.
    * It's keyed by target language code.
    * 
* - * - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.Map< - java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> - getGlossariesMap() { + + public java.util.Map getGlossariesMap() { return internalGetGlossaries().getMap(); } /** - * - * *
    * Optional. Glossaries to be applied for translation.
    * It's keyed by target language code.
    * 
* - * - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossariesOrDefault( java.lang.String key, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig defaultValue) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map - map = internalGetGlossaries().getMap(); + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetGlossaries().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Optional. Glossaries to be applied for translation.
    * It's keyed by target language code.
    * 
* - * - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossariesOrThrow( java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map - map = internalGetGlossaries().getMap(); + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetGlossaries().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -820,23 +700,24 @@ public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossar } public static final int LABELS_FIELD_NUMBER = 9; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_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.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - - 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_; } @@ -845,8 +726,6 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Optional. The labels with user-defined metadata for the request.
    * Label keys and values can be no longer than 63 characters
@@ -858,22 +737,22 @@ public int getLabelsCount() {
    *
    * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
    */
+
   @java.lang.Override
-  public boolean containsLabels(java.lang.String key) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
+  public boolean containsLabels(
+      java.lang.String key) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
     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. The labels with user-defined metadata for the request.
    * Label keys and values can be no longer than 63 characters
@@ -886,12 +765,11 @@ public java.util.Map getLabels() {
    * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
+
   public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    * Label keys and values can be no longer than 63 characters
@@ -904,16 +782,16 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
-    java.util.Map map = internalGetLabels().getMap();
+
+  public java.lang.String getLabelsOrDefault(
+      java.lang.String key,
+      java.lang.String defaultValue) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    * Label keys and values can be no longer than 63 characters
@@ -926,11 +804,12 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin
    * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
-    java.util.Map map = internalGetLabels().getMap();
+
+  public java.lang.String getLabelsOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -938,7 +817,6 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -950,28 +828,41 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
-    if (!getParentBytes().isEmpty()) {
+  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_);
     }
-    if (!getSourceLanguageCodeBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceLanguageCode_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 2, sourceLanguageCode_);
     }
     for (int i = 0; i < targetLanguageCodes_.size(); i++) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 3, targetLanguageCodes_.getRaw(i));
     }
-    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
-        output, internalGetModels(), ModelsDefaultEntryHolder.defaultEntry, 4);
+    com.google.protobuf.GeneratedMessageV3
+      .serializeStringMapTo(
+        output,
+        internalGetModels(),
+        ModelsDefaultEntryHolder.defaultEntry,
+        4);
     for (int i = 0; i < inputConfigs_.size(); i++) {
       output.writeMessage(5, inputConfigs_.get(i));
     }
     if (outputConfig_ != null) {
       output.writeMessage(6, getOutputConfig());
     }
-    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
-        output, internalGetGlossaries(), GlossariesDefaultEntryHolder.defaultEntry, 7);
-    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
-        output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 9);
+    com.google.protobuf.GeneratedMessageV3
+      .serializeStringMapTo(
+        output,
+        internalGetGlossaries(),
+        GlossariesDefaultEntryHolder.defaultEntry,
+        7);
+    com.google.protobuf.GeneratedMessageV3
+      .serializeStringMapTo(
+        output,
+        internalGetLabels(),
+        LabelsDefaultEntryHolder.defaultEntry,
+        9);
     unknownFields.writeTo(output);
   }
 
@@ -981,10 +872,10 @@ public int getSerializedSize() {
     if (size != -1) return size;
 
     size = 0;
-    if (!getParentBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_);
     }
-    if (!getSourceLanguageCodeBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceLanguageCode_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, sourceLanguageCode_);
     }
     {
@@ -995,44 +886,43 @@ public int getSerializedSize() {
       size += dataSize;
       size += 1 * getTargetLanguageCodesList().size();
     }
-    for (java.util.Map.Entry entry :
-        internalGetModels().getMap().entrySet()) {
-      com.google.protobuf.MapEntry models__ =
-          ModelsDefaultEntryHolder.defaultEntry
-              .newBuilderForType()
-              .setKey(entry.getKey())
-              .setValue(entry.getValue())
-              .build();
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, models__);
+    for (java.util.Map.Entry entry
+         : internalGetModels().getMap().entrySet()) {
+      com.google.protobuf.MapEntry
+      models__ = ModelsDefaultEntryHolder.defaultEntry.newBuilderForType()
+          .setKey(entry.getKey())
+          .setValue(entry.getValue())
+          .build();
+      size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(4, models__);
     }
     for (int i = 0; i < inputConfigs_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, inputConfigs_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(5, inputConfigs_.get(i));
     }
     if (outputConfig_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getOutputConfig());
-    }
-    for (java.util.Map.Entry<
-            java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig>
-        entry : internalGetGlossaries().getMap().entrySet()) {
-      com.google.protobuf.MapEntry<
-              java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig>
-          glossaries__ =
-              GlossariesDefaultEntryHolder.defaultEntry
-                  .newBuilderForType()
-                  .setKey(entry.getKey())
-                  .setValue(entry.getValue())
-                  .build();
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, glossaries__);
-    }
-    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(9, labels__);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(6, getOutputConfig());
+    }
+    for (java.util.Map.Entry entry
+         : internalGetGlossaries().getMap().entrySet()) {
+      com.google.protobuf.MapEntry
+      glossaries__ = GlossariesDefaultEntryHolder.defaultEntry.newBuilderForType()
+          .setKey(entry.getKey())
+          .setValue(entry.getValue())
+          .build();
+      size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(7, glossaries__);
+    }
+    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(9, labels__);
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -1042,25 +932,32 @@ 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.cloud.translate.v3beta1.BatchTranslateTextRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3beta1.BatchTranslateTextRequest other =
-        (com.google.cloud.translate.v3beta1.BatchTranslateTextRequest) obj;
-
-    if (!getParent().equals(other.getParent())) return false;
-    if (!getSourceLanguageCode().equals(other.getSourceLanguageCode())) return false;
-    if (!getTargetLanguageCodesList().equals(other.getTargetLanguageCodesList())) return false;
-    if (!internalGetModels().equals(other.internalGetModels())) return false;
-    if (!getInputConfigsList().equals(other.getInputConfigsList())) return false;
+    com.google.cloud.translate.v3beta1.BatchTranslateTextRequest other = (com.google.cloud.translate.v3beta1.BatchTranslateTextRequest) obj;
+
+    if (!getParent()
+        .equals(other.getParent())) return false;
+    if (!getSourceLanguageCode()
+        .equals(other.getSourceLanguageCode())) return false;
+    if (!getTargetLanguageCodesList()
+        .equals(other.getTargetLanguageCodesList())) return false;
+    if (!internalGetModels().equals(
+        other.internalGetModels())) return false;
+    if (!getInputConfigsList()
+        .equals(other.getInputConfigsList())) return false;
     if (hasOutputConfig() != other.hasOutputConfig()) return false;
     if (hasOutputConfig()) {
-      if (!getOutputConfig().equals(other.getOutputConfig())) return false;
+      if (!getOutputConfig()
+          .equals(other.getOutputConfig())) return false;
     }
-    if (!internalGetGlossaries().equals(other.internalGetGlossaries())) return false;
-    if (!internalGetLabels().equals(other.internalGetLabels())) return false;
+    if (!internalGetGlossaries().equals(
+        other.internalGetGlossaries())) return false;
+    if (!internalGetLabels().equals(
+        other.internalGetLabels())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -1106,121 +1003,114 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3beta1.BatchTranslateTextRequest 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.cloud.translate.v3beta1.BatchTranslateTextRequest 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.cloud.translate.v3beta1.BatchTranslateTextRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3beta1.BatchTranslateTextRequest 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.cloud.translate.v3beta1.BatchTranslateTextRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3beta1.BatchTranslateTextRequest 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.cloud.translate.v3beta1.BatchTranslateTextRequest parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3beta1.BatchTranslateTextRequest parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3beta1.BatchTranslateTextRequest 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.cloud.translate.v3beta1.BatchTranslateTextRequest parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3beta1.BatchTranslateTextRequest parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3beta1.BatchTranslateTextRequest 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.cloud.translate.v3beta1.BatchTranslateTextRequest 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.cloud.translate.v3beta1.BatchTranslateTextRequest 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.cloud.translate.v3beta1.BatchTranslateTextRequest prototype) {
+  public static Builder newBuilder(com.google.cloud.translate.v3beta1.BatchTranslateTextRequest 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 batch translation request.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.BatchTranslateTextRequest} */ - 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.translation.v3beta1.BatchTranslateTextRequest) com.google.cloud.translate.v3beta1.BatchTranslateTextRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 4: return internalGetModels(); @@ -1229,12 +1119,13 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { case 9: 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 4: return internalGetMutableModels(); @@ -1243,18 +1134,16 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) { case 9: 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.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.BatchTranslateTextRequest.class, - com.google.cloud.translate.v3beta1.BatchTranslateTextRequest.Builder.class); + com.google.cloud.translate.v3beta1.BatchTranslateTextRequest.class, com.google.cloud.translate.v3beta1.BatchTranslateTextRequest.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.BatchTranslateTextRequest.newBuilder() @@ -1262,17 +1151,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getInputConfigsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1301,14 +1190,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_descriptor; } @java.lang.Override - public com.google.cloud.translate.v3beta1.BatchTranslateTextRequest - getDefaultInstanceForType() { + public com.google.cloud.translate.v3beta1.BatchTranslateTextRequest getDefaultInstanceForType() { return com.google.cloud.translate.v3beta1.BatchTranslateTextRequest.getDefaultInstance(); } @@ -1323,8 +1211,7 @@ public com.google.cloud.translate.v3beta1.BatchTranslateTextRequest build() { @java.lang.Override public com.google.cloud.translate.v3beta1.BatchTranslateTextRequest buildPartial() { - com.google.cloud.translate.v3beta1.BatchTranslateTextRequest result = - new com.google.cloud.translate.v3beta1.BatchTranslateTextRequest(this); + com.google.cloud.translate.v3beta1.BatchTranslateTextRequest result = new com.google.cloud.translate.v3beta1.BatchTranslateTextRequest(this); int from_bitField0_ = bitField0_; result.parent_ = parent_; result.sourceLanguageCode_ = sourceLanguageCode_; @@ -1361,39 +1248,38 @@ public com.google.cloud.translate.v3beta1.BatchTranslateTextRequest 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.cloud.translate.v3beta1.BatchTranslateTextRequest) { - return mergeFrom((com.google.cloud.translate.v3beta1.BatchTranslateTextRequest) other); + return mergeFrom((com.google.cloud.translate.v3beta1.BatchTranslateTextRequest)other); } else { super.mergeFrom(other); return this; @@ -1401,9 +1287,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.BatchTranslateTextRequest other) { - if (other - == com.google.cloud.translate.v3beta1.BatchTranslateTextRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3beta1.BatchTranslateTextRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -1422,7 +1306,8 @@ public Builder mergeFrom(com.google.cloud.translate.v3beta1.BatchTranslateTextRe } onChanged(); } - internalGetMutableModels().mergeFrom(other.internalGetModels()); + internalGetMutableModels().mergeFrom( + other.internalGetModels()); if (inputConfigsBuilder_ == null) { if (!other.inputConfigs_.isEmpty()) { if (inputConfigs_.isEmpty()) { @@ -1441,10 +1326,9 @@ public Builder mergeFrom(com.google.cloud.translate.v3beta1.BatchTranslateTextRe inputConfigsBuilder_ = null; inputConfigs_ = other.inputConfigs_; bitField0_ = (bitField0_ & ~0x00000004); - inputConfigsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getInputConfigsFieldBuilder() - : null; + inputConfigsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getInputConfigsFieldBuilder() : null; } else { inputConfigsBuilder_.addAllMessages(other.inputConfigs_); } @@ -1453,8 +1337,10 @@ public Builder mergeFrom(com.google.cloud.translate.v3beta1.BatchTranslateTextRe if (other.hasOutputConfig()) { mergeOutputConfig(other.getOutputConfig()); } - internalGetMutableGlossaries().mergeFrom(other.internalGetGlossaries()); - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + internalGetMutableGlossaries().mergeFrom( + other.internalGetGlossaries()); + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -1474,8 +1360,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.translate.v3beta1.BatchTranslateTextRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.translate.v3beta1.BatchTranslateTextRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1484,13 +1369,10 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Location to make a call. Must refer to a caller's project.
      * Format: `projects/{project-number-or-id}/locations/{location-id}`.
@@ -1500,16 +1382,14 @@ public Builder mergeFrom(
      * error is returned.
      * 
* - * - * 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; @@ -1518,8 +1398,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Location to make a call. Must refer to a caller's project.
      * Format: `projects/{project-number-or-id}/locations/{location-id}`.
@@ -1529,17 +1407,16 @@ public java.lang.String getParent() {
      * error is returned.
      * 
* - * - * 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 { @@ -1547,8 +1424,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Location to make a call. Must refer to a caller's project.
      * Format: `projects/{project-number-or-id}/locations/{location-id}`.
@@ -1558,25 +1433,21 @@ public com.google.protobuf.ByteString getParentBytes() {
      * error is returned.
      * 
* - * - * 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) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. Location to make a call. Must refer to a caller's project.
      * Format: `projects/{project-number-or-id}/locations/{location-id}`.
@@ -1586,21 +1457,16 @@ public Builder setParent(java.lang.String value) {
      * error is returned.
      * 
* - * - * 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() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. Location to make a call. Must refer to a caller's project.
      * Format: `projects/{project-number-or-id}/locations/{location-id}`.
@@ -1610,19 +1476,17 @@ public Builder clearParent() {
      * error is returned.
      * 
* - * - * 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) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -1630,20 +1494,18 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object sourceLanguageCode_ = ""; /** - * - * *
      * Required. Source language code.
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The sourceLanguageCode. */ public java.lang.String getSourceLanguageCode() { java.lang.Object ref = sourceLanguageCode_; 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(); sourceLanguageCode_ = s; return s; @@ -1652,21 +1514,20 @@ public java.lang.String getSourceLanguageCode() { } } /** - * - * *
      * Required. Source language code.
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for sourceLanguageCode. */ - public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { + public com.google.protobuf.ByteString + getSourceLanguageCodeBytes() { java.lang.Object ref = sourceLanguageCode_; 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); sourceLanguageCode_ = b; return b; } else { @@ -1674,115 +1535,95 @@ public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { } } /** - * - * *
      * Required. Source language code.
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCode(java.lang.String value) { + public Builder setSourceLanguageCode( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + sourceLanguageCode_ = value; onChanged(); return this; } /** - * - * *
      * Required. Source language code.
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearSourceLanguageCode() { - + sourceLanguageCode_ = getDefaultInstance().getSourceLanguageCode(); onChanged(); return this; } /** - * - * *
      * Required. Source language code.
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCodeBytes(com.google.protobuf.ByteString value) { + public Builder setSourceLanguageCodeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceLanguageCode_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList targetLanguageCodes_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList targetLanguageCodes_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureTargetLanguageCodesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { targetLanguageCodes_ = new com.google.protobuf.LazyStringArrayList(targetLanguageCodes_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * Required. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @return A list containing the targetLanguageCodes. */ - public com.google.protobuf.ProtocolStringList getTargetLanguageCodesList() { + public com.google.protobuf.ProtocolStringList + getTargetLanguageCodesList() { return targetLanguageCodes_.getUnmodifiableView(); } /** - * - * *
      * Required. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The count of targetLanguageCodes. */ public int getTargetLanguageCodesCount() { return targetLanguageCodes_.size(); } /** - * - * *
      * Required. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param index The index of the element to return. * @return The targetLanguageCodes at the given index. */ @@ -1790,95 +1631,80 @@ public java.lang.String getTargetLanguageCodes(int index) { return targetLanguageCodes_.get(index); } /** - * - * *
      * Required. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param index The index of the value to return. * @return The bytes of the targetLanguageCodes at the given index. */ - public com.google.protobuf.ByteString getTargetLanguageCodesBytes(int index) { + public com.google.protobuf.ByteString + getTargetLanguageCodesBytes(int index) { return targetLanguageCodes_.getByteString(index); } /** - * - * *
      * Required. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param index The index to set the value at. * @param value The targetLanguageCodes to set. * @return This builder for chaining. */ - public Builder setTargetLanguageCodes(int index, java.lang.String value) { + public Builder setTargetLanguageCodes( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureTargetLanguageCodesIsMutable(); + throw new NullPointerException(); + } + ensureTargetLanguageCodesIsMutable(); targetLanguageCodes_.set(index, value); onChanged(); return this; } /** - * - * *
      * Required. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param value The targetLanguageCodes to add. * @return This builder for chaining. */ - public Builder addTargetLanguageCodes(java.lang.String value) { + public Builder addTargetLanguageCodes( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureTargetLanguageCodesIsMutable(); + throw new NullPointerException(); + } + ensureTargetLanguageCodesIsMutable(); targetLanguageCodes_.add(value); onChanged(); return this; } /** - * - * *
      * Required. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param values The targetLanguageCodes to add. * @return This builder for chaining. */ - public Builder addAllTargetLanguageCodes(java.lang.Iterable values) { + public Builder addAllTargetLanguageCodes( + java.lang.Iterable values) { ensureTargetLanguageCodesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, targetLanguageCodes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, targetLanguageCodes_); onChanged(); return this; } /** - * - * *
      * Required. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @return This builder for chaining. */ public Builder clearTargetLanguageCodes() { @@ -1888,44 +1714,42 @@ public Builder clearTargetLanguageCodes() { return this; } /** - * - * *
      * Required. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param value The bytes of the targetLanguageCodes to add. * @return This builder for chaining. */ - public Builder addTargetLanguageCodesBytes(com.google.protobuf.ByteString value) { + public Builder addTargetLanguageCodesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureTargetLanguageCodesIsMutable(); targetLanguageCodes_.add(value); onChanged(); return this; } - private com.google.protobuf.MapField models_; - - private com.google.protobuf.MapField internalGetModels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> models_; + private com.google.protobuf.MapField + internalGetModels() { if (models_ == null) { - return com.google.protobuf.MapField.emptyMapField(ModelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + ModelsDefaultEntryHolder.defaultEntry); } return models_; } - private com.google.protobuf.MapField - internalGetMutableModels() { - onChanged(); - ; + internalGetMutableModels() { + onChanged();; if (models_ == null) { - models_ = com.google.protobuf.MapField.newMapField(ModelsDefaultEntryHolder.defaultEntry); + models_ = com.google.protobuf.MapField.newMapField( + ModelsDefaultEntryHolder.defaultEntry); } if (!models_.isMutable()) { models_ = models_.copy(); @@ -1937,8 +1761,6 @@ public int getModelsCount() { return internalGetModels().getMap().size(); } /** - * - * *
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is model name. Value can be a built-in general model,
@@ -1954,22 +1776,22 @@ public int getModelsCount() {
      *
      * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
+
     @java.lang.Override
-    public boolean containsModels(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
+    public boolean containsModels(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
       return internalGetModels().getMap().containsKey(key);
     }
-    /** Use {@link #getModelsMap()} instead. */
+    /**
+     * Use {@link #getModelsMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getModels() {
       return getModelsMap();
     }
     /**
-     *
-     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is model name. Value can be a built-in general model,
@@ -1986,12 +1808,11 @@ public java.util.Map getModels() {
      * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
+
     public java.util.Map getModelsMap() {
       return internalGetModels().getMap();
     }
     /**
-     *
-     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is model name. Value can be a built-in general model,
@@ -2008,17 +1829,16 @@ public java.util.Map getModelsMap() {
      * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
+
     public java.lang.String getModelsOrDefault(
-        java.lang.String key, java.lang.String defaultValue) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      java.util.Map map = internalGetModels().getMap();
+        java.lang.String key,
+        java.lang.String defaultValue) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      java.util.Map map =
+          internalGetModels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is model name. Value can be a built-in general model,
@@ -2035,11 +1855,12 @@ public java.lang.String getModelsOrDefault(
      * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public java.lang.String getModelsOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      java.util.Map map = internalGetModels().getMap();
+
+    public java.lang.String getModelsOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      java.util.Map map =
+          internalGetModels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -2047,12 +1868,11 @@ public java.lang.String getModelsOrThrow(java.lang.String key) {
     }
 
     public Builder clearModels() {
-      internalGetMutableModels().getMutableMap().clear();
+      internalGetMutableModels().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is model name. Value can be a built-in general model,
@@ -2068,21 +1888,23 @@ public Builder clearModels() {
      *
      * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder removeModels(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      internalGetMutableModels().getMutableMap().remove(key);
+
+    public Builder removeModels(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      internalGetMutableModels().getMutableMap()
+          .remove(key);
       return this;
     }
-    /** Use alternate mutation accessors instead. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableModels() {
+    public java.util.Map
+    getMutableModels() {
       return internalGetMutableModels().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is model name. Value can be a built-in general model,
@@ -2098,19 +1920,16 @@ public java.util.Map getMutableModels() {
      *
      * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putModels(java.lang.String key, java.lang.String value) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      if (value == null) {
-        throw new java.lang.NullPointerException();
-      }
-      internalGetMutableModels().getMutableMap().put(key, value);
+    public Builder putModels(
+        java.lang.String key,
+        java.lang.String value) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      if (value == null) { throw new java.lang.NullPointerException(); }
+      internalGetMutableModels().getMutableMap()
+          .put(key, value);
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is model name. Value can be a built-in general model,
@@ -2126,31 +1945,27 @@ public Builder putModels(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putAllModels(java.util.Map values) {
-      internalGetMutableModels().getMutableMap().putAll(values);
+
+    public Builder putAllModels(
+        java.util.Map values) {
+      internalGetMutableModels().getMutableMap()
+          .putAll(values);
       return this;
     }
 
     private java.util.List inputConfigs_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureInputConfigsIsMutable() {
       if (!((bitField0_ & 0x00000004) != 0)) {
-        inputConfigs_ =
-            new java.util.ArrayList(inputConfigs_);
+        inputConfigs_ = new java.util.ArrayList(inputConfigs_);
         bitField0_ |= 0x00000004;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.translate.v3beta1.InputConfig,
-            com.google.cloud.translate.v3beta1.InputConfig.Builder,
-            com.google.cloud.translate.v3beta1.InputConfigOrBuilder>
-        inputConfigsBuilder_;
+        com.google.cloud.translate.v3beta1.InputConfig, com.google.cloud.translate.v3beta1.InputConfig.Builder, com.google.cloud.translate.v3beta1.InputConfigOrBuilder> inputConfigsBuilder_;
 
     /**
-     *
-     *
      * 
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2158,9 +1973,7 @@ private void ensureInputConfigsIsMutable() {
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ public java.util.List getInputConfigsList() { if (inputConfigsBuilder_ == null) { @@ -2170,8 +1983,6 @@ public java.util.List getInputCo } } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2179,9 +1990,7 @@ public java.util.List getInputCo
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ public int getInputConfigsCount() { if (inputConfigsBuilder_ == null) { @@ -2191,8 +2000,6 @@ public int getInputConfigsCount() { } } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2200,9 +2007,7 @@ public int getInputConfigsCount() {
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.translate.v3beta1.InputConfig getInputConfigs(int index) { if (inputConfigsBuilder_ == null) { @@ -2212,8 +2017,6 @@ public com.google.cloud.translate.v3beta1.InputConfig getInputConfigs(int index) } } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2221,9 +2024,7 @@ public com.google.cloud.translate.v3beta1.InputConfig getInputConfigs(int index)
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setInputConfigs( int index, com.google.cloud.translate.v3beta1.InputConfig value) { @@ -2240,8 +2041,6 @@ public Builder setInputConfigs( return this; } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2249,9 +2048,7 @@ public Builder setInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setInputConfigs( int index, com.google.cloud.translate.v3beta1.InputConfig.Builder builderForValue) { @@ -2265,8 +2062,6 @@ public Builder setInputConfigs( return this; } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2274,9 +2069,7 @@ public Builder setInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addInputConfigs(com.google.cloud.translate.v3beta1.InputConfig value) { if (inputConfigsBuilder_ == null) { @@ -2292,8 +2085,6 @@ public Builder addInputConfigs(com.google.cloud.translate.v3beta1.InputConfig va return this; } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2301,9 +2092,7 @@ public Builder addInputConfigs(com.google.cloud.translate.v3beta1.InputConfig va
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addInputConfigs( int index, com.google.cloud.translate.v3beta1.InputConfig value) { @@ -2320,8 +2109,6 @@ public Builder addInputConfigs( return this; } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2329,9 +2116,7 @@ public Builder addInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addInputConfigs( com.google.cloud.translate.v3beta1.InputConfig.Builder builderForValue) { @@ -2345,8 +2130,6 @@ public Builder addInputConfigs( return this; } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2354,9 +2137,7 @@ public Builder addInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addInputConfigs( int index, com.google.cloud.translate.v3beta1.InputConfig.Builder builderForValue) { @@ -2370,8 +2151,6 @@ public Builder addInputConfigs( return this; } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2379,15 +2158,14 @@ public Builder addInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addAllInputConfigs( java.lang.Iterable values) { if (inputConfigsBuilder_ == null) { ensureInputConfigsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, inputConfigs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, inputConfigs_); onChanged(); } else { inputConfigsBuilder_.addAllMessages(values); @@ -2395,8 +2173,6 @@ public Builder addAllInputConfigs( return this; } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2404,9 +2180,7 @@ public Builder addAllInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearInputConfigs() { if (inputConfigsBuilder_ == null) { @@ -2419,8 +2193,6 @@ public Builder clearInputConfigs() { return this; } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2428,9 +2200,7 @@ public Builder clearInputConfigs() {
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ public Builder removeInputConfigs(int index) { if (inputConfigsBuilder_ == null) { @@ -2443,8 +2213,6 @@ public Builder removeInputConfigs(int index) { return this; } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2452,17 +2220,13 @@ public Builder removeInputConfigs(int index) {
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.translate.v3beta1.InputConfig.Builder getInputConfigsBuilder( int index) { return getInputConfigsFieldBuilder().getBuilder(index); } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2470,21 +2234,16 @@ public com.google.cloud.translate.v3beta1.InputConfig.Builder getInputConfigsBui
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.translate.v3beta1.InputConfigOrBuilder getInputConfigsOrBuilder( int index) { if (inputConfigsBuilder_ == null) { - return inputConfigs_.get(index); - } else { + return inputConfigs_.get(index); } else { return inputConfigsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2492,12 +2251,10 @@ public com.google.cloud.translate.v3beta1.InputConfigOrBuilder getInputConfigsOr
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List - getInputConfigsOrBuilderList() { + public java.util.List + getInputConfigsOrBuilderList() { if (inputConfigsBuilder_ != null) { return inputConfigsBuilder_.getMessageOrBuilderList(); } else { @@ -2505,8 +2262,6 @@ public com.google.cloud.translate.v3beta1.InputConfigOrBuilder getInputConfigsOr } } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2514,17 +2269,13 @@ public com.google.cloud.translate.v3beta1.InputConfigOrBuilder getInputConfigsOr
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.translate.v3beta1.InputConfig.Builder addInputConfigsBuilder() { - return getInputConfigsFieldBuilder() - .addBuilder(com.google.cloud.translate.v3beta1.InputConfig.getDefaultInstance()); + return getInputConfigsFieldBuilder().addBuilder( + com.google.cloud.translate.v3beta1.InputConfig.getDefaultInstance()); } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2532,18 +2283,14 @@ public com.google.cloud.translate.v3beta1.InputConfig.Builder addInputConfigsBui
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.translate.v3beta1.InputConfig.Builder addInputConfigsBuilder( int index) { - return getInputConfigsFieldBuilder() - .addBuilder(index, com.google.cloud.translate.v3beta1.InputConfig.getDefaultInstance()); + return getInputConfigsFieldBuilder().addBuilder( + index, com.google.cloud.translate.v3beta1.InputConfig.getDefaultInstance()); } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2551,27 +2298,22 @@ public com.google.cloud.translate.v3beta1.InputConfig.Builder addInputConfigsBui
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List - getInputConfigsBuilderList() { + public java.util.List + getInputConfigsBuilderList() { return getInputConfigsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.translate.v3beta1.InputConfig, - com.google.cloud.translate.v3beta1.InputConfig.Builder, - com.google.cloud.translate.v3beta1.InputConfigOrBuilder> + com.google.cloud.translate.v3beta1.InputConfig, com.google.cloud.translate.v3beta1.InputConfig.Builder, com.google.cloud.translate.v3beta1.InputConfigOrBuilder> getInputConfigsFieldBuilder() { if (inputConfigsBuilder_ == null) { - inputConfigsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.translate.v3beta1.InputConfig, - com.google.cloud.translate.v3beta1.InputConfig.Builder, - com.google.cloud.translate.v3beta1.InputConfigOrBuilder>( - inputConfigs_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + inputConfigsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.translate.v3beta1.InputConfig, com.google.cloud.translate.v3beta1.InputConfig.Builder, com.google.cloud.translate.v3beta1.InputConfigOrBuilder>( + inputConfigs_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); inputConfigs_ = null; } return inputConfigsBuilder_; @@ -2579,64 +2321,45 @@ public com.google.cloud.translate.v3beta1.InputConfig.Builder addInputConfigsBui private com.google.cloud.translate.v3beta1.OutputConfig outputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.OutputConfig, - com.google.cloud.translate.v3beta1.OutputConfig.Builder, - com.google.cloud.translate.v3beta1.OutputConfigOrBuilder> - outputConfigBuilder_; + com.google.cloud.translate.v3beta1.OutputConfig, com.google.cloud.translate.v3beta1.OutputConfig.Builder, com.google.cloud.translate.v3beta1.OutputConfigOrBuilder> outputConfigBuilder_; /** - * - * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * - * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return outputConfigBuilder_ != null || outputConfig_ != null; } /** - * - * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * - * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; * @return The outputConfig. */ public com.google.cloud.translate.v3beta1.OutputConfig getOutputConfig() { if (outputConfigBuilder_ == null) { - return outputConfig_ == null - ? com.google.cloud.translate.v3beta1.OutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? com.google.cloud.translate.v3beta1.OutputConfig.getDefaultInstance() : outputConfig_; } else { return outputConfigBuilder_.getMessage(); } } /** - * - * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * - * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setOutputConfig(com.google.cloud.translate.v3beta1.OutputConfig value) { if (outputConfigBuilder_ == null) { @@ -2652,17 +2375,13 @@ public Builder setOutputConfig(com.google.cloud.translate.v3beta1.OutputConfig v return this; } /** - * - * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * - * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setOutputConfig( com.google.cloud.translate.v3beta1.OutputConfig.Builder builderForValue) { @@ -2676,25 +2395,19 @@ public Builder setOutputConfig( return this; } /** - * - * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * - * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeOutputConfig(com.google.cloud.translate.v3beta1.OutputConfig value) { if (outputConfigBuilder_ == null) { if (outputConfig_ != null) { outputConfig_ = - com.google.cloud.translate.v3beta1.OutputConfig.newBuilder(outputConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.translate.v3beta1.OutputConfig.newBuilder(outputConfig_).mergeFrom(value).buildPartial(); } else { outputConfig_ = value; } @@ -2706,17 +2419,13 @@ public Builder mergeOutputConfig(com.google.cloud.translate.v3beta1.OutputConfig return this; } /** - * - * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * - * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearOutputConfig() { if (outputConfigBuilder_ == null) { @@ -2730,97 +2439,75 @@ public Builder clearOutputConfig() { return this; } /** - * - * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * - * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.translate.v3beta1.OutputConfig.Builder getOutputConfigBuilder() { - + onChanged(); return getOutputConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * - * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.translate.v3beta1.OutputConfigOrBuilder getOutputConfigOrBuilder() { if (outputConfigBuilder_ != null) { return outputConfigBuilder_.getMessageOrBuilder(); } else { - return outputConfig_ == null - ? com.google.cloud.translate.v3beta1.OutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? + com.google.cloud.translate.v3beta1.OutputConfig.getDefaultInstance() : outputConfig_; } } /** - * - * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * - * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.OutputConfig, - com.google.cloud.translate.v3beta1.OutputConfig.Builder, - com.google.cloud.translate.v3beta1.OutputConfigOrBuilder> + com.google.cloud.translate.v3beta1.OutputConfig, com.google.cloud.translate.v3beta1.OutputConfig.Builder, com.google.cloud.translate.v3beta1.OutputConfigOrBuilder> getOutputConfigFieldBuilder() { if (outputConfigBuilder_ == null) { - outputConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.OutputConfig, - com.google.cloud.translate.v3beta1.OutputConfig.Builder, - com.google.cloud.translate.v3beta1.OutputConfigOrBuilder>( - getOutputConfig(), getParentForChildren(), isClean()); + outputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3beta1.OutputConfig, com.google.cloud.translate.v3beta1.OutputConfig.Builder, com.google.cloud.translate.v3beta1.OutputConfigOrBuilder>( + getOutputConfig(), + getParentForChildren(), + isClean()); outputConfig_ = null; } return outputConfigBuilder_; } private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> - glossaries_; - - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> - internalGetGlossaries() { + java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> glossaries_; + private com.google.protobuf.MapField + internalGetGlossaries() { if (glossaries_ == null) { return com.google.protobuf.MapField.emptyMapField( GlossariesDefaultEntryHolder.defaultEntry); } return glossaries_; } - - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> - internalGetMutableGlossaries() { - onChanged(); - ; + private com.google.protobuf.MapField + internalGetMutableGlossaries() { + onChanged();; if (glossaries_ == null) { - glossaries_ = - com.google.protobuf.MapField.newMapField(GlossariesDefaultEntryHolder.defaultEntry); + glossaries_ = com.google.protobuf.MapField.newMapField( + GlossariesDefaultEntryHolder.defaultEntry); } if (!glossaries_.isMutable()) { glossaries_ = glossaries_.copy(); @@ -2832,95 +2519,74 @@ public int getGlossariesCount() { return internalGetGlossaries().getMap().size(); } /** - * - * *
      * Optional. Glossaries to be applied for translation.
      * It's keyed by target language code.
      * 
* - * - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ + @java.lang.Override - public boolean containsGlossaries(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } + public boolean containsGlossaries( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } return internalGetGlossaries().getMap().containsKey(key); } - /** Use {@link #getGlossariesMap()} instead. */ + /** + * Use {@link #getGlossariesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated - public java.util.Map< - java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> - getGlossaries() { + public java.util.Map getGlossaries() { return getGlossariesMap(); } /** - * - * *
      * Optional. Glossaries to be applied for translation.
      * It's keyed by target language code.
      * 
* - * - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.Map< - java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> - getGlossariesMap() { + + public java.util.Map getGlossariesMap() { return internalGetGlossaries().getMap(); } /** - * - * *
      * Optional. Glossaries to be applied for translation.
      * It's keyed by target language code.
      * 
* - * - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossariesOrDefault( java.lang.String key, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig defaultValue) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map< - java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> - map = internalGetGlossaries().getMap(); + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetGlossaries().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Optional. Glossaries to be applied for translation.
      * It's keyed by target language code.
      * 
* - * - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossariesOrThrow( java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map< - java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> - map = internalGetGlossaries().getMap(); + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetGlossaries().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -2928,94 +2594,83 @@ public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossar } public Builder clearGlossaries() { - internalGetMutableGlossaries().getMutableMap().clear(); + internalGetMutableGlossaries().getMutableMap() + .clear(); return this; } /** - * - * *
      * Optional. Glossaries to be applied for translation.
      * It's keyed by target language code.
      * 
* - * - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder removeGlossaries(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableGlossaries().getMutableMap().remove(key); + + public Builder removeGlossaries( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableGlossaries().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map< - java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> - getMutableGlossaries() { + public java.util.Map + getMutableGlossaries() { return internalGetMutableGlossaries().getMutableMap(); } /** - * - * *
      * Optional. Glossaries to be applied for translation.
      * It's keyed by target language code.
      * 
* - * - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder putGlossaries( java.lang.String key, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig value) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - if (value == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableGlossaries().getMutableMap().put(key, value); + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableGlossaries().getMutableMap() + .put(key, value); return this; } /** - * - * *
      * Optional. Glossaries to be applied for translation.
      * It's keyed by target language code.
      * 
* - * - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ + public Builder putAllGlossaries( - java.util.Map< - java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> - values) { - internalGetMutableGlossaries().getMutableMap().putAll(values); + java.util.Map values) { + internalGetMutableGlossaries().getMutableMap() + .putAll(values); return this; } - 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() { - onChanged(); - ; + internalGetMutableLabels() { + onChanged();; 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(); @@ -3027,8 +2682,6 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Optional. The labels with user-defined metadata for the request.
      * Label keys and values can be no longer than 63 characters
@@ -3040,22 +2693,22 @@ public int getLabelsCount() {
      *
      * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
      */
+
     @java.lang.Override
-    public boolean containsLabels(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
+    public boolean containsLabels(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
       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. The labels with user-defined metadata for the request.
      * Label keys and values can be no longer than 63 characters
@@ -3068,12 +2721,11 @@ public java.util.Map getLabels() {
      * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
+
     public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      * Label keys and values can be no longer than 63 characters
@@ -3086,17 +2738,16 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
+
     public java.lang.String getLabelsOrDefault(
-        java.lang.String key, java.lang.String defaultValue) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      java.util.Map map = internalGetLabels().getMap();
+        java.lang.String key,
+        java.lang.String defaultValue) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      * Label keys and values can be no longer than 63 characters
@@ -3109,11 +2760,12 @@ public java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public java.lang.String getLabelsOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      java.util.Map map = internalGetLabels().getMap();
+
+    public java.lang.String getLabelsOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -3121,12 +2773,11 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
     }
 
     public Builder clearLabels() {
-      internalGetMutableLabels().getMutableMap().clear();
+      internalGetMutableLabels().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      * Label keys and values can be no longer than 63 characters
@@ -3138,21 +2789,23 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder removeLabels(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      internalGetMutableLabels().getMutableMap().remove(key);
+
+    public Builder removeLabels(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      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() {
       return internalGetMutableLabels().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      * Label keys and values can be no longer than 63 characters
@@ -3164,19 +2817,16 @@ public java.util.Map getMutableLabels() {
      *
      * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putLabels(java.lang.String key, java.lang.String value) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      if (value == null) {
-        throw new java.lang.NullPointerException();
-      }
-      internalGetMutableLabels().getMutableMap().put(key, value);
+    public Builder putLabels(
+        java.lang.String key,
+        java.lang.String value) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      if (value == null) { throw new java.lang.NullPointerException(); }
+      internalGetMutableLabels().getMutableMap()
+          .put(key, value);
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      * Label keys and values can be no longer than 63 characters
@@ -3188,13 +2838,16 @@ public Builder putLabels(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> labels = 9 [(.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);
       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);
     }
 
@@ -3204,13 +2857,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.BatchTranslateTextRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.BatchTranslateTextRequest)
-  private static final com.google.cloud.translate.v3beta1.BatchTranslateTextRequest
-      DEFAULT_INSTANCE;
-
+  private static final com.google.cloud.translate.v3beta1.BatchTranslateTextRequest DEFAULT_INSTANCE;
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.BatchTranslateTextRequest();
   }
@@ -3219,16 +2871,16 @@ public static com.google.cloud.translate.v3beta1.BatchTranslateTextRequest getDe
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public BatchTranslateTextRequest parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new BatchTranslateTextRequest(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public BatchTranslateTextRequest parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new BatchTranslateTextRequest(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -3243,4 +2895,6 @@ public com.google.protobuf.Parser getParserForType()
   public com.google.cloud.translate.v3beta1.BatchTranslateTextRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateTextRequestOrBuilder.java b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateTextRequestOrBuilder.java
similarity index 73%
rename from proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateTextRequestOrBuilder.java
rename to owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateTextRequestOrBuilder.java
index dbbe3fc5..7a1c7213 100644
--- a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateTextRequestOrBuilder.java
+++ b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateTextRequestOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2020 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/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
-public interface BatchTranslateTextRequestOrBuilder
-    extends
+public interface BatchTranslateTextRequestOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.BatchTranslateTextRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. Location to make a call. Must refer to a caller's project.
    * Format: `projects/{project-number-or-id}/locations/{location-id}`.
@@ -35,16 +17,11 @@ public interface BatchTranslateTextRequestOrBuilder
    * error is returned.
    * 
* - * - * 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. Location to make a call. Must refer to a caller's project.
    * Format: `projects/{project-number-or-id}/locations/{location-id}`.
@@ -54,97 +31,74 @@ public interface BatchTranslateTextRequestOrBuilder
    * error is returned.
    * 
* - * - * 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(); /** - * - * *
    * Required. Source language code.
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The sourceLanguageCode. */ java.lang.String getSourceLanguageCode(); /** - * - * *
    * Required. Source language code.
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for sourceLanguageCode. */ - com.google.protobuf.ByteString getSourceLanguageCodeBytes(); + com.google.protobuf.ByteString + getSourceLanguageCodeBytes(); /** - * - * *
    * Required. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @return A list containing the targetLanguageCodes. */ - java.util.List getTargetLanguageCodesList(); + java.util.List + getTargetLanguageCodesList(); /** - * - * *
    * Required. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The count of targetLanguageCodes. */ int getTargetLanguageCodesCount(); /** - * - * *
    * Required. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param index The index of the element to return. * @return The targetLanguageCodes at the given index. */ java.lang.String getTargetLanguageCodes(int index); /** - * - * *
    * Required. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param index The index of the value to return. * @return The bytes of the targetLanguageCodes at the given index. */ - com.google.protobuf.ByteString getTargetLanguageCodesBytes(int index); + com.google.protobuf.ByteString + getTargetLanguageCodesBytes(int index); /** - * - * *
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is model name. Value can be a built-in general model,
@@ -162,8 +116,6 @@ public interface BatchTranslateTextRequestOrBuilder
    */
   int getModelsCount();
   /**
-   *
-   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is model name. Value can be a built-in general model,
@@ -179,13 +131,15 @@ public interface BatchTranslateTextRequestOrBuilder
    *
    * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
-  boolean containsModels(java.lang.String key);
-  /** Use {@link #getModelsMap()} instead. */
+  boolean containsModels(
+      java.lang.String key);
+  /**
+   * Use {@link #getModelsMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getModels();
+  java.util.Map
+  getModels();
   /**
-   *
-   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is model name. Value can be a built-in general model,
@@ -201,10 +155,9 @@ public interface BatchTranslateTextRequestOrBuilder
    *
    * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.util.Map getModelsMap();
+  java.util.Map
+  getModelsMap();
   /**
-   *
-   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is model name. Value can be a built-in general model,
@@ -220,10 +173,11 @@ public interface BatchTranslateTextRequestOrBuilder
    *
    * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.lang.String getModelsOrDefault(java.lang.String key, java.lang.String defaultValue);
+
+  java.lang.String getModelsOrDefault(
+      java.lang.String key,
+      java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is model name. Value can be a built-in general model,
@@ -239,11 +193,11 @@ public interface BatchTranslateTextRequestOrBuilder
    *
    * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.lang.String getModelsOrThrow(java.lang.String key);
+
+  java.lang.String getModelsOrThrow(
+      java.lang.String key);
 
   /**
-   *
-   *
    * 
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -251,14 +205,11 @@ public interface BatchTranslateTextRequestOrBuilder
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ - java.util.List getInputConfigsList(); + java.util.List + getInputConfigsList(); /** - * - * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -266,14 +217,10 @@ public interface BatchTranslateTextRequestOrBuilder
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.translate.v3beta1.InputConfig getInputConfigs(int index); /** - * - * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -281,14 +228,10 @@ public interface BatchTranslateTextRequestOrBuilder
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ int getInputConfigsCount(); /** - * - * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -296,15 +239,11 @@ public interface BatchTranslateTextRequestOrBuilder
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ - java.util.List + java.util.List getInputConfigsOrBuilderList(); /** - * - * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -312,136 +251,104 @@ public interface BatchTranslateTextRequestOrBuilder
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ - com.google.cloud.translate.v3beta1.InputConfigOrBuilder getInputConfigsOrBuilder(int index); + com.google.cloud.translate.v3beta1.InputConfigOrBuilder getInputConfigsOrBuilder( + int index); /** - * - * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * - * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the outputConfig field is set. */ boolean hasOutputConfig(); /** - * - * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * - * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; * @return The outputConfig. */ com.google.cloud.translate.v3beta1.OutputConfig getOutputConfig(); /** - * - * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * - * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.translate.v3beta1.OutputConfigOrBuilder getOutputConfigOrBuilder(); /** - * - * *
    * Optional. Glossaries to be applied for translation.
    * It's keyed by target language code.
    * 
* - * - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ int getGlossariesCount(); /** - * - * *
    * Optional. Glossaries to be applied for translation.
    * It's keyed by target language code.
    * 
* - * - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsGlossaries( + java.lang.String key); + /** + * Use {@link #getGlossariesMap()} instead. */ - boolean containsGlossaries(java.lang.String key); - /** Use {@link #getGlossariesMap()} instead. */ @java.lang.Deprecated java.util.Map - getGlossaries(); + getGlossaries(); /** - * - * *
    * Optional. Glossaries to be applied for translation.
    * It's keyed by target language code.
    * 
* - * - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ java.util.Map - getGlossariesMap(); + getGlossariesMap(); /** - * - * *
    * Optional. Glossaries to be applied for translation.
    * It's keyed by target language code.
    * 
* - * - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossariesOrDefault( java.lang.String key, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig defaultValue); /** - * - * *
    * Optional. Glossaries to be applied for translation.
    * It's keyed by target language code.
    * 
* - * - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossariesOrThrow( java.lang.String key); /** - * - * *
    * Optional. The labels with user-defined metadata for the request.
    * Label keys and values can be no longer than 63 characters
@@ -455,8 +362,6 @@ com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossariesOrTh
    */
   int getLabelsCount();
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    * Label keys and values can be no longer than 63 characters
@@ -468,13 +373,15 @@ com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossariesOrTh
    *
    * map<string, string> labels = 9 [(.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. The labels with user-defined metadata for the request.
    * Label keys and values can be no longer than 63 characters
@@ -486,10 +393,9 @@ com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossariesOrTh
    *
    * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.util.Map getLabelsMap();
+  java.util.Map
+  getLabelsMap();
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    * Label keys and values can be no longer than 63 characters
@@ -501,10 +407,11 @@ com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossariesOrTh
    *
    * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue);
+
+  java.lang.String getLabelsOrDefault(
+      java.lang.String key,
+      java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    * Label keys and values can be no longer than 63 characters
@@ -516,5 +423,7 @@ com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossariesOrTh
    *
    * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.lang.String getLabelsOrThrow(java.lang.String key);
+
+  java.lang.String getLabelsOrThrow(
+      java.lang.String key);
 }
diff --git a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryMetadata.java b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryMetadata.java
similarity index 71%
rename from proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryMetadata.java
rename to owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryMetadata.java
index a5419c1c..295b1e32 100644
--- a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryMetadata.java
+++ b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryMetadata.java
@@ -1,26 +1,9 @@
-/*
- * Copyright 2020 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/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
 /**
- *
- *
  * 
  * Stored in the
  * [google.longrunning.Operation.metadata][google.longrunning.Operation.metadata]
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.translation.v3beta1.CreateGlossaryMetadata}
  */
-public final class CreateGlossaryMetadata extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class CreateGlossaryMetadata extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.CreateGlossaryMetadata)
     CreateGlossaryMetadataOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use CreateGlossaryMetadata.newBuilder() to construct.
   private CreateGlossaryMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private CreateGlossaryMetadata() {
     name_ = "";
     state_ = 0;
@@ -46,15 +28,16 @@ private CreateGlossaryMetadata() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new CreateGlossaryMetadata();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private CreateGlossaryMetadata(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -73,82 +56,73 @@ private CreateGlossaryMetadata(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
-            }
-          case 16:
-            {
-              int rawValue = input.readEnum();
+            name_ = s;
+            break;
+          }
+          case 16: {
+            int rawValue = input.readEnum();
 
-              state_ = rawValue;
-              break;
+            state_ = rawValue;
+            break;
+          }
+          case 26: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (submitTime_ != null) {
+              subBuilder = submitTime_.toBuilder();
             }
-          case 26:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (submitTime_ != null) {
-                subBuilder = submitTime_.toBuilder();
-              }
-              submitTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(submitTime_);
-                submitTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+            submitTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(submitTime_);
+              submitTime_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.translate.v3beta1.TranslationServiceProto
-        .internal_static_google_cloud_translation_v3beta1_CreateGlossaryMetadata_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_CreateGlossaryMetadata_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.translate.v3beta1.TranslationServiceProto
-        .internal_static_google_cloud_translation_v3beta1_CreateGlossaryMetadata_fieldAccessorTable
+    return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_CreateGlossaryMetadata_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.class,
-            com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.Builder.class);
+            com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.class, com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * Enumerates the possible states that the creation request can be in.
    * 
* * Protobuf enum {@code google.cloud.translation.v3beta1.CreateGlossaryMetadata.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Invalid.
      * 
@@ -157,8 +131,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * Request is being processed.
      * 
@@ -167,8 +139,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ RUNNING(1), /** - * - * *
      * The glossary was successfully created.
      * 
@@ -177,8 +147,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ SUCCEEDED(2), /** - * - * *
      * Failed to create the glossary.
      * 
@@ -187,8 +155,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ FAILED(3), /** - * - * *
      * Request is in the process of being canceled after caller invoked
      * longrunning.Operations.CancelOperation on the request id.
@@ -198,8 +164,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     CANCELLING(4),
     /**
-     *
-     *
      * 
      * The glossary creation request was successfully canceled.
      * 
@@ -211,8 +175,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Invalid.
      * 
@@ -221,8 +183,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Request is being processed.
      * 
@@ -231,8 +191,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RUNNING_VALUE = 1; /** - * - * *
      * The glossary was successfully created.
      * 
@@ -241,8 +199,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SUCCEEDED_VALUE = 2; /** - * - * *
      * Failed to create the glossary.
      * 
@@ -251,8 +207,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FAILED_VALUE = 3; /** - * - * *
      * Request is in the process of being canceled after caller invoked
      * longrunning.Operations.CancelOperation on the request id.
@@ -262,8 +216,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int CANCELLING_VALUE = 4;
     /**
-     *
-     *
      * 
      * The glossary creation request was successfully canceled.
      * 
@@ -272,6 +224,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CANCELLED_VALUE = 5; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -296,57 +249,52 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: - return STATE_UNSPECIFIED; - case 1: - return RUNNING; - case 2: - return SUCCEEDED; - case 3: - return FAILED; - case 4: - return CANCELLING; - case 5: - return CANCELLED; - default: - return null; + case 0: return STATE_UNSPECIFIED; + case 1: return RUNNING; + case 2: return SUCCEEDED; + case 3: return FAILED; + case 4: return CANCELLING; + case 5: return CANCELLED; + 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< + State> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.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.cloud.translate.v3beta1.CreateGlossaryMetadata.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); - public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State 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; @@ -366,14 +314,11 @@ private State(int value) { public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * The name of the glossary that is being created.
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -382,29 +327,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 name of the glossary that is being created.
    * 
* * 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 { @@ -415,52 +360,38 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int STATE_FIELD_NUMBER = 2; private int state_; /** - * - * *
    * The current state of the glossary creation operation.
    * 
* * .google.cloud.translation.v3beta1.CreateGlossaryMetadata.State state = 2; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * The current state of the glossary creation operation.
    * 
* * .google.cloud.translation.v3beta1.CreateGlossaryMetadata.State state = 2; - * * @return The state. */ - @java.lang.Override - public com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.State getState() { + @java.lang.Override public com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.State result = - com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.State.valueOf(state_); - return result == null - ? com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.State.UNRECOGNIZED - : result; + com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.State result = com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.State.valueOf(state_); + return result == null ? com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.State.UNRECOGNIZED : result; } public static final int SUBMIT_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp submitTime_; /** - * - * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 3; - * * @return Whether the submitTime field is set. */ @java.lang.Override @@ -468,14 +399,11 @@ public boolean hasSubmitTime() { return submitTime_ != null; } /** - * - * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 3; - * * @return The submitTime. */ @java.lang.Override @@ -483,8 +411,6 @@ public com.google.protobuf.Timestamp getSubmitTime() { return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } /** - * - * *
    * The time when the operation was submitted to the server.
    * 
@@ -497,7 +423,6 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -509,13 +434,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + 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_); } - if (state_ - != com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.State.STATE_UNSPECIFIED - .getNumber()) { + if (state_ != com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(2, state_); } if (submitTime_ != null) { @@ -530,16 +454,16 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (state_ - != com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.State.STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, state_); + if (state_ != com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, state_); } if (submitTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSubmitTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getSubmitTime()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -549,19 +473,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.cloud.translate.v3beta1.CreateGlossaryMetadata)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.CreateGlossaryMetadata other = - (com.google.cloud.translate.v3beta1.CreateGlossaryMetadata) obj; + com.google.cloud.translate.v3beta1.CreateGlossaryMetadata other = (com.google.cloud.translate.v3beta1.CreateGlossaryMetadata) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (state_ != other.state_) return false; if (hasSubmitTime() != other.hasSubmitTime()) return false; if (hasSubmitTime()) { - if (!getSubmitTime().equals(other.getSubmitTime())) return false; + if (!getSubmitTime() + .equals(other.getSubmitTime())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -588,104 +513,96 @@ public int hashCode() { } public static com.google.cloud.translate.v3beta1.CreateGlossaryMetadata 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.cloud.translate.v3beta1.CreateGlossaryMetadata 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.cloud.translate.v3beta1.CreateGlossaryMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.CreateGlossaryMetadata 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.cloud.translate.v3beta1.CreateGlossaryMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.CreateGlossaryMetadata 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.cloud.translate.v3beta1.CreateGlossaryMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.CreateGlossaryMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.CreateGlossaryMetadata 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.cloud.translate.v3beta1.CreateGlossaryMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.CreateGlossaryMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.CreateGlossaryMetadata 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.cloud.translate.v3beta1.CreateGlossaryMetadata 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.cloud.translate.v3beta1.CreateGlossaryMetadata 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.cloud.translate.v3beta1.CreateGlossaryMetadata prototype) { + public static Builder newBuilder(com.google.cloud.translate.v3beta1.CreateGlossaryMetadata 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; } /** - * - * *
    * Stored in the
    * [google.longrunning.Operation.metadata][google.longrunning.Operation.metadata]
@@ -694,23 +611,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.translation.v3beta1.CreateGlossaryMetadata}
    */
-  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.translation.v3beta1.CreateGlossaryMetadata)
       com.google.cloud.translate.v3beta1.CreateGlossaryMetadataOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3beta1_CreateGlossaryMetadata_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_CreateGlossaryMetadata_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3beta1_CreateGlossaryMetadata_fieldAccessorTable
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_CreateGlossaryMetadata_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.class,
-              com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.Builder.class);
+              com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.class, com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.Builder.class);
     }
 
     // Construct using com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.newBuilder()
@@ -718,15 +633,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -744,9 +660,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3beta1_CreateGlossaryMetadata_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_CreateGlossaryMetadata_descriptor;
     }
 
     @java.lang.Override
@@ -765,8 +681,7 @@ public com.google.cloud.translate.v3beta1.CreateGlossaryMetadata build() {
 
     @java.lang.Override
     public com.google.cloud.translate.v3beta1.CreateGlossaryMetadata buildPartial() {
-      com.google.cloud.translate.v3beta1.CreateGlossaryMetadata result =
-          new com.google.cloud.translate.v3beta1.CreateGlossaryMetadata(this);
+      com.google.cloud.translate.v3beta1.CreateGlossaryMetadata result = new com.google.cloud.translate.v3beta1.CreateGlossaryMetadata(this);
       result.name_ = name_;
       result.state_ = state_;
       if (submitTimeBuilder_ == null) {
@@ -782,39 +697,38 @@ public com.google.cloud.translate.v3beta1.CreateGlossaryMetadata 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.cloud.translate.v3beta1.CreateGlossaryMetadata) {
-        return mergeFrom((com.google.cloud.translate.v3beta1.CreateGlossaryMetadata) other);
+        return mergeFrom((com.google.cloud.translate.v3beta1.CreateGlossaryMetadata)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -822,8 +736,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.translate.v3beta1.CreateGlossaryMetadata other) {
-      if (other == com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -853,8 +766,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.translate.v3beta1.CreateGlossaryMetadata) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.translate.v3beta1.CreateGlossaryMetadata) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -866,20 +778,18 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * The name of the glossary that is being created.
      * 
* * 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; @@ -888,21 +798,20 @@ public java.lang.String getName() { } } /** - * - * *
      * The name of the glossary that is being created.
      * 
* * 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 { @@ -910,61 +819,54 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The name of the glossary that is being created.
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * The name of the glossary that is being created.
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * The name of the glossary that is being created.
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -972,67 +874,51 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private int state_ = 0; /** - * - * *
      * The current state of the glossary creation operation.
      * 
* * .google.cloud.translation.v3beta1.CreateGlossaryMetadata.State state = 2; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * The current state of the glossary creation operation.
      * 
* * .google.cloud.translation.v3beta1.CreateGlossaryMetadata.State state = 2; - * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** - * - * *
      * The current state of the glossary creation operation.
      * 
* * .google.cloud.translation.v3beta1.CreateGlossaryMetadata.State state = 2; - * * @return The state. */ @java.lang.Override public com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.State result = - com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.State.valueOf(state_); - return result == null - ? com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.State.UNRECOGNIZED - : result; + com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.State result = com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.State.valueOf(state_); + return result == null ? com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.State.UNRECOGNIZED : result; } /** - * - * *
      * The current state of the glossary creation operation.
      * 
* * .google.cloud.translation.v3beta1.CreateGlossaryMetadata.State state = 2; - * * @param value The state to set. * @return This builder for chaining. */ @@ -1040,24 +926,21 @@ public Builder setState(com.google.cloud.translate.v3beta1.CreateGlossaryMetadat if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The current state of the glossary creation operation.
      * 
* * .google.cloud.translation.v3beta1.CreateGlossaryMetadata.State state = 2; - * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -1065,47 +948,34 @@ public Builder clearState() { private com.google.protobuf.Timestamp submitTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - submitTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> submitTimeBuilder_; /** - * - * *
      * The time when the operation was submitted to the server.
      * 
* * .google.protobuf.Timestamp submit_time = 3; - * * @return Whether the submitTime field is set. */ public boolean hasSubmitTime() { return submitTimeBuilder_ != null || submitTime_ != null; } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
* * .google.protobuf.Timestamp submit_time = 3; - * * @return The submitTime. */ public com.google.protobuf.Timestamp getSubmitTime() { if (submitTimeBuilder_ == null) { - return submitTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : submitTime_; + return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } else { return submitTimeBuilder_.getMessage(); } } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
@@ -1126,15 +996,14 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
* * .google.protobuf.Timestamp submit_time = 3; */ - public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setSubmitTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (submitTimeBuilder_ == null) { submitTime_ = builderForValue.build(); onChanged(); @@ -1145,8 +1014,6 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
@@ -1157,7 +1024,7 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { if (submitTimeBuilder_ == null) { if (submitTime_ != null) { submitTime_ = - com.google.protobuf.Timestamp.newBuilder(submitTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(submitTime_).mergeFrom(value).buildPartial(); } else { submitTime_ = value; } @@ -1169,8 +1036,6 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
@@ -1189,8 +1054,6 @@ public Builder clearSubmitTime() { return this; } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
@@ -1198,13 +1061,11 @@ public Builder clearSubmitTime() { * .google.protobuf.Timestamp submit_time = 3; */ public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder() { - + onChanged(); return getSubmitTimeFieldBuilder().getBuilder(); } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
@@ -1215,14 +1076,11 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { if (submitTimeBuilder_ != null) { return submitTimeBuilder_.getMessageOrBuilder(); } else { - return submitTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : submitTime_; + return submitTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
@@ -1230,24 +1088,21 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { * .google.protobuf.Timestamp submit_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> getSubmitTimeFieldBuilder() { if (submitTimeBuilder_ == null) { - submitTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getSubmitTime(), getParentForChildren(), isClean()); + submitTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getSubmitTime(), + getParentForChildren(), + isClean()); submitTime_ = null; } return submitTimeBuilder_; } - @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); } @@ -1257,12 +1112,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.CreateGlossaryMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.CreateGlossaryMetadata) private static final com.google.cloud.translate.v3beta1.CreateGlossaryMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.CreateGlossaryMetadata(); } @@ -1271,16 +1126,16 @@ public static com.google.cloud.translate.v3beta1.CreateGlossaryMetadata getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateGlossaryMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateGlossaryMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateGlossaryMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateGlossaryMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1295,4 +1150,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3beta1.CreateGlossaryMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryMetadataOrBuilder.java b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryMetadataOrBuilder.java similarity index 70% rename from proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryMetadataOrBuilder.java rename to owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryMetadataOrBuilder.java index 09cad5ad..e5de66c9 100644 --- a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryMetadataOrBuilder.java +++ b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryMetadataOrBuilder.java @@ -1,105 +1,70 @@ -/* - * Copyright 2020 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/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; -public interface CreateGlossaryMetadataOrBuilder - extends +public interface CreateGlossaryMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.CreateGlossaryMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The name of the glossary that is being created.
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The name of the glossary that is being created.
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * The current state of the glossary creation operation.
    * 
* * .google.cloud.translation.v3beta1.CreateGlossaryMetadata.State state = 2; - * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * The current state of the glossary creation operation.
    * 
* * .google.cloud.translation.v3beta1.CreateGlossaryMetadata.State state = 2; - * * @return The state. */ com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.State getState(); /** - * - * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 3; - * * @return Whether the submitTime field is set. */ boolean hasSubmitTime(); /** - * - * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 3; - * * @return The submitTime. */ com.google.protobuf.Timestamp getSubmitTime(); /** - * - * *
    * The time when the operation was submitted to the server.
    * 
diff --git a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryRequest.java b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryRequest.java similarity index 62% rename from proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryRequest.java rename to owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryRequest.java index a3cb92dc..9df2230e 100644 --- a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryRequest.java +++ b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 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/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; /** - * - * *
  * Request message for CreateGlossary.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.CreateGlossaryRequest} */ -public final class CreateGlossaryRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateGlossaryRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.CreateGlossaryRequest) CreateGlossaryRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateGlossaryRequest.newBuilder() to construct. private CreateGlossaryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateGlossaryRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateGlossaryRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CreateGlossaryRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,76 +53,65 @@ private CreateGlossaryRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; + parent_ = s; + break; + } + case 18: { + com.google.cloud.translate.v3beta1.Glossary.Builder subBuilder = null; + if (glossary_ != null) { + subBuilder = glossary_.toBuilder(); } - case 18: - { - com.google.cloud.translate.v3beta1.Glossary.Builder subBuilder = null; - if (glossary_ != null) { - subBuilder = glossary_.toBuilder(); - } - glossary_ = - input.readMessage( - com.google.cloud.translate.v3beta1.Glossary.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(glossary_); - glossary_ = subBuilder.buildPartial(); - } - - break; + glossary_ = input.readMessage(com.google.cloud.translate.v3beta1.Glossary.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(glossary_); + glossary_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_CreateGlossaryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_CreateGlossaryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_CreateGlossaryRequest_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_CreateGlossaryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.CreateGlossaryRequest.class, - com.google.cloud.translate.v3beta1.CreateGlossaryRequest.Builder.class); + com.google.cloud.translate.v3beta1.CreateGlossaryRequest.class, com.google.cloud.translate.v3beta1.CreateGlossaryRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The project name.
    * 
* - * - * 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 @@ -148,31 +120,29 @@ 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 project name.
    * 
* - * - * 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 { @@ -183,16 +153,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int GLOSSARY_FIELD_NUMBER = 2; private com.google.cloud.translate.v3beta1.Glossary glossary_; /** - * - * *
    * Required. The glossary to create.
    * 
* - * - * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the glossary field is set. */ @java.lang.Override @@ -200,34 +165,23 @@ public boolean hasGlossary() { return glossary_ != null; } /** - * - * *
    * Required. The glossary to create.
    * 
* - * - * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The glossary. */ @java.lang.Override public com.google.cloud.translate.v3beta1.Glossary getGlossary() { - return glossary_ == null - ? com.google.cloud.translate.v3beta1.Glossary.getDefaultInstance() - : glossary_; + return glossary_ == null ? com.google.cloud.translate.v3beta1.Glossary.getDefaultInstance() : glossary_; } /** - * - * *
    * Required. The glossary to create.
    * 
* - * - * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.translate.v3beta1.GlossaryOrBuilder getGlossaryOrBuilder() { @@ -235,7 +189,6 @@ public com.google.cloud.translate.v3beta1.GlossaryOrBuilder getGlossaryOrBuilder } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -247,8 +200,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + 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_); } if (glossary_ != null) { @@ -263,11 +217,12 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (glossary_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getGlossary()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getGlossary()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -277,18 +232,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.cloud.translate.v3beta1.CreateGlossaryRequest)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.CreateGlossaryRequest other = - (com.google.cloud.translate.v3beta1.CreateGlossaryRequest) obj; + com.google.cloud.translate.v3beta1.CreateGlossaryRequest other = (com.google.cloud.translate.v3beta1.CreateGlossaryRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasGlossary() != other.hasGlossary()) return false; if (hasGlossary()) { - if (!getGlossary().equals(other.getGlossary())) return false; + if (!getGlossary() + .equals(other.getGlossary())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -313,127 +269,117 @@ public int hashCode() { } public static com.google.cloud.translate.v3beta1.CreateGlossaryRequest 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.cloud.translate.v3beta1.CreateGlossaryRequest 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.cloud.translate.v3beta1.CreateGlossaryRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.CreateGlossaryRequest 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.cloud.translate.v3beta1.CreateGlossaryRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.CreateGlossaryRequest 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.cloud.translate.v3beta1.CreateGlossaryRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.CreateGlossaryRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.CreateGlossaryRequest 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.cloud.translate.v3beta1.CreateGlossaryRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.CreateGlossaryRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.CreateGlossaryRequest 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.cloud.translate.v3beta1.CreateGlossaryRequest 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.cloud.translate.v3beta1.CreateGlossaryRequest 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.cloud.translate.v3beta1.CreateGlossaryRequest prototype) { + public static Builder newBuilder(com.google.cloud.translate.v3beta1.CreateGlossaryRequest 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; } /** - * - * *
    * Request message for CreateGlossary.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.CreateGlossaryRequest} */ - 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.translation.v3beta1.CreateGlossaryRequest) com.google.cloud.translate.v3beta1.CreateGlossaryRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_CreateGlossaryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_CreateGlossaryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_CreateGlossaryRequest_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_CreateGlossaryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.CreateGlossaryRequest.class, - com.google.cloud.translate.v3beta1.CreateGlossaryRequest.Builder.class); + com.google.cloud.translate.v3beta1.CreateGlossaryRequest.class, com.google.cloud.translate.v3beta1.CreateGlossaryRequest.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.CreateGlossaryRequest.newBuilder() @@ -441,15 +387,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -465,9 +412,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_CreateGlossaryRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_CreateGlossaryRequest_descriptor; } @java.lang.Override @@ -486,8 +433,7 @@ public com.google.cloud.translate.v3beta1.CreateGlossaryRequest build() { @java.lang.Override public com.google.cloud.translate.v3beta1.CreateGlossaryRequest buildPartial() { - com.google.cloud.translate.v3beta1.CreateGlossaryRequest result = - new com.google.cloud.translate.v3beta1.CreateGlossaryRequest(this); + com.google.cloud.translate.v3beta1.CreateGlossaryRequest result = new com.google.cloud.translate.v3beta1.CreateGlossaryRequest(this); result.parent_ = parent_; if (glossaryBuilder_ == null) { result.glossary_ = glossary_; @@ -502,39 +448,38 @@ public com.google.cloud.translate.v3beta1.CreateGlossaryRequest 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.cloud.translate.v3beta1.CreateGlossaryRequest) { - return mergeFrom((com.google.cloud.translate.v3beta1.CreateGlossaryRequest) other); + return mergeFrom((com.google.cloud.translate.v3beta1.CreateGlossaryRequest)other); } else { super.mergeFrom(other); return this; @@ -542,8 +487,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.CreateGlossaryRequest other) { - if (other == com.google.cloud.translate.v3beta1.CreateGlossaryRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3beta1.CreateGlossaryRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -570,8 +514,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.translate.v3beta1.CreateGlossaryRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.translate.v3beta1.CreateGlossaryRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -583,22 +526,18 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The project name.
      * 
* - * - * 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,23 +546,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The project name.
      * 
* - * - * 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 { @@ -631,67 +567,54 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The project name.
      * 
* - * - * 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) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The project name.
      * 
* - * - * 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() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The project name.
      * 
* - * - * 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) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -699,58 +622,39 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.translate.v3beta1.Glossary glossary_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.Glossary, - com.google.cloud.translate.v3beta1.Glossary.Builder, - com.google.cloud.translate.v3beta1.GlossaryOrBuilder> - glossaryBuilder_; + com.google.cloud.translate.v3beta1.Glossary, com.google.cloud.translate.v3beta1.Glossary.Builder, com.google.cloud.translate.v3beta1.GlossaryOrBuilder> glossaryBuilder_; /** - * - * *
      * Required. The glossary to create.
      * 
* - * - * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the glossary field is set. */ public boolean hasGlossary() { return glossaryBuilder_ != null || glossary_ != null; } /** - * - * *
      * Required. The glossary to create.
      * 
* - * - * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The glossary. */ public com.google.cloud.translate.v3beta1.Glossary getGlossary() { if (glossaryBuilder_ == null) { - return glossary_ == null - ? com.google.cloud.translate.v3beta1.Glossary.getDefaultInstance() - : glossary_; + return glossary_ == null ? com.google.cloud.translate.v3beta1.Glossary.getDefaultInstance() : glossary_; } else { return glossaryBuilder_.getMessage(); } } /** - * - * *
      * Required. The glossary to create.
      * 
* - * - * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setGlossary(com.google.cloud.translate.v3beta1.Glossary value) { if (glossaryBuilder_ == null) { @@ -766,15 +670,11 @@ public Builder setGlossary(com.google.cloud.translate.v3beta1.Glossary value) { return this; } /** - * - * *
      * Required. The glossary to create.
      * 
* - * - * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setGlossary( com.google.cloud.translate.v3beta1.Glossary.Builder builderForValue) { @@ -788,23 +688,17 @@ public Builder setGlossary( return this; } /** - * - * *
      * Required. The glossary to create.
      * 
* - * - * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeGlossary(com.google.cloud.translate.v3beta1.Glossary value) { if (glossaryBuilder_ == null) { if (glossary_ != null) { glossary_ = - com.google.cloud.translate.v3beta1.Glossary.newBuilder(glossary_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.translate.v3beta1.Glossary.newBuilder(glossary_).mergeFrom(value).buildPartial(); } else { glossary_ = value; } @@ -816,15 +710,11 @@ public Builder mergeGlossary(com.google.cloud.translate.v3beta1.Glossary value) return this; } /** - * - * *
      * Required. The glossary to create.
      * 
* - * - * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearGlossary() { if (glossaryBuilder_ == null) { @@ -838,71 +728,55 @@ public Builder clearGlossary() { return this; } /** - * - * *
      * Required. The glossary to create.
      * 
* - * - * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.translate.v3beta1.Glossary.Builder getGlossaryBuilder() { - + onChanged(); return getGlossaryFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The glossary to create.
      * 
* - * - * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.translate.v3beta1.GlossaryOrBuilder getGlossaryOrBuilder() { if (glossaryBuilder_ != null) { return glossaryBuilder_.getMessageOrBuilder(); } else { - return glossary_ == null - ? com.google.cloud.translate.v3beta1.Glossary.getDefaultInstance() - : glossary_; + return glossary_ == null ? + com.google.cloud.translate.v3beta1.Glossary.getDefaultInstance() : glossary_; } } /** - * - * *
      * Required. The glossary to create.
      * 
* - * - * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.Glossary, - com.google.cloud.translate.v3beta1.Glossary.Builder, - com.google.cloud.translate.v3beta1.GlossaryOrBuilder> + com.google.cloud.translate.v3beta1.Glossary, com.google.cloud.translate.v3beta1.Glossary.Builder, com.google.cloud.translate.v3beta1.GlossaryOrBuilder> getGlossaryFieldBuilder() { if (glossaryBuilder_ == null) { - glossaryBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.Glossary, - com.google.cloud.translate.v3beta1.Glossary.Builder, - com.google.cloud.translate.v3beta1.GlossaryOrBuilder>( - getGlossary(), getParentForChildren(), isClean()); + glossaryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3beta1.Glossary, com.google.cloud.translate.v3beta1.Glossary.Builder, com.google.cloud.translate.v3beta1.GlossaryOrBuilder>( + getGlossary(), + getParentForChildren(), + isClean()); glossary_ = null; } return glossaryBuilder_; } - @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); } @@ -912,12 +786,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.CreateGlossaryRequest) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.CreateGlossaryRequest) private static final com.google.cloud.translate.v3beta1.CreateGlossaryRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.CreateGlossaryRequest(); } @@ -926,16 +800,16 @@ public static com.google.cloud.translate.v3beta1.CreateGlossaryRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateGlossaryRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateGlossaryRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateGlossaryRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateGlossaryRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -950,4 +824,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3beta1.CreateGlossaryRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryRequestOrBuilder.java b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryRequestOrBuilder.java new file mode 100644 index 00000000..148408b6 --- /dev/null +++ b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryRequestOrBuilder.java @@ -0,0 +1,56 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/translate/v3beta1/translation_service.proto + +package com.google.cloud.translate.v3beta1; + +public interface CreateGlossaryRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.CreateGlossaryRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The project name.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + java.lang.String getParent(); + /** + *
+   * Required. The project name.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + com.google.protobuf.ByteString + getParentBytes(); + + /** + *
+   * Required. The glossary to create.
+   * 
+ * + * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the glossary field is set. + */ + boolean hasGlossary(); + /** + *
+   * Required. The glossary to create.
+   * 
+ * + * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The glossary. + */ + com.google.cloud.translate.v3beta1.Glossary getGlossary(); + /** + *
+   * Required. The glossary to create.
+   * 
+ * + * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.translate.v3beta1.GlossaryOrBuilder getGlossaryOrBuilder(); +} diff --git a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryMetadata.java b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryMetadata.java similarity index 71% rename from proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryMetadata.java rename to owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryMetadata.java index 5a535324..c95a126a 100644 --- a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryMetadata.java +++ b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryMetadata.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 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/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; /** - * - * *
  * Stored in the
  * [google.longrunning.Operation.metadata][google.longrunning.Operation.metadata]
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.translation.v3beta1.DeleteGlossaryMetadata}
  */
-public final class DeleteGlossaryMetadata extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class DeleteGlossaryMetadata extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.DeleteGlossaryMetadata)
     DeleteGlossaryMetadataOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use DeleteGlossaryMetadata.newBuilder() to construct.
   private DeleteGlossaryMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private DeleteGlossaryMetadata() {
     name_ = "";
     state_ = 0;
@@ -46,15 +28,16 @@ private DeleteGlossaryMetadata() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new DeleteGlossaryMetadata();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private DeleteGlossaryMetadata(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -73,82 +56,73 @@ private DeleteGlossaryMetadata(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
-            }
-          case 16:
-            {
-              int rawValue = input.readEnum();
+            name_ = s;
+            break;
+          }
+          case 16: {
+            int rawValue = input.readEnum();
 
-              state_ = rawValue;
-              break;
+            state_ = rawValue;
+            break;
+          }
+          case 26: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (submitTime_ != null) {
+              subBuilder = submitTime_.toBuilder();
             }
-          case 26:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (submitTime_ != null) {
-                subBuilder = submitTime_.toBuilder();
-              }
-              submitTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(submitTime_);
-                submitTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+            submitTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(submitTime_);
+              submitTime_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.translate.v3beta1.TranslationServiceProto
-        .internal_static_google_cloud_translation_v3beta1_DeleteGlossaryMetadata_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DeleteGlossaryMetadata_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.translate.v3beta1.TranslationServiceProto
-        .internal_static_google_cloud_translation_v3beta1_DeleteGlossaryMetadata_fieldAccessorTable
+    return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DeleteGlossaryMetadata_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.class,
-            com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.Builder.class);
+            com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.class, com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * Enumerates the possible states that the creation request can be in.
    * 
* * Protobuf enum {@code google.cloud.translation.v3beta1.DeleteGlossaryMetadata.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Invalid.
      * 
@@ -157,8 +131,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * Request is being processed.
      * 
@@ -167,8 +139,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ RUNNING(1), /** - * - * *
      * The glossary was successfully deleted.
      * 
@@ -177,8 +147,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ SUCCEEDED(2), /** - * - * *
      * Failed to delete the glossary.
      * 
@@ -187,8 +155,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ FAILED(3), /** - * - * *
      * Request is in the process of being canceled after caller invoked
      * longrunning.Operations.CancelOperation on the request id.
@@ -198,8 +164,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     CANCELLING(4),
     /**
-     *
-     *
      * 
      * The glossary deletion request was successfully canceled.
      * 
@@ -211,8 +175,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Invalid.
      * 
@@ -221,8 +183,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Request is being processed.
      * 
@@ -231,8 +191,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RUNNING_VALUE = 1; /** - * - * *
      * The glossary was successfully deleted.
      * 
@@ -241,8 +199,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SUCCEEDED_VALUE = 2; /** - * - * *
      * Failed to delete the glossary.
      * 
@@ -251,8 +207,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FAILED_VALUE = 3; /** - * - * *
      * Request is in the process of being canceled after caller invoked
      * longrunning.Operations.CancelOperation on the request id.
@@ -262,8 +216,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int CANCELLING_VALUE = 4;
     /**
-     *
-     *
      * 
      * The glossary deletion request was successfully canceled.
      * 
@@ -272,6 +224,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CANCELLED_VALUE = 5; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -296,57 +249,52 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: - return STATE_UNSPECIFIED; - case 1: - return RUNNING; - case 2: - return SUCCEEDED; - case 3: - return FAILED; - case 4: - return CANCELLING; - case 5: - return CANCELLED; - default: - return null; + case 0: return STATE_UNSPECIFIED; + case 1: return RUNNING; + case 2: return SUCCEEDED; + case 3: return FAILED; + case 4: return CANCELLING; + case 5: return CANCELLED; + 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< + State> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.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.cloud.translate.v3beta1.DeleteGlossaryMetadata.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); - public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State 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; @@ -366,14 +314,11 @@ private State(int value) { public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * The name of the glossary that is being deleted.
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -382,29 +327,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 name of the glossary that is being deleted.
    * 
* * 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 { @@ -415,52 +360,38 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int STATE_FIELD_NUMBER = 2; private int state_; /** - * - * *
    * The current state of the glossary deletion operation.
    * 
* * .google.cloud.translation.v3beta1.DeleteGlossaryMetadata.State state = 2; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * The current state of the glossary deletion operation.
    * 
* * .google.cloud.translation.v3beta1.DeleteGlossaryMetadata.State state = 2; - * * @return The state. */ - @java.lang.Override - public com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.State getState() { + @java.lang.Override public com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.State result = - com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.State.valueOf(state_); - return result == null - ? com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.State.UNRECOGNIZED - : result; + com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.State result = com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.State.valueOf(state_); + return result == null ? com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.State.UNRECOGNIZED : result; } public static final int SUBMIT_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp submitTime_; /** - * - * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 3; - * * @return Whether the submitTime field is set. */ @java.lang.Override @@ -468,14 +399,11 @@ public boolean hasSubmitTime() { return submitTime_ != null; } /** - * - * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 3; - * * @return The submitTime. */ @java.lang.Override @@ -483,8 +411,6 @@ public com.google.protobuf.Timestamp getSubmitTime() { return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } /** - * - * *
    * The time when the operation was submitted to the server.
    * 
@@ -497,7 +423,6 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -509,13 +434,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + 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_); } - if (state_ - != com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.State.STATE_UNSPECIFIED - .getNumber()) { + if (state_ != com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(2, state_); } if (submitTime_ != null) { @@ -530,16 +454,16 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (state_ - != com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.State.STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, state_); + if (state_ != com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, state_); } if (submitTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSubmitTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getSubmitTime()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -549,19 +473,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.cloud.translate.v3beta1.DeleteGlossaryMetadata)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata other = - (com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata) obj; + com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata other = (com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (state_ != other.state_) return false; if (hasSubmitTime() != other.hasSubmitTime()) return false; if (hasSubmitTime()) { - if (!getSubmitTime().equals(other.getSubmitTime())) return false; + if (!getSubmitTime() + .equals(other.getSubmitTime())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -588,104 +513,96 @@ public int hashCode() { } public static com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata 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.cloud.translate.v3beta1.DeleteGlossaryMetadata 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.cloud.translate.v3beta1.DeleteGlossaryMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata 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.cloud.translate.v3beta1.DeleteGlossaryMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata 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.cloud.translate.v3beta1.DeleteGlossaryMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata 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.cloud.translate.v3beta1.DeleteGlossaryMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata 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.cloud.translate.v3beta1.DeleteGlossaryMetadata 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.cloud.translate.v3beta1.DeleteGlossaryMetadata 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.cloud.translate.v3beta1.DeleteGlossaryMetadata prototype) { + public static Builder newBuilder(com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata 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; } /** - * - * *
    * Stored in the
    * [google.longrunning.Operation.metadata][google.longrunning.Operation.metadata]
@@ -694,23 +611,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.translation.v3beta1.DeleteGlossaryMetadata}
    */
-  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.translation.v3beta1.DeleteGlossaryMetadata)
       com.google.cloud.translate.v3beta1.DeleteGlossaryMetadataOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3beta1_DeleteGlossaryMetadata_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DeleteGlossaryMetadata_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3beta1_DeleteGlossaryMetadata_fieldAccessorTable
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DeleteGlossaryMetadata_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.class,
-              com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.Builder.class);
+              com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.class, com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.Builder.class);
     }
 
     // Construct using com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.newBuilder()
@@ -718,15 +633,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -744,9 +660,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3beta1_DeleteGlossaryMetadata_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DeleteGlossaryMetadata_descriptor;
     }
 
     @java.lang.Override
@@ -765,8 +681,7 @@ public com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata build() {
 
     @java.lang.Override
     public com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata buildPartial() {
-      com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata result =
-          new com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata(this);
+      com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata result = new com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata(this);
       result.name_ = name_;
       result.state_ = state_;
       if (submitTimeBuilder_ == null) {
@@ -782,39 +697,38 @@ public com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata 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.cloud.translate.v3beta1.DeleteGlossaryMetadata) {
-        return mergeFrom((com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata) other);
+        return mergeFrom((com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -822,8 +736,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata other) {
-      if (other == com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -853,8 +766,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -866,20 +778,18 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * The name of the glossary that is being deleted.
      * 
* * 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; @@ -888,21 +798,20 @@ public java.lang.String getName() { } } /** - * - * *
      * The name of the glossary that is being deleted.
      * 
* * 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 { @@ -910,61 +819,54 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The name of the glossary that is being deleted.
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * The name of the glossary that is being deleted.
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * The name of the glossary that is being deleted.
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -972,67 +874,51 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private int state_ = 0; /** - * - * *
      * The current state of the glossary deletion operation.
      * 
* * .google.cloud.translation.v3beta1.DeleteGlossaryMetadata.State state = 2; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * The current state of the glossary deletion operation.
      * 
* * .google.cloud.translation.v3beta1.DeleteGlossaryMetadata.State state = 2; - * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** - * - * *
      * The current state of the glossary deletion operation.
      * 
* * .google.cloud.translation.v3beta1.DeleteGlossaryMetadata.State state = 2; - * * @return The state. */ @java.lang.Override public com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.State result = - com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.State.valueOf(state_); - return result == null - ? com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.State.UNRECOGNIZED - : result; + com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.State result = com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.State.valueOf(state_); + return result == null ? com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.State.UNRECOGNIZED : result; } /** - * - * *
      * The current state of the glossary deletion operation.
      * 
* * .google.cloud.translation.v3beta1.DeleteGlossaryMetadata.State state = 2; - * * @param value The state to set. * @return This builder for chaining. */ @@ -1040,24 +926,21 @@ public Builder setState(com.google.cloud.translate.v3beta1.DeleteGlossaryMetadat if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The current state of the glossary deletion operation.
      * 
* * .google.cloud.translation.v3beta1.DeleteGlossaryMetadata.State state = 2; - * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -1065,47 +948,34 @@ public Builder clearState() { private com.google.protobuf.Timestamp submitTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - submitTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> submitTimeBuilder_; /** - * - * *
      * The time when the operation was submitted to the server.
      * 
* * .google.protobuf.Timestamp submit_time = 3; - * * @return Whether the submitTime field is set. */ public boolean hasSubmitTime() { return submitTimeBuilder_ != null || submitTime_ != null; } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
* * .google.protobuf.Timestamp submit_time = 3; - * * @return The submitTime. */ public com.google.protobuf.Timestamp getSubmitTime() { if (submitTimeBuilder_ == null) { - return submitTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : submitTime_; + return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } else { return submitTimeBuilder_.getMessage(); } } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
@@ -1126,15 +996,14 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
* * .google.protobuf.Timestamp submit_time = 3; */ - public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setSubmitTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (submitTimeBuilder_ == null) { submitTime_ = builderForValue.build(); onChanged(); @@ -1145,8 +1014,6 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
@@ -1157,7 +1024,7 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { if (submitTimeBuilder_ == null) { if (submitTime_ != null) { submitTime_ = - com.google.protobuf.Timestamp.newBuilder(submitTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(submitTime_).mergeFrom(value).buildPartial(); } else { submitTime_ = value; } @@ -1169,8 +1036,6 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
@@ -1189,8 +1054,6 @@ public Builder clearSubmitTime() { return this; } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
@@ -1198,13 +1061,11 @@ public Builder clearSubmitTime() { * .google.protobuf.Timestamp submit_time = 3; */ public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder() { - + onChanged(); return getSubmitTimeFieldBuilder().getBuilder(); } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
@@ -1215,14 +1076,11 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { if (submitTimeBuilder_ != null) { return submitTimeBuilder_.getMessageOrBuilder(); } else { - return submitTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : submitTime_; + return submitTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
@@ -1230,24 +1088,21 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { * .google.protobuf.Timestamp submit_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> getSubmitTimeFieldBuilder() { if (submitTimeBuilder_ == null) { - submitTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getSubmitTime(), getParentForChildren(), isClean()); + submitTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getSubmitTime(), + getParentForChildren(), + isClean()); submitTime_ = null; } return submitTimeBuilder_; } - @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); } @@ -1257,12 +1112,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.DeleteGlossaryMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.DeleteGlossaryMetadata) private static final com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata(); } @@ -1271,16 +1126,16 @@ public static com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteGlossaryMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteGlossaryMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteGlossaryMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteGlossaryMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1295,4 +1150,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryMetadataOrBuilder.java b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryMetadataOrBuilder.java similarity index 70% rename from proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryMetadataOrBuilder.java rename to owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryMetadataOrBuilder.java index d2eb5c4c..c5b1c95f 100644 --- a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryMetadataOrBuilder.java +++ b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryMetadataOrBuilder.java @@ -1,105 +1,70 @@ -/* - * Copyright 2020 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/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; -public interface DeleteGlossaryMetadataOrBuilder - extends +public interface DeleteGlossaryMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.DeleteGlossaryMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The name of the glossary that is being deleted.
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The name of the glossary that is being deleted.
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * The current state of the glossary deletion operation.
    * 
* * .google.cloud.translation.v3beta1.DeleteGlossaryMetadata.State state = 2; - * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * The current state of the glossary deletion operation.
    * 
* * .google.cloud.translation.v3beta1.DeleteGlossaryMetadata.State state = 2; - * * @return The state. */ com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.State getState(); /** - * - * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 3; - * * @return Whether the submitTime field is set. */ boolean hasSubmitTime(); /** - * - * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 3; - * * @return The submitTime. */ com.google.protobuf.Timestamp getSubmitTime(); /** - * - * *
    * The time when the operation was submitted to the server.
    * 
diff --git a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryRequest.java b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryRequest.java similarity index 65% rename from proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryRequest.java rename to owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryRequest.java index 3c796061..a891d508 100644 --- a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryRequest.java +++ b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 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/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; /** - * - * *
  * Request message for DeleteGlossary.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.DeleteGlossaryRequest} */ -public final class DeleteGlossaryRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteGlossaryRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.DeleteGlossaryRequest) DeleteGlossaryRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteGlossaryRequest.newBuilder() to construct. private DeleteGlossaryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteGlossaryRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteGlossaryRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DeleteGlossaryRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,60 +53,52 @@ private DeleteGlossaryRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_DeleteGlossaryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DeleteGlossaryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_DeleteGlossaryRequest_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DeleteGlossaryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.DeleteGlossaryRequest.class, - com.google.cloud.translate.v3beta1.DeleteGlossaryRequest.Builder.class); + com.google.cloud.translate.v3beta1.DeleteGlossaryRequest.class, com.google.cloud.translate.v3beta1.DeleteGlossaryRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The name of the glossary to delete.
    * 
* - * - * 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 @@ -132,31 +107,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; } } /** - * - * *
    * Required. The name of the glossary to delete.
    * 
* - * - * 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 { @@ -165,7 +138,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -177,8 +149,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + 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_); } unknownFields.writeTo(output); @@ -190,7 +163,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } size += unknownFields.getSerializedSize(); @@ -201,15 +174,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.cloud.translate.v3beta1.DeleteGlossaryRequest)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.DeleteGlossaryRequest other = - (com.google.cloud.translate.v3beta1.DeleteGlossaryRequest) obj; + com.google.cloud.translate.v3beta1.DeleteGlossaryRequest other = (com.google.cloud.translate.v3beta1.DeleteGlossaryRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -229,127 +202,117 @@ public int hashCode() { } public static com.google.cloud.translate.v3beta1.DeleteGlossaryRequest 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.cloud.translate.v3beta1.DeleteGlossaryRequest 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.cloud.translate.v3beta1.DeleteGlossaryRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.DeleteGlossaryRequest 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.cloud.translate.v3beta1.DeleteGlossaryRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.DeleteGlossaryRequest 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.cloud.translate.v3beta1.DeleteGlossaryRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.DeleteGlossaryRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.DeleteGlossaryRequest 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.cloud.translate.v3beta1.DeleteGlossaryRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.DeleteGlossaryRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.DeleteGlossaryRequest 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.cloud.translate.v3beta1.DeleteGlossaryRequest 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.cloud.translate.v3beta1.DeleteGlossaryRequest 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.cloud.translate.v3beta1.DeleteGlossaryRequest prototype) { + public static Builder newBuilder(com.google.cloud.translate.v3beta1.DeleteGlossaryRequest 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; } /** - * - * *
    * Request message for DeleteGlossary.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.DeleteGlossaryRequest} */ - 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.translation.v3beta1.DeleteGlossaryRequest) com.google.cloud.translate.v3beta1.DeleteGlossaryRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_DeleteGlossaryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DeleteGlossaryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_DeleteGlossaryRequest_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DeleteGlossaryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.DeleteGlossaryRequest.class, - com.google.cloud.translate.v3beta1.DeleteGlossaryRequest.Builder.class); + com.google.cloud.translate.v3beta1.DeleteGlossaryRequest.class, com.google.cloud.translate.v3beta1.DeleteGlossaryRequest.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.DeleteGlossaryRequest.newBuilder() @@ -357,15 +320,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -375,9 +339,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_DeleteGlossaryRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DeleteGlossaryRequest_descriptor; } @java.lang.Override @@ -396,8 +360,7 @@ public com.google.cloud.translate.v3beta1.DeleteGlossaryRequest build() { @java.lang.Override public com.google.cloud.translate.v3beta1.DeleteGlossaryRequest buildPartial() { - com.google.cloud.translate.v3beta1.DeleteGlossaryRequest result = - new com.google.cloud.translate.v3beta1.DeleteGlossaryRequest(this); + com.google.cloud.translate.v3beta1.DeleteGlossaryRequest result = new com.google.cloud.translate.v3beta1.DeleteGlossaryRequest(this); result.name_ = name_; onBuilt(); return result; @@ -407,39 +370,38 @@ public com.google.cloud.translate.v3beta1.DeleteGlossaryRequest 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.cloud.translate.v3beta1.DeleteGlossaryRequest) { - return mergeFrom((com.google.cloud.translate.v3beta1.DeleteGlossaryRequest) other); + return mergeFrom((com.google.cloud.translate.v3beta1.DeleteGlossaryRequest)other); } else { super.mergeFrom(other); return this; @@ -447,8 +409,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.DeleteGlossaryRequest other) { - if (other == com.google.cloud.translate.v3beta1.DeleteGlossaryRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3beta1.DeleteGlossaryRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -472,8 +433,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.translate.v3beta1.DeleteGlossaryRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.translate.v3beta1.DeleteGlossaryRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -485,22 +445,18 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the glossary to delete.
      * 
* - * - * 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; @@ -509,23 +465,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the glossary to delete.
      * 
* - * - * 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 { @@ -533,74 +486,61 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the glossary to delete.
      * 
* - * - * 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) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The name of the glossary to delete.
      * 
* - * - * 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() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The name of the glossary to delete.
      * 
* - * - * 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) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; 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); } @@ -610,12 +550,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.DeleteGlossaryRequest) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.DeleteGlossaryRequest) private static final com.google.cloud.translate.v3beta1.DeleteGlossaryRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.DeleteGlossaryRequest(); } @@ -624,16 +564,16 @@ public static com.google.cloud.translate.v3beta1.DeleteGlossaryRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteGlossaryRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteGlossaryRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteGlossaryRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteGlossaryRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -648,4 +588,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3beta1.DeleteGlossaryRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryRequestOrBuilder.java b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryRequestOrBuilder.java new file mode 100644 index 00000000..02857610 --- /dev/null +++ b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/translate/v3beta1/translation_service.proto + +package com.google.cloud.translate.v3beta1; + +public interface DeleteGlossaryRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.DeleteGlossaryRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the glossary to delete.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The name of the glossary to delete.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryResponse.java b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryResponse.java similarity index 72% rename from proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryResponse.java rename to owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryResponse.java index 09f53096..5776cd11 100644 --- a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryResponse.java +++ b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryResponse.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 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/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; /** - * - * *
  * Stored in the
  * [google.longrunning.Operation.response][google.longrunning.Operation.response]
@@ -29,31 +12,31 @@
  *
  * Protobuf type {@code google.cloud.translation.v3beta1.DeleteGlossaryResponse}
  */
-public final class DeleteGlossaryResponse extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class DeleteGlossaryResponse extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.DeleteGlossaryResponse)
     DeleteGlossaryResponseOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use DeleteGlossaryResponse.newBuilder() to construct.
   private DeleteGlossaryResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private DeleteGlossaryResponse() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new DeleteGlossaryResponse();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private DeleteGlossaryResponse(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -72,88 +55,78 @@ private DeleteGlossaryResponse(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
+            name_ = s;
+            break;
+          }
+          case 18: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (submitTime_ != null) {
+              subBuilder = submitTime_.toBuilder();
             }
-          case 18:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (submitTime_ != null) {
-                subBuilder = submitTime_.toBuilder();
-              }
-              submitTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(submitTime_);
-                submitTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+            submitTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(submitTime_);
+              submitTime_ = subBuilder.buildPartial();
             }
-          case 26:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (endTime_ != null) {
-                subBuilder = endTime_.toBuilder();
-              }
-              endTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(endTime_);
-                endTime_ = subBuilder.buildPartial();
-              }
 
-              break;
+            break;
+          }
+          case 26: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (endTime_ != null) {
+              subBuilder = endTime_.toBuilder();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            endTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(endTime_);
+              endTime_ = subBuilder.buildPartial();
             }
+
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
+            }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.translate.v3beta1.TranslationServiceProto
-        .internal_static_google_cloud_translation_v3beta1_DeleteGlossaryResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DeleteGlossaryResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.translate.v3beta1.TranslationServiceProto
-        .internal_static_google_cloud_translation_v3beta1_DeleteGlossaryResponse_fieldAccessorTable
+    return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DeleteGlossaryResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.translate.v3beta1.DeleteGlossaryResponse.class,
-            com.google.cloud.translate.v3beta1.DeleteGlossaryResponse.Builder.class);
+            com.google.cloud.translate.v3beta1.DeleteGlossaryResponse.class, com.google.cloud.translate.v3beta1.DeleteGlossaryResponse.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
-   *
-   *
    * 
    * The name of the deleted glossary.
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -162,29 +135,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 name of the deleted glossary.
    * 
* * 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 { @@ -195,14 +168,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int SUBMIT_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp submitTime_; /** - * - * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 2; - * * @return Whether the submitTime field is set. */ @java.lang.Override @@ -210,14 +180,11 @@ public boolean hasSubmitTime() { return submitTime_ != null; } /** - * - * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 2; - * * @return The submitTime. */ @java.lang.Override @@ -225,8 +192,6 @@ public com.google.protobuf.Timestamp getSubmitTime() { return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } /** - * - * *
    * The time when the operation was submitted to the server.
    * 
@@ -241,8 +206,6 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp endTime_; /** - * - * *
    * The time when the glossary deletion is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -250,7 +213,6 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() {
    * 
* * .google.protobuf.Timestamp end_time = 3; - * * @return Whether the endTime field is set. */ @java.lang.Override @@ -258,8 +220,6 @@ public boolean hasEndTime() { return endTime_ != null; } /** - * - * *
    * The time when the glossary deletion is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -267,7 +227,6 @@ public boolean hasEndTime() {
    * 
* * .google.protobuf.Timestamp end_time = 3; - * * @return The endTime. */ @java.lang.Override @@ -275,8 +234,6 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** - * - * *
    * The time when the glossary deletion is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -291,7 +248,6 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -303,8 +259,9 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
-    if (!getNameBytes().isEmpty()) {
+  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_);
     }
     if (submitTime_ != null) {
@@ -322,14 +279,16 @@ public int getSerializedSize() {
     if (size != -1) return size;
 
     size = 0;
-    if (!getNameBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
     }
     if (submitTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSubmitTime());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, getSubmitTime());
     }
     if (endTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getEndTime());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(3, getEndTime());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -339,22 +298,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.cloud.translate.v3beta1.DeleteGlossaryResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3beta1.DeleteGlossaryResponse other =
-        (com.google.cloud.translate.v3beta1.DeleteGlossaryResponse) obj;
+    com.google.cloud.translate.v3beta1.DeleteGlossaryResponse other = (com.google.cloud.translate.v3beta1.DeleteGlossaryResponse) obj;
 
-    if (!getName().equals(other.getName())) return false;
+    if (!getName()
+        .equals(other.getName())) return false;
     if (hasSubmitTime() != other.hasSubmitTime()) return false;
     if (hasSubmitTime()) {
-      if (!getSubmitTime().equals(other.getSubmitTime())) return false;
+      if (!getSubmitTime()
+          .equals(other.getSubmitTime())) return false;
     }
     if (hasEndTime() != other.hasEndTime()) return false;
     if (hasEndTime()) {
-      if (!getEndTime().equals(other.getEndTime())) return false;
+      if (!getEndTime()
+          .equals(other.getEndTime())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -383,104 +344,96 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3beta1.DeleteGlossaryResponse 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.cloud.translate.v3beta1.DeleteGlossaryResponse 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.cloud.translate.v3beta1.DeleteGlossaryResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3beta1.DeleteGlossaryResponse 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.cloud.translate.v3beta1.DeleteGlossaryResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3beta1.DeleteGlossaryResponse 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.cloud.translate.v3beta1.DeleteGlossaryResponse parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3beta1.DeleteGlossaryResponse parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3beta1.DeleteGlossaryResponse 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.cloud.translate.v3beta1.DeleteGlossaryResponse parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3beta1.DeleteGlossaryResponse parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3beta1.DeleteGlossaryResponse 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.cloud.translate.v3beta1.DeleteGlossaryResponse 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.cloud.translate.v3beta1.DeleteGlossaryResponse 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.cloud.translate.v3beta1.DeleteGlossaryResponse prototype) {
+  public static Builder newBuilder(com.google.cloud.translate.v3beta1.DeleteGlossaryResponse 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;
   }
   /**
-   *
-   *
    * 
    * Stored in the
    * [google.longrunning.Operation.response][google.longrunning.Operation.response]
@@ -489,23 +442,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.translation.v3beta1.DeleteGlossaryResponse}
    */
-  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.translation.v3beta1.DeleteGlossaryResponse)
       com.google.cloud.translate.v3beta1.DeleteGlossaryResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3beta1_DeleteGlossaryResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DeleteGlossaryResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3beta1_DeleteGlossaryResponse_fieldAccessorTable
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DeleteGlossaryResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.translate.v3beta1.DeleteGlossaryResponse.class,
-              com.google.cloud.translate.v3beta1.DeleteGlossaryResponse.Builder.class);
+              com.google.cloud.translate.v3beta1.DeleteGlossaryResponse.class, com.google.cloud.translate.v3beta1.DeleteGlossaryResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.translate.v3beta1.DeleteGlossaryResponse.newBuilder()
@@ -513,15 +464,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -543,9 +495,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3beta1_DeleteGlossaryResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DeleteGlossaryResponse_descriptor;
     }
 
     @java.lang.Override
@@ -564,8 +516,7 @@ public com.google.cloud.translate.v3beta1.DeleteGlossaryResponse build() {
 
     @java.lang.Override
     public com.google.cloud.translate.v3beta1.DeleteGlossaryResponse buildPartial() {
-      com.google.cloud.translate.v3beta1.DeleteGlossaryResponse result =
-          new com.google.cloud.translate.v3beta1.DeleteGlossaryResponse(this);
+      com.google.cloud.translate.v3beta1.DeleteGlossaryResponse result = new com.google.cloud.translate.v3beta1.DeleteGlossaryResponse(this);
       result.name_ = name_;
       if (submitTimeBuilder_ == null) {
         result.submitTime_ = submitTime_;
@@ -585,39 +536,38 @@ public com.google.cloud.translate.v3beta1.DeleteGlossaryResponse 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.cloud.translate.v3beta1.DeleteGlossaryResponse) {
-        return mergeFrom((com.google.cloud.translate.v3beta1.DeleteGlossaryResponse) other);
+        return mergeFrom((com.google.cloud.translate.v3beta1.DeleteGlossaryResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -625,8 +575,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.translate.v3beta1.DeleteGlossaryResponse other) {
-      if (other == com.google.cloud.translate.v3beta1.DeleteGlossaryResponse.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.translate.v3beta1.DeleteGlossaryResponse.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -656,8 +605,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.translate.v3beta1.DeleteGlossaryResponse) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.translate.v3beta1.DeleteGlossaryResponse) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -669,20 +617,18 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * The name of the deleted glossary.
      * 
* * 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; @@ -691,21 +637,20 @@ public java.lang.String getName() { } } /** - * - * *
      * The name of the deleted glossary.
      * 
* * 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 { @@ -713,61 +658,54 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The name of the deleted glossary.
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * The name of the deleted glossary.
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * The name of the deleted glossary.
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -775,47 +713,34 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp submitTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - submitTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> submitTimeBuilder_; /** - * - * *
      * The time when the operation was submitted to the server.
      * 
* * .google.protobuf.Timestamp submit_time = 2; - * * @return Whether the submitTime field is set. */ public boolean hasSubmitTime() { return submitTimeBuilder_ != null || submitTime_ != null; } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
* * .google.protobuf.Timestamp submit_time = 2; - * * @return The submitTime. */ public com.google.protobuf.Timestamp getSubmitTime() { if (submitTimeBuilder_ == null) { - return submitTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : submitTime_; + return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } else { return submitTimeBuilder_.getMessage(); } } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
@@ -836,15 +761,14 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
* * .google.protobuf.Timestamp submit_time = 2; */ - public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setSubmitTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (submitTimeBuilder_ == null) { submitTime_ = builderForValue.build(); onChanged(); @@ -855,8 +779,6 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
@@ -867,7 +789,7 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { if (submitTimeBuilder_ == null) { if (submitTime_ != null) { submitTime_ = - com.google.protobuf.Timestamp.newBuilder(submitTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(submitTime_).mergeFrom(value).buildPartial(); } else { submitTime_ = value; } @@ -879,8 +801,6 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
@@ -899,8 +819,6 @@ public Builder clearSubmitTime() { return this; } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
@@ -908,13 +826,11 @@ public Builder clearSubmitTime() { * .google.protobuf.Timestamp submit_time = 2; */ public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder() { - + onChanged(); return getSubmitTimeFieldBuilder().getBuilder(); } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
@@ -925,14 +841,11 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { if (submitTimeBuilder_ != null) { return submitTimeBuilder_.getMessageOrBuilder(); } else { - return submitTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : submitTime_; + return submitTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
@@ -940,17 +853,14 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { * .google.protobuf.Timestamp submit_time = 2; */ 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> getSubmitTimeFieldBuilder() { if (submitTimeBuilder_ == null) { - submitTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getSubmitTime(), getParentForChildren(), isClean()); + submitTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getSubmitTime(), + getParentForChildren(), + isClean()); submitTime_ = null; } return submitTimeBuilder_; @@ -958,13 +868,8 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - endTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; /** - * - * *
      * The time when the glossary deletion is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -972,15 +877,12 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() {
      * 
* * .google.protobuf.Timestamp end_time = 3; - * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; } /** - * - * *
      * The time when the glossary deletion is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -988,7 +890,6 @@ public boolean hasEndTime() {
      * 
* * .google.protobuf.Timestamp end_time = 3; - * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -999,8 +900,6 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** - * - * *
      * The time when the glossary deletion is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1023,8 +922,6 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time when the glossary deletion is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1033,7 +930,8 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp end_time = 3;
      */
-    public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setEndTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (endTimeBuilder_ == null) {
         endTime_ = builderForValue.build();
         onChanged();
@@ -1044,8 +942,6 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue)
       return this;
     }
     /**
-     *
-     *
      * 
      * The time when the glossary deletion is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1058,7 +954,7 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       if (endTimeBuilder_ == null) {
         if (endTime_ != null) {
           endTime_ =
-              com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial();
+            com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial();
         } else {
           endTime_ = value;
         }
@@ -1070,8 +966,6 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time when the glossary deletion is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1092,8 +986,6 @@ public Builder clearEndTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time when the glossary deletion is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1103,13 +995,11 @@ public Builder clearEndTime() {
      * .google.protobuf.Timestamp end_time = 3;
      */
     public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() {
-
+      
       onChanged();
       return getEndTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The time when the glossary deletion is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1122,12 +1012,11 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
       if (endTimeBuilder_ != null) {
         return endTimeBuilder_.getMessageOrBuilder();
       } else {
-        return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
+        return endTime_ == null ?
+            com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
       }
     }
     /**
-     *
-     *
      * 
      * The time when the glossary deletion is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1137,24 +1026,21 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
      * .google.protobuf.Timestamp end_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> 
         getEndTimeFieldBuilder() {
       if (endTimeBuilder_ == null) {
-        endTimeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Timestamp,
-                com.google.protobuf.Timestamp.Builder,
-                com.google.protobuf.TimestampOrBuilder>(
-                getEndTime(), getParentForChildren(), isClean());
+        endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                getEndTime(),
+                getParentForChildren(),
+                isClean());
         endTime_ = null;
       }
       return endTimeBuilder_;
     }
-
     @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);
     }
 
@@ -1164,12 +1050,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.DeleteGlossaryResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.DeleteGlossaryResponse)
   private static final com.google.cloud.translate.v3beta1.DeleteGlossaryResponse DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.DeleteGlossaryResponse();
   }
@@ -1178,16 +1064,16 @@ public static com.google.cloud.translate.v3beta1.DeleteGlossaryResponse getDefau
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public DeleteGlossaryResponse parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new DeleteGlossaryResponse(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public DeleteGlossaryResponse parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new DeleteGlossaryResponse(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1202,4 +1088,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3beta1.DeleteGlossaryResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryResponseOrBuilder.java b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryResponseOrBuilder.java
similarity index 74%
rename from proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryResponseOrBuilder.java
rename to owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryResponseOrBuilder.java
index 2309505d..3f333cae 100644
--- a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryResponseOrBuilder.java
+++ b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryResponseOrBuilder.java
@@ -1,80 +1,51 @@
-/*
- * Copyright 2020 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/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
-public interface DeleteGlossaryResponseOrBuilder
-    extends
+public interface DeleteGlossaryResponseOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.DeleteGlossaryResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * The name of the deleted glossary.
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The name of the deleted glossary.
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 2; - * * @return Whether the submitTime field is set. */ boolean hasSubmitTime(); /** - * - * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 2; - * * @return The submitTime. */ com.google.protobuf.Timestamp getSubmitTime(); /** - * - * *
    * The time when the operation was submitted to the server.
    * 
@@ -84,8 +55,6 @@ public interface DeleteGlossaryResponseOrBuilder com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder(); /** - * - * *
    * The time when the glossary deletion is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -93,13 +62,10 @@ public interface DeleteGlossaryResponseOrBuilder
    * 
* * .google.protobuf.Timestamp end_time = 3; - * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** - * - * *
    * The time when the glossary deletion is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -107,13 +73,10 @@ public interface DeleteGlossaryResponseOrBuilder
    * 
* * .google.protobuf.Timestamp end_time = 3; - * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** - * - * *
    * The time when the glossary deletion is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
diff --git a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageRequest.java b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageRequest.java
similarity index 71%
rename from proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageRequest.java
rename to owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageRequest.java
index 584da741..627c7994 100644
--- a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageRequest.java
+++ b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageRequest.java
@@ -1,42 +1,24 @@
-/*
- * Copyright 2020 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/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
 /**
- *
- *
  * 
  * The request message for language detection.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.DetectLanguageRequest} */ -public final class DetectLanguageRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DetectLanguageRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.DetectLanguageRequest) DetectLanguageRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DetectLanguageRequest.newBuilder() to construct. private DetectLanguageRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DetectLanguageRequest() { parent_ = ""; model_ = ""; @@ -45,15 +27,16 @@ private DetectLanguageRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DetectLanguageRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DetectLanguageRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,103 +56,95 @@ private DetectLanguageRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - sourceCase_ = 1; - source_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + sourceCase_ = 1; + source_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - mimeType_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + mimeType_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); - model_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); + model_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 50: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - labels_ = - com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); - break; + parent_ = s; + break; + } + case 50: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put( + labels__.getKey(), labels__.getValue()); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_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.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.DetectLanguageRequest.class, - com.google.cloud.translate.v3beta1.DetectLanguageRequest.Builder.class); + com.google.cloud.translate.v3beta1.DetectLanguageRequest.class, com.google.cloud.translate.v3beta1.DetectLanguageRequest.Builder.class); } private int sourceCase_ = 0; private java.lang.Object source_; - public enum SourceCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { CONTENT(1), SOURCE_NOT_SET(0); private final int value; - private SourceCase(int value) { this.value = value; } @@ -185,29 +160,25 @@ public static SourceCase valueOf(int value) { public static SourceCase forNumber(int value) { switch (value) { - case 1: - return CONTENT; - case 0: - return SOURCE_NOT_SET; - default: - return null; + case 1: return CONTENT; + case 0: return SOURCE_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public SourceCase getSourceCase() { - return SourceCase.forNumber(sourceCase_); + public SourceCase + getSourceCase() { + return SourceCase.forNumber( + sourceCase_); } public static final int PARENT_FIELD_NUMBER = 5; private volatile java.lang.Object parent_; /** - * - * *
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -219,10 +190,7 @@ public SourceCase getSourceCase() {
    * Otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -231,15 +199,14 @@ 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. Project or location to make a call. Must refer to a caller's
    * project.
@@ -251,18 +218,17 @@ public java.lang.String getParent() {
    * Otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 5 [(.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 { @@ -273,8 +239,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int MODEL_FIELD_NUMBER = 4; private volatile java.lang.Object model_; /** - * - * *
    * Optional. The language detection model to be used.
    * Format:
@@ -285,7 +249,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string model = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The model. */ @java.lang.Override @@ -294,15 +257,14 @@ public java.lang.String getModel() { 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(); model_ = s; return s; } } /** - * - * *
    * Optional. The language detection model to be used.
    * Format:
@@ -313,15 +275,16 @@ public java.lang.String getModel() {
    * 
* * string model = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for model. */ @java.lang.Override - public com.google.protobuf.ByteString getModelBytes() { + public com.google.protobuf.ByteString + getModelBytes() { java.lang.Object ref = model_; 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); model_ = b; return b; } else { @@ -331,28 +294,22 @@ public com.google.protobuf.ByteString getModelBytes() { public static final int CONTENT_FIELD_NUMBER = 1; /** - * - * *
    * The content of the input stored as a string.
    * 
* * string content = 1; - * * @return Whether the content field is set. */ public boolean hasContent() { return sourceCase_ == 1; } /** - * - * *
    * The content of the input stored as a string.
    * 
* * string content = 1; - * * @return The content. */ public java.lang.String getContent() { @@ -363,7 +320,8 @@ public java.lang.String getContent() { 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 (sourceCase_ == 1) { source_ = s; @@ -372,24 +330,23 @@ public java.lang.String getContent() { } } /** - * - * *
    * The content of the input stored as a string.
    * 
* * string content = 1; - * * @return The bytes for content. */ - public com.google.protobuf.ByteString getContentBytes() { + public com.google.protobuf.ByteString + getContentBytes() { java.lang.Object ref = ""; if (sourceCase_ == 1) { ref = source_; } 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 (sourceCase_ == 1) { source_ = b; } @@ -402,15 +359,12 @@ public com.google.protobuf.ByteString getContentBytes() { public static final int MIME_TYPE_FIELD_NUMBER = 3; private volatile java.lang.Object mimeType_; /** - * - * *
    * Optional. The format of the source text, for example, "text/html",
    * "text/plain". If left blank, the MIME type defaults to "text/html".
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The mimeType. */ @java.lang.Override @@ -419,30 +373,30 @@ public java.lang.String getMimeType() { 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(); mimeType_ = s; return s; } } /** - * - * *
    * Optional. The format of the source text, for example, "text/html",
    * "text/plain". If left blank, the MIME type defaults to "text/html".
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for mimeType. */ @java.lang.Override - public com.google.protobuf.ByteString getMimeTypeBytes() { + public com.google.protobuf.ByteString + getMimeTypeBytes() { java.lang.Object ref = mimeType_; 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); mimeType_ = b; return b; } else { @@ -451,23 +405,24 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { } 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.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_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.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - - 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_; } @@ -476,8 +431,6 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Optional. The labels with user-defined metadata for the request.
    * Label keys and values can be no longer than 63 characters
@@ -489,22 +442,22 @@ 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 java.lang.NullPointerException();
-    }
+  public boolean containsLabels(
+      java.lang.String key) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
     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. The labels with user-defined metadata for the request.
    * Label keys and values can be no longer than 63 characters
@@ -517,12 +470,11 @@ public java.util.Map getLabels() {
    * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
+
   public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    * Label keys and values can be no longer than 63 characters
@@ -535,16 +487,16 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
-    java.util.Map map = internalGetLabels().getMap();
+
+  public java.lang.String getLabelsOrDefault(
+      java.lang.String key,
+      java.lang.String defaultValue) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    * Label keys and values can be no longer than 63 characters
@@ -557,11 +509,12 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin
    * 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 java.lang.NullPointerException();
-    }
-    java.util.Map map = internalGetLabels().getMap();
+
+  public java.lang.String getLabelsOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -569,7 +522,6 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -581,21 +533,26 @@ 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 (sourceCase_ == 1) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, source_);
     }
-    if (!getMimeTypeBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mimeType_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 3, mimeType_);
     }
-    if (!getModelBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(model_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 4, model_);
     }
-    if (!getParentBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 5, parent_);
     }
-    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
-        output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 6);
+    com.google.protobuf.GeneratedMessageV3
+      .serializeStringMapTo(
+        output,
+        internalGetLabels(),
+        LabelsDefaultEntryHolder.defaultEntry,
+        6);
     unknownFields.writeTo(output);
   }
 
@@ -608,24 +565,24 @@ public int getSerializedSize() {
     if (sourceCase_ == 1) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, source_);
     }
-    if (!getMimeTypeBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mimeType_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, mimeType_);
     }
-    if (!getModelBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(model_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, model_);
     }
-    if (!getParentBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, parent_);
     }
-    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__);
+    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 += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -635,22 +592,26 @@ 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.cloud.translate.v3beta1.DetectLanguageRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3beta1.DetectLanguageRequest other =
-        (com.google.cloud.translate.v3beta1.DetectLanguageRequest) obj;
+    com.google.cloud.translate.v3beta1.DetectLanguageRequest other = (com.google.cloud.translate.v3beta1.DetectLanguageRequest) obj;
 
-    if (!getParent().equals(other.getParent())) return false;
-    if (!getModel().equals(other.getModel())) return false;
-    if (!getMimeType().equals(other.getMimeType())) return false;
-    if (!internalGetLabels().equals(other.internalGetLabels())) return false;
+    if (!getParent()
+        .equals(other.getParent())) return false;
+    if (!getModel()
+        .equals(other.getModel())) return false;
+    if (!getMimeType()
+        .equals(other.getMimeType())) return false;
+    if (!internalGetLabels().equals(
+        other.internalGetLabels())) return false;
     if (!getSourceCase().equals(other.getSourceCase())) return false;
     switch (sourceCase_) {
       case 1:
-        if (!getContent().equals(other.getContent())) return false;
+        if (!getContent()
+            .equals(other.getContent())) return false;
         break;
       case 0:
       default:
@@ -690,147 +651,139 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3beta1.DetectLanguageRequest 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.cloud.translate.v3beta1.DetectLanguageRequest 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.cloud.translate.v3beta1.DetectLanguageRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3beta1.DetectLanguageRequest 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.cloud.translate.v3beta1.DetectLanguageRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3beta1.DetectLanguageRequest 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.cloud.translate.v3beta1.DetectLanguageRequest parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3beta1.DetectLanguageRequest parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3beta1.DetectLanguageRequest 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.cloud.translate.v3beta1.DetectLanguageRequest parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3beta1.DetectLanguageRequest parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3beta1.DetectLanguageRequest 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.cloud.translate.v3beta1.DetectLanguageRequest 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.cloud.translate.v3beta1.DetectLanguageRequest 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.cloud.translate.v3beta1.DetectLanguageRequest prototype) {
+  public static Builder newBuilder(com.google.cloud.translate.v3beta1.DetectLanguageRequest 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 for language detection.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.DetectLanguageRequest} */ - 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.translation.v3beta1.DetectLanguageRequest) com.google.cloud.translate.v3beta1.DetectLanguageRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_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.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.DetectLanguageRequest.class, - com.google.cloud.translate.v3beta1.DetectLanguageRequest.Builder.class); + com.google.cloud.translate.v3beta1.DetectLanguageRequest.class, com.google.cloud.translate.v3beta1.DetectLanguageRequest.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.DetectLanguageRequest.newBuilder() @@ -838,15 +791,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -863,9 +817,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_descriptor; } @java.lang.Override @@ -884,8 +838,7 @@ public com.google.cloud.translate.v3beta1.DetectLanguageRequest build() { @java.lang.Override public com.google.cloud.translate.v3beta1.DetectLanguageRequest buildPartial() { - com.google.cloud.translate.v3beta1.DetectLanguageRequest result = - new com.google.cloud.translate.v3beta1.DetectLanguageRequest(this); + com.google.cloud.translate.v3beta1.DetectLanguageRequest result = new com.google.cloud.translate.v3beta1.DetectLanguageRequest(this); int from_bitField0_ = bitField0_; result.parent_ = parent_; result.model_ = model_; @@ -904,39 +857,38 @@ public com.google.cloud.translate.v3beta1.DetectLanguageRequest 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.cloud.translate.v3beta1.DetectLanguageRequest) { - return mergeFrom((com.google.cloud.translate.v3beta1.DetectLanguageRequest) other); + return mergeFrom((com.google.cloud.translate.v3beta1.DetectLanguageRequest)other); } else { super.mergeFrom(other); return this; @@ -944,8 +896,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.DetectLanguageRequest other) { - if (other == com.google.cloud.translate.v3beta1.DetectLanguageRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3beta1.DetectLanguageRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -958,19 +909,18 @@ public Builder mergeFrom(com.google.cloud.translate.v3beta1.DetectLanguageReques mimeType_ = other.mimeType_; onChanged(); } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); switch (other.getSourceCase()) { - case CONTENT: - { - sourceCase_ = 1; - source_ = other.source_; - onChanged(); - break; - } - case SOURCE_NOT_SET: - { - break; - } + case CONTENT: { + sourceCase_ = 1; + source_ = other.source_; + onChanged(); + break; + } + case SOURCE_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -991,8 +941,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.translate.v3beta1.DetectLanguageRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.translate.v3beta1.DetectLanguageRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1001,12 +950,12 @@ public Builder mergeFrom( } return this; } - private int sourceCase_ = 0; private java.lang.Object source_; - - public SourceCase getSourceCase() { - return SourceCase.forNumber(sourceCase_); + public SourceCase + getSourceCase() { + return SourceCase.forNumber( + sourceCase_); } public Builder clearSource() { @@ -1020,8 +969,6 @@ public Builder clearSource() { private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -1033,16 +980,14 @@ public Builder clearSource() {
      * Otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 5 [(.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; @@ -1051,8 +996,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -1064,17 +1007,16 @@ public java.lang.String getParent() {
      * Otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 5 [(.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 { @@ -1082,8 +1024,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -1095,25 +1035,21 @@ public com.google.protobuf.ByteString getParentBytes() {
      * Otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 5 [(.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) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -1125,21 +1061,16 @@ public Builder setParent(java.lang.String value) {
      * Otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -1151,19 +1082,17 @@ public Builder clearParent() {
      * Otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 5 [(.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) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -1171,8 +1100,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object model_ = ""; /** - * - * *
      * Optional. The language detection model to be used.
      * Format:
@@ -1183,13 +1110,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string model = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; 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(); model_ = s; return s; @@ -1198,8 +1125,6 @@ public java.lang.String getModel() { } } /** - * - * *
      * Optional. The language detection model to be used.
      * Format:
@@ -1210,14 +1135,15 @@ public java.lang.String getModel() {
      * 
* * string model = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for model. */ - public com.google.protobuf.ByteString getModelBytes() { + public com.google.protobuf.ByteString + getModelBytes() { java.lang.Object ref = model_; 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); model_ = b; return b; } else { @@ -1225,8 +1151,6 @@ public com.google.protobuf.ByteString getModelBytes() { } } /** - * - * *
      * Optional. The language detection model to be used.
      * Format:
@@ -1237,22 +1161,20 @@ public com.google.protobuf.ByteString getModelBytes() {
      * 
* * string model = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The model to set. * @return This builder for chaining. */ - public Builder setModel(java.lang.String value) { + public Builder setModel( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + model_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The language detection model to be used.
      * Format:
@@ -1263,18 +1185,15 @@ public Builder setModel(java.lang.String value) {
      * 
* * string model = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearModel() { - + model_ = getDefaultInstance().getModel(); onChanged(); return this; } /** - * - * *
      * Optional. The language detection model to be used.
      * Format:
@@ -1285,30 +1204,27 @@ public Builder clearModel() {
      * 
* * string model = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for model to set. * @return This builder for chaining. */ - public Builder setModelBytes(com.google.protobuf.ByteString value) { + public Builder setModelBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + model_ = value; onChanged(); return this; } /** - * - * *
      * The content of the input stored as a string.
      * 
* * string content = 1; - * * @return Whether the content field is set. */ @java.lang.Override @@ -1316,14 +1232,11 @@ public boolean hasContent() { return sourceCase_ == 1; } /** - * - * *
      * The content of the input stored as a string.
      * 
* * string content = 1; - * * @return The content. */ @java.lang.Override @@ -1333,7 +1246,8 @@ public java.lang.String getContent() { ref = source_; } 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 (sourceCase_ == 1) { source_ = s; @@ -1344,25 +1258,24 @@ public java.lang.String getContent() { } } /** - * - * *
      * The content of the input stored as a string.
      * 
* * string content = 1; - * * @return The bytes for content. */ @java.lang.Override - public com.google.protobuf.ByteString getContentBytes() { + public com.google.protobuf.ByteString + getContentBytes() { java.lang.Object ref = ""; if (sourceCase_ == 1) { ref = source_; } 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 (sourceCase_ == 1) { source_ = b; } @@ -1372,35 +1285,30 @@ public com.google.protobuf.ByteString getContentBytes() { } } /** - * - * *
      * The content of the input stored as a string.
      * 
* * string content = 1; - * * @param value The content to set. * @return This builder for chaining. */ - public Builder setContent(java.lang.String value) { + public Builder setContent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - sourceCase_ = 1; + throw new NullPointerException(); + } + sourceCase_ = 1; source_ = value; onChanged(); return this; } /** - * - * *
      * The content of the input stored as a string.
      * 
* * string content = 1; - * * @return This builder for chaining. */ public Builder clearContent() { @@ -1412,22 +1320,20 @@ public Builder clearContent() { return this; } /** - * - * *
      * The content of the input stored as a string.
      * 
* * string content = 1; - * * @param value The bytes for content to set. * @return This builder for chaining. */ - public Builder setContentBytes(com.google.protobuf.ByteString value) { + public Builder setContentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); sourceCase_ = 1; source_ = value; onChanged(); @@ -1436,21 +1342,19 @@ public Builder setContentBytes(com.google.protobuf.ByteString value) { private java.lang.Object mimeType_ = ""; /** - * - * *
      * Optional. The format of the source text, for example, "text/html",
      * "text/plain". If left blank, the MIME type defaults to "text/html".
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The mimeType. */ public java.lang.String getMimeType() { java.lang.Object ref = mimeType_; 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(); mimeType_ = s; return s; @@ -1459,22 +1363,21 @@ public java.lang.String getMimeType() { } } /** - * - * *
      * Optional. The format of the source text, for example, "text/html",
      * "text/plain". If left blank, the MIME type defaults to "text/html".
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for mimeType. */ - public com.google.protobuf.ByteString getMimeTypeBytes() { + public com.google.protobuf.ByteString + getMimeTypeBytes() { java.lang.Object ref = mimeType_; 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); mimeType_ = b; return b; } else { @@ -1482,84 +1385,78 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { } } /** - * - * *
      * Optional. The format of the source text, for example, "text/html",
      * "text/plain". If left blank, the MIME type defaults to "text/html".
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The mimeType to set. * @return This builder for chaining. */ - public Builder setMimeType(java.lang.String value) { + public Builder setMimeType( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + mimeType_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The format of the source text, for example, "text/html",
      * "text/plain". If left blank, the MIME type defaults to "text/html".
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearMimeType() { - + mimeType_ = getDefaultInstance().getMimeType(); onChanged(); return this; } /** - * - * *
      * Optional. The format of the source text, for example, "text/html",
      * "text/plain". If left blank, the MIME type defaults to "text/html".
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for mimeType to set. * @return This builder for chaining. */ - public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { + public Builder setMimeTypeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mimeType_ = value; onChanged(); return this; } - 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() { - onChanged(); - ; + internalGetMutableLabels() { + onChanged();; 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(); @@ -1571,8 +1468,6 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Optional. The labels with user-defined metadata for the request.
      * Label keys and values can be no longer than 63 characters
@@ -1584,22 +1479,22 @@ 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 java.lang.NullPointerException();
-      }
+    public boolean containsLabels(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
       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. The labels with user-defined metadata for the request.
      * Label keys and values can be no longer than 63 characters
@@ -1612,12 +1507,11 @@ public java.util.Map getLabels() {
      * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
+
     public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      * Label keys and values can be no longer than 63 characters
@@ -1630,17 +1524,16 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
+
     public java.lang.String getLabelsOrDefault(
-        java.lang.String key, java.lang.String defaultValue) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      java.util.Map map = internalGetLabels().getMap();
+        java.lang.String key,
+        java.lang.String defaultValue) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      * Label keys and values can be no longer than 63 characters
@@ -1653,11 +1546,12 @@ public java.lang.String getLabelsOrDefault(
      * 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 java.lang.NullPointerException();
-      }
-      java.util.Map map = internalGetLabels().getMap();
+
+    public java.lang.String getLabelsOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -1665,12 +1559,11 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
     }
 
     public Builder clearLabels() {
-      internalGetMutableLabels().getMutableMap().clear();
+      internalGetMutableLabels().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      * Label keys and values can be no longer than 63 characters
@@ -1682,21 +1575,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 java.lang.NullPointerException();
-      }
-      internalGetMutableLabels().getMutableMap().remove(key);
+
+    public Builder removeLabels(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      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() {
       return internalGetMutableLabels().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      * Label keys and values can be no longer than 63 characters
@@ -1708,19 +1603,16 @@ 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 java.lang.NullPointerException();
-      }
-      if (value == null) {
-        throw new java.lang.NullPointerException();
-      }
-      internalGetMutableLabels().getMutableMap().put(key, value);
+    public Builder putLabels(
+        java.lang.String key,
+        java.lang.String value) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      if (value == null) { throw new java.lang.NullPointerException(); }
+      internalGetMutableLabels().getMutableMap()
+          .put(key, value);
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      * Label keys and values can be no longer than 63 characters
@@ -1732,13 +1624,16 @@ 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);
       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);
     }
 
@@ -1748,12 +1643,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.DetectLanguageRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.DetectLanguageRequest)
   private static final com.google.cloud.translate.v3beta1.DetectLanguageRequest DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.DetectLanguageRequest();
   }
@@ -1762,16 +1657,16 @@ public static com.google.cloud.translate.v3beta1.DetectLanguageRequest getDefaul
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public DetectLanguageRequest parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new DetectLanguageRequest(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public DetectLanguageRequest parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new DetectLanguageRequest(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1786,4 +1681,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3beta1.DetectLanguageRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageRequestOrBuilder.java b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageRequestOrBuilder.java
similarity index 79%
rename from proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageRequestOrBuilder.java
rename to owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageRequestOrBuilder.java
index 174f150d..284e4c28 100644
--- a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageRequestOrBuilder.java
+++ b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageRequestOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2020 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/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
-public interface DetectLanguageRequestOrBuilder
-    extends
+public interface DetectLanguageRequestOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.DetectLanguageRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -37,16 +19,11 @@ public interface DetectLanguageRequestOrBuilder
    * Otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -58,17 +35,13 @@ public interface DetectLanguageRequestOrBuilder
    * Otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 5 [(.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 language detection model to be used.
    * Format:
@@ -79,13 +52,10 @@ public interface DetectLanguageRequestOrBuilder
    * 
* * string model = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The model. */ java.lang.String getModel(); /** - * - * *
    * Optional. The language detection model to be used.
    * Format:
@@ -96,78 +66,63 @@ public interface DetectLanguageRequestOrBuilder
    * 
* * string model = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for model. */ - com.google.protobuf.ByteString getModelBytes(); + com.google.protobuf.ByteString + getModelBytes(); /** - * - * *
    * The content of the input stored as a string.
    * 
* * string content = 1; - * * @return Whether the content field is set. */ boolean hasContent(); /** - * - * *
    * The content of the input stored as a string.
    * 
* * string content = 1; - * * @return The content. */ java.lang.String getContent(); /** - * - * *
    * The content of the input stored as a string.
    * 
* * string content = 1; - * * @return The bytes for content. */ - com.google.protobuf.ByteString getContentBytes(); + com.google.protobuf.ByteString + getContentBytes(); /** - * - * *
    * Optional. The format of the source text, for example, "text/html",
    * "text/plain". If left blank, the MIME type defaults to "text/html".
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The mimeType. */ java.lang.String getMimeType(); /** - * - * *
    * Optional. The format of the source text, for example, "text/html",
    * "text/plain". If left blank, the MIME type defaults to "text/html".
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for mimeType. */ - com.google.protobuf.ByteString getMimeTypeBytes(); + com.google.protobuf.ByteString + getMimeTypeBytes(); /** - * - * *
    * Optional. The labels with user-defined metadata for the request.
    * Label keys and values can be no longer than 63 characters
@@ -181,8 +136,6 @@ public interface DetectLanguageRequestOrBuilder
    */
   int getLabelsCount();
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    * Label keys and values can be no longer than 63 characters
@@ -194,13 +147,15 @@ public interface DetectLanguageRequestOrBuilder
    *
    * 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. The labels with user-defined metadata for the request.
    * Label keys and values can be no longer than 63 characters
@@ -212,10 +167,9 @@ public interface DetectLanguageRequestOrBuilder
    *
    * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.util.Map getLabelsMap();
+  java.util.Map
+  getLabelsMap();
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    * Label keys and values can be no longer than 63 characters
@@ -227,10 +181,11 @@ public interface DetectLanguageRequestOrBuilder
    *
    * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue);
+
+  java.lang.String getLabelsOrDefault(
+      java.lang.String key,
+      java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    * Label keys and values can be no longer than 63 characters
@@ -242,7 +197,9 @@ public interface DetectLanguageRequestOrBuilder
    *
    * 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);
 
   public com.google.cloud.translate.v3beta1.DetectLanguageRequest.SourceCase getSourceCase();
 }
diff --git a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageResponse.java b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageResponse.java
similarity index 75%
rename from proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageResponse.java
rename to owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageResponse.java
index cf241442..ae2ae462 100644
--- a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageResponse.java
+++ b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageResponse.java
@@ -1,57 +1,40 @@
-/*
- * Copyright 2020 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/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
 /**
- *
- *
  * 
  * The response message for language detection.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.DetectLanguageResponse} */ -public final class DetectLanguageResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DetectLanguageResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.DetectLanguageResponse) DetectLanguageResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DetectLanguageResponse.newBuilder() to construct. private DetectLanguageResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DetectLanguageResponse() { languages_ = 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 DetectLanguageResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DetectLanguageResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,32 +54,29 @@ private DetectLanguageResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - languages_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - languages_.add( - input.readMessage( - com.google.cloud.translate.v3beta1.DetectedLanguage.parser(), - extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + languages_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + languages_.add( + input.readMessage(com.google.cloud.translate.v3beta1.DetectedLanguage.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { languages_ = java.util.Collections.unmodifiableList(languages_); @@ -105,27 +85,22 @@ private DetectLanguageResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_DetectLanguageResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DetectLanguageResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_DetectLanguageResponse_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DetectLanguageResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.DetectLanguageResponse.class, - com.google.cloud.translate.v3beta1.DetectLanguageResponse.Builder.class); + com.google.cloud.translate.v3beta1.DetectLanguageResponse.class, com.google.cloud.translate.v3beta1.DetectLanguageResponse.Builder.class); } public static final int LANGUAGES_FIELD_NUMBER = 1; private java.util.List languages_; /** - * - * *
    * A list of detected languages sorted by detection confidence in descending
    * order. The most probable language first.
@@ -138,8 +113,6 @@ public java.util.List getLa
     return languages_;
   }
   /**
-   *
-   *
    * 
    * A list of detected languages sorted by detection confidence in descending
    * order. The most probable language first.
@@ -148,13 +121,11 @@ public java.util.List getLa
    * repeated .google.cloud.translation.v3beta1.DetectedLanguage languages = 1;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getLanguagesOrBuilderList() {
     return languages_;
   }
   /**
-   *
-   *
    * 
    * A list of detected languages sorted by detection confidence in descending
    * order. The most probable language first.
@@ -167,8 +138,6 @@ public int getLanguagesCount() {
     return languages_.size();
   }
   /**
-   *
-   *
    * 
    * A list of detected languages sorted by detection confidence in descending
    * order. The most probable language first.
@@ -181,8 +150,6 @@ public com.google.cloud.translate.v3beta1.DetectedLanguage getLanguages(int inde
     return languages_.get(index);
   }
   /**
-   *
-   *
    * 
    * A list of detected languages sorted by detection confidence in descending
    * order. The most probable language first.
@@ -197,7 +164,6 @@ public com.google.cloud.translate.v3beta1.DetectedLanguageOrBuilder getLanguages
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -209,7 +175,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 < languages_.size(); i++) {
       output.writeMessage(1, languages_.get(i));
     }
@@ -223,7 +190,8 @@ public int getSerializedSize() {
 
     size = 0;
     for (int i = 0; i < languages_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, languages_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, languages_.get(i));
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -233,15 +201,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.cloud.translate.v3beta1.DetectLanguageResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3beta1.DetectLanguageResponse other =
-        (com.google.cloud.translate.v3beta1.DetectLanguageResponse) obj;
+    com.google.cloud.translate.v3beta1.DetectLanguageResponse other = (com.google.cloud.translate.v3beta1.DetectLanguageResponse) obj;
 
-    if (!getLanguagesList().equals(other.getLanguagesList())) return false;
+    if (!getLanguagesList()
+        .equals(other.getLanguagesList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -263,127 +231,117 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3beta1.DetectLanguageResponse 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.cloud.translate.v3beta1.DetectLanguageResponse 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.cloud.translate.v3beta1.DetectLanguageResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3beta1.DetectLanguageResponse 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.cloud.translate.v3beta1.DetectLanguageResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3beta1.DetectLanguageResponse 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.cloud.translate.v3beta1.DetectLanguageResponse parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3beta1.DetectLanguageResponse parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3beta1.DetectLanguageResponse 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.cloud.translate.v3beta1.DetectLanguageResponse parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3beta1.DetectLanguageResponse parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3beta1.DetectLanguageResponse 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.cloud.translate.v3beta1.DetectLanguageResponse 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.cloud.translate.v3beta1.DetectLanguageResponse 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.cloud.translate.v3beta1.DetectLanguageResponse prototype) {
+  public static Builder newBuilder(com.google.cloud.translate.v3beta1.DetectLanguageResponse 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 message for language detection.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.DetectLanguageResponse} */ - 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.translation.v3beta1.DetectLanguageResponse) com.google.cloud.translate.v3beta1.DetectLanguageResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_DetectLanguageResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DetectLanguageResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_DetectLanguageResponse_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DetectLanguageResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.DetectLanguageResponse.class, - com.google.cloud.translate.v3beta1.DetectLanguageResponse.Builder.class); + com.google.cloud.translate.v3beta1.DetectLanguageResponse.class, com.google.cloud.translate.v3beta1.DetectLanguageResponse.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.DetectLanguageResponse.newBuilder() @@ -391,17 +349,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getLanguagesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -415,9 +373,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_DetectLanguageResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DetectLanguageResponse_descriptor; } @java.lang.Override @@ -436,8 +394,7 @@ public com.google.cloud.translate.v3beta1.DetectLanguageResponse build() { @java.lang.Override public com.google.cloud.translate.v3beta1.DetectLanguageResponse buildPartial() { - com.google.cloud.translate.v3beta1.DetectLanguageResponse result = - new com.google.cloud.translate.v3beta1.DetectLanguageResponse(this); + com.google.cloud.translate.v3beta1.DetectLanguageResponse result = new com.google.cloud.translate.v3beta1.DetectLanguageResponse(this); int from_bitField0_ = bitField0_; if (languagesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -456,39 +413,38 @@ public com.google.cloud.translate.v3beta1.DetectLanguageResponse 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.cloud.translate.v3beta1.DetectLanguageResponse) { - return mergeFrom((com.google.cloud.translate.v3beta1.DetectLanguageResponse) other); + return mergeFrom((com.google.cloud.translate.v3beta1.DetectLanguageResponse)other); } else { super.mergeFrom(other); return this; @@ -496,8 +452,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.DetectLanguageResponse other) { - if (other == com.google.cloud.translate.v3beta1.DetectLanguageResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3beta1.DetectLanguageResponse.getDefaultInstance()) return this; if (languagesBuilder_ == null) { if (!other.languages_.isEmpty()) { if (languages_.isEmpty()) { @@ -516,10 +471,9 @@ public Builder mergeFrom(com.google.cloud.translate.v3beta1.DetectLanguageRespon languagesBuilder_ = null; languages_ = other.languages_; bitField0_ = (bitField0_ & ~0x00000001); - languagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getLanguagesFieldBuilder() - : null; + languagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getLanguagesFieldBuilder() : null; } else { languagesBuilder_.addAllMessages(other.languages_); } @@ -544,8 +498,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.translate.v3beta1.DetectLanguageResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.translate.v3beta1.DetectLanguageResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -554,30 +507,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List languages_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureLanguagesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - languages_ = - new java.util.ArrayList( - languages_); + languages_ = new java.util.ArrayList(languages_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.translate.v3beta1.DetectedLanguage, - com.google.cloud.translate.v3beta1.DetectedLanguage.Builder, - com.google.cloud.translate.v3beta1.DetectedLanguageOrBuilder> - languagesBuilder_; + com.google.cloud.translate.v3beta1.DetectedLanguage, com.google.cloud.translate.v3beta1.DetectedLanguage.Builder, com.google.cloud.translate.v3beta1.DetectedLanguageOrBuilder> languagesBuilder_; /** - * - * *
      * A list of detected languages sorted by detection confidence in descending
      * order. The most probable language first.
@@ -593,8 +537,6 @@ public java.util.List getLa
       }
     }
     /**
-     *
-     *
      * 
      * A list of detected languages sorted by detection confidence in descending
      * order. The most probable language first.
@@ -610,8 +552,6 @@ public int getLanguagesCount() {
       }
     }
     /**
-     *
-     *
      * 
      * A list of detected languages sorted by detection confidence in descending
      * order. The most probable language first.
@@ -627,8 +567,6 @@ public com.google.cloud.translate.v3beta1.DetectedLanguage getLanguages(int inde
       }
     }
     /**
-     *
-     *
      * 
      * A list of detected languages sorted by detection confidence in descending
      * order. The most probable language first.
@@ -651,8 +589,6 @@ public Builder setLanguages(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of detected languages sorted by detection confidence in descending
      * order. The most probable language first.
@@ -672,8 +608,6 @@ public Builder setLanguages(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of detected languages sorted by detection confidence in descending
      * order. The most probable language first.
@@ -695,8 +629,6 @@ public Builder addLanguages(com.google.cloud.translate.v3beta1.DetectedLanguage
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of detected languages sorted by detection confidence in descending
      * order. The most probable language first.
@@ -719,8 +651,6 @@ public Builder addLanguages(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of detected languages sorted by detection confidence in descending
      * order. The most probable language first.
@@ -740,8 +670,6 @@ public Builder addLanguages(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of detected languages sorted by detection confidence in descending
      * order. The most probable language first.
@@ -761,8 +689,6 @@ public Builder addLanguages(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of detected languages sorted by detection confidence in descending
      * order. The most probable language first.
@@ -774,7 +700,8 @@ public Builder addAllLanguages(
         java.lang.Iterable values) {
       if (languagesBuilder_ == null) {
         ensureLanguagesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, languages_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, languages_);
         onChanged();
       } else {
         languagesBuilder_.addAllMessages(values);
@@ -782,8 +709,6 @@ public Builder addAllLanguages(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of detected languages sorted by detection confidence in descending
      * order. The most probable language first.
@@ -802,8 +727,6 @@ public Builder clearLanguages() {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of detected languages sorted by detection confidence in descending
      * order. The most probable language first.
@@ -822,8 +745,6 @@ public Builder removeLanguages(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of detected languages sorted by detection confidence in descending
      * order. The most probable language first.
@@ -836,8 +757,6 @@ public com.google.cloud.translate.v3beta1.DetectedLanguage.Builder getLanguagesB
       return getLanguagesFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * A list of detected languages sorted by detection confidence in descending
      * order. The most probable language first.
@@ -848,14 +767,11 @@ public com.google.cloud.translate.v3beta1.DetectedLanguage.Builder getLanguagesB
     public com.google.cloud.translate.v3beta1.DetectedLanguageOrBuilder getLanguagesOrBuilder(
         int index) {
       if (languagesBuilder_ == null) {
-        return languages_.get(index);
-      } else {
+        return languages_.get(index);  } else {
         return languagesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * A list of detected languages sorted by detection confidence in descending
      * order. The most probable language first.
@@ -863,8 +779,8 @@ public com.google.cloud.translate.v3beta1.DetectedLanguageOrBuilder getLanguages
      *
      * repeated .google.cloud.translation.v3beta1.DetectedLanguage languages = 1;
      */
-    public java.util.List
-        getLanguagesOrBuilderList() {
+    public java.util.List 
+         getLanguagesOrBuilderList() {
       if (languagesBuilder_ != null) {
         return languagesBuilder_.getMessageOrBuilderList();
       } else {
@@ -872,8 +788,6 @@ public com.google.cloud.translate.v3beta1.DetectedLanguageOrBuilder getLanguages
       }
     }
     /**
-     *
-     *
      * 
      * A list of detected languages sorted by detection confidence in descending
      * order. The most probable language first.
@@ -882,12 +796,10 @@ public com.google.cloud.translate.v3beta1.DetectedLanguageOrBuilder getLanguages
      * repeated .google.cloud.translation.v3beta1.DetectedLanguage languages = 1;
      */
     public com.google.cloud.translate.v3beta1.DetectedLanguage.Builder addLanguagesBuilder() {
-      return getLanguagesFieldBuilder()
-          .addBuilder(com.google.cloud.translate.v3beta1.DetectedLanguage.getDefaultInstance());
+      return getLanguagesFieldBuilder().addBuilder(
+          com.google.cloud.translate.v3beta1.DetectedLanguage.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * A list of detected languages sorted by detection confidence in descending
      * order. The most probable language first.
@@ -897,13 +809,10 @@ public com.google.cloud.translate.v3beta1.DetectedLanguage.Builder addLanguagesB
      */
     public com.google.cloud.translate.v3beta1.DetectedLanguage.Builder addLanguagesBuilder(
         int index) {
-      return getLanguagesFieldBuilder()
-          .addBuilder(
-              index, com.google.cloud.translate.v3beta1.DetectedLanguage.getDefaultInstance());
+      return getLanguagesFieldBuilder().addBuilder(
+          index, com.google.cloud.translate.v3beta1.DetectedLanguage.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * A list of detected languages sorted by detection confidence in descending
      * order. The most probable language first.
@@ -911,30 +820,27 @@ public com.google.cloud.translate.v3beta1.DetectedLanguage.Builder addLanguagesB
      *
      * repeated .google.cloud.translation.v3beta1.DetectedLanguage languages = 1;
      */
-    public java.util.List
-        getLanguagesBuilderList() {
+    public java.util.List 
+         getLanguagesBuilderList() {
       return getLanguagesFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.translate.v3beta1.DetectedLanguage,
-            com.google.cloud.translate.v3beta1.DetectedLanguage.Builder,
-            com.google.cloud.translate.v3beta1.DetectedLanguageOrBuilder>
+        com.google.cloud.translate.v3beta1.DetectedLanguage, com.google.cloud.translate.v3beta1.DetectedLanguage.Builder, com.google.cloud.translate.v3beta1.DetectedLanguageOrBuilder> 
         getLanguagesFieldBuilder() {
       if (languagesBuilder_ == null) {
-        languagesBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.translate.v3beta1.DetectedLanguage,
-                com.google.cloud.translate.v3beta1.DetectedLanguage.Builder,
-                com.google.cloud.translate.v3beta1.DetectedLanguageOrBuilder>(
-                languages_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        languagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.translate.v3beta1.DetectedLanguage, com.google.cloud.translate.v3beta1.DetectedLanguage.Builder, com.google.cloud.translate.v3beta1.DetectedLanguageOrBuilder>(
+                languages_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         languages_ = null;
       }
       return languagesBuilder_;
     }
-
     @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);
     }
 
@@ -944,12 +850,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.DetectLanguageResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.DetectLanguageResponse)
   private static final com.google.cloud.translate.v3beta1.DetectLanguageResponse DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.DetectLanguageResponse();
   }
@@ -958,16 +864,16 @@ public static com.google.cloud.translate.v3beta1.DetectLanguageResponse getDefau
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public DetectLanguageResponse parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new DetectLanguageResponse(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public DetectLanguageResponse parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new DetectLanguageResponse(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -982,4 +888,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3beta1.DetectLanguageResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageResponseOrBuilder.java b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageResponseOrBuilder.java
similarity index 71%
rename from proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageResponseOrBuilder.java
rename to owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageResponseOrBuilder.java
index de23a1e8..efeecfb6 100644
--- a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageResponseOrBuilder.java
+++ b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageResponseOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2020 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/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
-public interface DetectLanguageResponseOrBuilder
-    extends
+public interface DetectLanguageResponseOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.DetectLanguageResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * A list of detected languages sorted by detection confidence in descending
    * order. The most probable language first.
@@ -33,10 +15,9 @@ public interface DetectLanguageResponseOrBuilder
    *
    * repeated .google.cloud.translation.v3beta1.DetectedLanguage languages = 1;
    */
-  java.util.List getLanguagesList();
+  java.util.List 
+      getLanguagesList();
   /**
-   *
-   *
    * 
    * A list of detected languages sorted by detection confidence in descending
    * order. The most probable language first.
@@ -46,8 +27,6 @@ public interface DetectLanguageResponseOrBuilder
    */
   com.google.cloud.translate.v3beta1.DetectedLanguage getLanguages(int index);
   /**
-   *
-   *
    * 
    * A list of detected languages sorted by detection confidence in descending
    * order. The most probable language first.
@@ -57,8 +36,6 @@ public interface DetectLanguageResponseOrBuilder
    */
   int getLanguagesCount();
   /**
-   *
-   *
    * 
    * A list of detected languages sorted by detection confidence in descending
    * order. The most probable language first.
@@ -66,11 +43,9 @@ public interface DetectLanguageResponseOrBuilder
    *
    * repeated .google.cloud.translation.v3beta1.DetectedLanguage languages = 1;
    */
-  java.util.List
+  java.util.List 
       getLanguagesOrBuilderList();
   /**
-   *
-   *
    * 
    * A list of detected languages sorted by detection confidence in descending
    * order. The most probable language first.
@@ -78,5 +53,6 @@ public interface DetectLanguageResponseOrBuilder
    *
    * repeated .google.cloud.translation.v3beta1.DetectedLanguage languages = 1;
    */
-  com.google.cloud.translate.v3beta1.DetectedLanguageOrBuilder getLanguagesOrBuilder(int index);
+  com.google.cloud.translate.v3beta1.DetectedLanguageOrBuilder getLanguagesOrBuilder(
+      int index);
 }
diff --git a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectedLanguage.java b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectedLanguage.java
similarity index 70%
rename from proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectedLanguage.java
rename to owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectedLanguage.java
index 4b213fd2..6d1c95c5 100644
--- a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectedLanguage.java
+++ b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectedLanguage.java
@@ -1,57 +1,40 @@
-/*
- * Copyright 2020 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/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
 /**
- *
- *
  * 
  * The response message for language detection.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.DetectedLanguage} */ -public final class DetectedLanguage extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DetectedLanguage extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.DetectedLanguage) DetectedLanguageOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DetectedLanguage.newBuilder() to construct. private DetectedLanguage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DetectedLanguage() { languageCode_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DetectedLanguage(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DetectedLanguage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,64 +53,58 @@ private DetectedLanguage( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - languageCode_ = s; - break; - } - case 21: - { - confidence_ = input.readFloat(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + languageCode_ = s; + break; + } + case 21: { + + confidence_ = input.readFloat(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_DetectedLanguage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DetectedLanguage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_DetectedLanguage_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DetectedLanguage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.DetectedLanguage.class, - com.google.cloud.translate.v3beta1.DetectedLanguage.Builder.class); + com.google.cloud.translate.v3beta1.DetectedLanguage.class, com.google.cloud.translate.v3beta1.DetectedLanguage.Builder.class); } public static final int LANGUAGE_CODE_FIELD_NUMBER = 1; private volatile java.lang.Object languageCode_; /** - * - * *
    * The BCP-47 language code of source content in the request, detected
    * automatically.
    * 
* * string language_code = 1; - * * @return The languageCode. */ @java.lang.Override @@ -136,30 +113,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; } } /** - * - * *
    * The BCP-47 language code of source content in the request, detected
    * automatically.
    * 
* * string language_code = 1; - * * @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 { @@ -170,14 +147,11 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { public static final int CONFIDENCE_FIELD_NUMBER = 2; private float confidence_; /** - * - * *
    * The confidence of the detection result for this language.
    * 
* * float confidence = 2; - * * @return The confidence. */ @java.lang.Override @@ -186,7 +160,6 @@ public float getConfidence() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -198,8 +171,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getLanguageCodeBytes().isEmpty()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, languageCode_); } if (confidence_ != 0F) { @@ -214,11 +188,12 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, languageCode_); } if (confidence_ != 0F) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, confidence_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(2, confidence_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -228,17 +203,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.cloud.translate.v3beta1.DetectedLanguage)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.DetectedLanguage other = - (com.google.cloud.translate.v3beta1.DetectedLanguage) obj; + com.google.cloud.translate.v3beta1.DetectedLanguage other = (com.google.cloud.translate.v3beta1.DetectedLanguage) obj; - if (!getLanguageCode().equals(other.getLanguageCode())) return false; + if (!getLanguageCode() + .equals(other.getLanguageCode())) return false; if (java.lang.Float.floatToIntBits(getConfidence()) - != java.lang.Float.floatToIntBits(other.getConfidence())) return false; + != java.lang.Float.floatToIntBits( + other.getConfidence())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -253,133 +229,125 @@ public int hashCode() { hash = (37 * hash) + LANGUAGE_CODE_FIELD_NUMBER; hash = (53 * hash) + getLanguageCode().hashCode(); hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getConfidence()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.translate.v3beta1.DetectedLanguage 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.cloud.translate.v3beta1.DetectedLanguage 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.cloud.translate.v3beta1.DetectedLanguage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.DetectedLanguage 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.cloud.translate.v3beta1.DetectedLanguage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.DetectedLanguage 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.cloud.translate.v3beta1.DetectedLanguage parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.DetectedLanguage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.DetectedLanguage 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.cloud.translate.v3beta1.DetectedLanguage parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.DetectedLanguage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.DetectedLanguage 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.cloud.translate.v3beta1.DetectedLanguage 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.cloud.translate.v3beta1.DetectedLanguage 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.cloud.translate.v3beta1.DetectedLanguage 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 message for language detection.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.DetectedLanguage} */ - 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.translation.v3beta1.DetectedLanguage) com.google.cloud.translate.v3beta1.DetectedLanguageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_DetectedLanguage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DetectedLanguage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_DetectedLanguage_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DetectedLanguage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.DetectedLanguage.class, - com.google.cloud.translate.v3beta1.DetectedLanguage.Builder.class); + com.google.cloud.translate.v3beta1.DetectedLanguage.class, com.google.cloud.translate.v3beta1.DetectedLanguage.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.DetectedLanguage.newBuilder() @@ -387,15 +355,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -407,9 +376,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_DetectedLanguage_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DetectedLanguage_descriptor; } @java.lang.Override @@ -428,8 +397,7 @@ public com.google.cloud.translate.v3beta1.DetectedLanguage build() { @java.lang.Override public com.google.cloud.translate.v3beta1.DetectedLanguage buildPartial() { - com.google.cloud.translate.v3beta1.DetectedLanguage result = - new com.google.cloud.translate.v3beta1.DetectedLanguage(this); + com.google.cloud.translate.v3beta1.DetectedLanguage result = new com.google.cloud.translate.v3beta1.DetectedLanguage(this); result.languageCode_ = languageCode_; result.confidence_ = confidence_; onBuilt(); @@ -440,39 +408,38 @@ public com.google.cloud.translate.v3beta1.DetectedLanguage 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.cloud.translate.v3beta1.DetectedLanguage) { - return mergeFrom((com.google.cloud.translate.v3beta1.DetectedLanguage) other); + return mergeFrom((com.google.cloud.translate.v3beta1.DetectedLanguage)other); } else { super.mergeFrom(other); return this; @@ -480,8 +447,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.DetectedLanguage other) { - if (other == com.google.cloud.translate.v3beta1.DetectedLanguage.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3beta1.DetectedLanguage.getDefaultInstance()) return this; if (!other.getLanguageCode().isEmpty()) { languageCode_ = other.languageCode_; onChanged(); @@ -508,8 +474,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.translate.v3beta1.DetectedLanguage) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.translate.v3beta1.DetectedLanguage) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -521,21 +486,19 @@ public Builder mergeFrom( private java.lang.Object languageCode_ = ""; /** - * - * *
      * The BCP-47 language code of source content in the request, detected
      * automatically.
      * 
* * string language_code = 1; - * * @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; @@ -544,22 +507,21 @@ public java.lang.String getLanguageCode() { } } /** - * - * *
      * The BCP-47 language code of source content in the request, detected
      * automatically.
      * 
* * string language_code = 1; - * * @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 { @@ -567,79 +529,69 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } } /** - * - * *
      * The BCP-47 language code of source content in the request, detected
      * automatically.
      * 
* * string language_code = 1; - * * @param value The languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCode(java.lang.String value) { + public Builder setLanguageCode( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + languageCode_ = value; onChanged(); return this; } /** - * - * *
      * The BCP-47 language code of source content in the request, detected
      * automatically.
      * 
* * string language_code = 1; - * * @return This builder for chaining. */ public Builder clearLanguageCode() { - + languageCode_ = getDefaultInstance().getLanguageCode(); onChanged(); return this; } /** - * - * *
      * The BCP-47 language code of source content in the request, detected
      * automatically.
      * 
* * string language_code = 1; - * * @param value The bytes for languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { + public Builder setLanguageCodeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + languageCode_ = value; onChanged(); return this; } - private float confidence_; + private float confidence_ ; /** - * - * *
      * The confidence of the detection result for this language.
      * 
* * float confidence = 2; - * * @return The confidence. */ @java.lang.Override @@ -647,43 +599,37 @@ public float getConfidence() { return confidence_; } /** - * - * *
      * The confidence of the detection result for this language.
      * 
* * float confidence = 2; - * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; onChanged(); return this; } /** - * - * *
      * The confidence of the detection result for this language.
      * 
* * float confidence = 2; - * * @return This builder for chaining. */ public Builder clearConfidence() { - + confidence_ = 0F; 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); } @@ -693,12 +639,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.DetectedLanguage) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.DetectedLanguage) private static final com.google.cloud.translate.v3beta1.DetectedLanguage DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.DetectedLanguage(); } @@ -707,16 +653,16 @@ public static com.google.cloud.translate.v3beta1.DetectedLanguage getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DetectedLanguage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DetectedLanguage(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DetectedLanguage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DetectedLanguage(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -731,4 +677,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3beta1.DetectedLanguage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectedLanguageOrBuilder.java b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectedLanguageOrBuilder.java similarity index 56% rename from proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectedLanguageOrBuilder.java rename to owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectedLanguageOrBuilder.java index 1f9d6840..18315afd 100644 --- a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectedLanguageOrBuilder.java +++ b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectedLanguageOrBuilder.java @@ -1,64 +1,40 @@ -/* - * Copyright 2020 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/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; -public interface DetectedLanguageOrBuilder - extends +public interface DetectedLanguageOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.DetectedLanguage) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The BCP-47 language code of source content in the request, detected
    * automatically.
    * 
* * string language_code = 1; - * * @return The languageCode. */ java.lang.String getLanguageCode(); /** - * - * *
    * The BCP-47 language code of source content in the request, detected
    * automatically.
    * 
* * string language_code = 1; - * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString getLanguageCodeBytes(); + com.google.protobuf.ByteString + getLanguageCodeBytes(); /** - * - * *
    * The confidence of the detection result for this language.
    * 
* * float confidence = 2; - * * @return The confidence. */ float getConfidence(); diff --git a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentInputConfig.java b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentInputConfig.java similarity index 74% rename from proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentInputConfig.java rename to owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentInputConfig.java index 17e1f527..e63d2d92 100644 --- a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentInputConfig.java +++ b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentInputConfig.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 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/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; /** - * - * *
  * A document translation request input config.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.DocumentInputConfig} */ -public final class DocumentInputConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DocumentInputConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.DocumentInputConfig) DocumentInputConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DocumentInputConfig.newBuilder() to construct. private DocumentInputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DocumentInputConfig() { mimeType_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DocumentInputConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DocumentInputConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,81 +53,72 @@ private DocumentInputConfig( case 0: done = true; break; - case 10: - { - sourceCase_ = 1; - source_ = input.readBytes(); - break; + case 10: { + sourceCase_ = 1; + source_ = input.readBytes(); + break; + } + case 18: { + com.google.cloud.translate.v3beta1.GcsSource.Builder subBuilder = null; + if (sourceCase_ == 2) { + subBuilder = ((com.google.cloud.translate.v3beta1.GcsSource) source_).toBuilder(); } - case 18: - { - com.google.cloud.translate.v3beta1.GcsSource.Builder subBuilder = null; - if (sourceCase_ == 2) { - subBuilder = ((com.google.cloud.translate.v3beta1.GcsSource) source_).toBuilder(); - } - source_ = - input.readMessage( - com.google.cloud.translate.v3beta1.GcsSource.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.translate.v3beta1.GcsSource) source_); - source_ = subBuilder.buildPartial(); - } - sourceCase_ = 2; - break; + source_ = + input.readMessage(com.google.cloud.translate.v3beta1.GcsSource.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.translate.v3beta1.GcsSource) source_); + source_ = subBuilder.buildPartial(); } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + sourceCase_ = 2; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); - mimeType_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + mimeType_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_DocumentInputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DocumentInputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_DocumentInputConfig_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DocumentInputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.DocumentInputConfig.class, - com.google.cloud.translate.v3beta1.DocumentInputConfig.Builder.class); + com.google.cloud.translate.v3beta1.DocumentInputConfig.class, com.google.cloud.translate.v3beta1.DocumentInputConfig.Builder.class); } private int sourceCase_ = 0; private java.lang.Object source_; - public enum SourceCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { CONTENT(1), GCS_SOURCE(2), SOURCE_NOT_SET(0); private final int value; - private SourceCase(int value) { this.value = value; } @@ -160,36 +134,30 @@ public static SourceCase valueOf(int value) { public static SourceCase forNumber(int value) { switch (value) { - case 1: - return CONTENT; - case 2: - return GCS_SOURCE; - case 0: - return SOURCE_NOT_SET; - default: - return null; + case 1: return CONTENT; + case 2: return GCS_SOURCE; + case 0: return SOURCE_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public SourceCase getSourceCase() { - return SourceCase.forNumber(sourceCase_); + public SourceCase + getSourceCase() { + return SourceCase.forNumber( + sourceCase_); } public static final int CONTENT_FIELD_NUMBER = 1; /** - * - * *
    * Document's content represented as a stream of bytes.
    * 
* * bytes content = 1; - * * @return Whether the content field is set. */ @java.lang.Override @@ -197,14 +165,11 @@ public boolean hasContent() { return sourceCase_ == 1; } /** - * - * *
    * Document's content represented as a stream of bytes.
    * 
* * bytes content = 1; - * * @return The content. */ @java.lang.Override @@ -217,15 +182,12 @@ public com.google.protobuf.ByteString getContent() { public static final int GCS_SOURCE_FIELD_NUMBER = 2; /** - * - * *
    * Google Cloud Storage location. This must be a single file.
    * For example: gs://example_bucket/example_file.pdf
    * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 2; - * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -233,27 +195,22 @@ public boolean hasGcsSource() { return sourceCase_ == 2; } /** - * - * *
    * Google Cloud Storage location. This must be a single file.
    * For example: gs://example_bucket/example_file.pdf
    * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 2; - * * @return The gcsSource. */ @java.lang.Override public com.google.cloud.translate.v3beta1.GcsSource getGcsSource() { if (sourceCase_ == 2) { - return (com.google.cloud.translate.v3beta1.GcsSource) source_; + return (com.google.cloud.translate.v3beta1.GcsSource) source_; } return com.google.cloud.translate.v3beta1.GcsSource.getDefaultInstance(); } /** - * - * *
    * Google Cloud Storage location. This must be a single file.
    * For example: gs://example_bucket/example_file.pdf
@@ -264,7 +221,7 @@ public com.google.cloud.translate.v3beta1.GcsSource getGcsSource() {
   @java.lang.Override
   public com.google.cloud.translate.v3beta1.GcsSourceOrBuilder getGcsSourceOrBuilder() {
     if (sourceCase_ == 2) {
-      return (com.google.cloud.translate.v3beta1.GcsSource) source_;
+       return (com.google.cloud.translate.v3beta1.GcsSource) source_;
     }
     return com.google.cloud.translate.v3beta1.GcsSource.getDefaultInstance();
   }
@@ -272,8 +229,6 @@ public com.google.cloud.translate.v3beta1.GcsSourceOrBuilder getGcsSourceOrBuild
   public static final int MIME_TYPE_FIELD_NUMBER = 4;
   private volatile java.lang.Object mimeType_;
   /**
-   *
-   *
    * 
    * Specifies the input document's mime_type.
    * If not specified it will be determined using the file extension for
@@ -287,7 +242,6 @@ public com.google.cloud.translate.v3beta1.GcsSourceOrBuilder getGcsSourceOrBuild
    * 
* * string mime_type = 4; - * * @return The mimeType. */ @java.lang.Override @@ -296,15 +250,14 @@ public java.lang.String getMimeType() { 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(); mimeType_ = s; return s; } } /** - * - * *
    * Specifies the input document's mime_type.
    * If not specified it will be determined using the file extension for
@@ -318,15 +271,16 @@ public java.lang.String getMimeType() {
    * 
* * string mime_type = 4; - * * @return The bytes for mimeType. */ @java.lang.Override - public com.google.protobuf.ByteString getMimeTypeBytes() { + public com.google.protobuf.ByteString + getMimeTypeBytes() { java.lang.Object ref = mimeType_; 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); mimeType_ = b; return b; } else { @@ -335,7 +289,6 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -347,14 +300,16 @@ 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 (sourceCase_ == 1) { - output.writeBytes(1, (com.google.protobuf.ByteString) source_); + output.writeBytes( + 1, (com.google.protobuf.ByteString) source_); } if (sourceCase_ == 2) { output.writeMessage(2, (com.google.cloud.translate.v3beta1.GcsSource) source_); } - if (!getMimeTypeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mimeType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, mimeType_); } unknownFields.writeTo(output); @@ -367,16 +322,15 @@ public int getSerializedSize() { size = 0; if (sourceCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeBytesSize( - 1, (com.google.protobuf.ByteString) source_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize( + 1, (com.google.protobuf.ByteString) source_); } if (sourceCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.cloud.translate.v3beta1.GcsSource) source_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.cloud.translate.v3beta1.GcsSource) source_); } - if (!getMimeTypeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mimeType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, mimeType_); } size += unknownFields.getSerializedSize(); @@ -387,22 +341,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.cloud.translate.v3beta1.DocumentInputConfig)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.DocumentInputConfig other = - (com.google.cloud.translate.v3beta1.DocumentInputConfig) obj; + com.google.cloud.translate.v3beta1.DocumentInputConfig other = (com.google.cloud.translate.v3beta1.DocumentInputConfig) obj; - if (!getMimeType().equals(other.getMimeType())) return false; + if (!getMimeType() + .equals(other.getMimeType())) return false; if (!getSourceCase().equals(other.getSourceCase())) return false; switch (sourceCase_) { case 1: - if (!getContent().equals(other.getContent())) return false; + if (!getContent() + .equals(other.getContent())) return false; break; case 2: - if (!getGcsSource().equals(other.getGcsSource())) return false; + if (!getGcsSource() + .equals(other.getGcsSource())) return false; break; case 0: default: @@ -438,127 +394,117 @@ public int hashCode() { } public static com.google.cloud.translate.v3beta1.DocumentInputConfig 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.cloud.translate.v3beta1.DocumentInputConfig 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.cloud.translate.v3beta1.DocumentInputConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.DocumentInputConfig 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.cloud.translate.v3beta1.DocumentInputConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.DocumentInputConfig 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.cloud.translate.v3beta1.DocumentInputConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.DocumentInputConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.DocumentInputConfig 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.cloud.translate.v3beta1.DocumentInputConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.DocumentInputConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.DocumentInputConfig 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.cloud.translate.v3beta1.DocumentInputConfig 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.cloud.translate.v3beta1.DocumentInputConfig 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.cloud.translate.v3beta1.DocumentInputConfig prototype) { + public static Builder newBuilder(com.google.cloud.translate.v3beta1.DocumentInputConfig 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 document translation request input config.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.DocumentInputConfig} */ - 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.translation.v3beta1.DocumentInputConfig) com.google.cloud.translate.v3beta1.DocumentInputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_DocumentInputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DocumentInputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_DocumentInputConfig_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DocumentInputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.DocumentInputConfig.class, - com.google.cloud.translate.v3beta1.DocumentInputConfig.Builder.class); + com.google.cloud.translate.v3beta1.DocumentInputConfig.class, com.google.cloud.translate.v3beta1.DocumentInputConfig.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.DocumentInputConfig.newBuilder() @@ -566,15 +512,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -586,9 +533,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_DocumentInputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DocumentInputConfig_descriptor; } @java.lang.Override @@ -607,8 +554,7 @@ public com.google.cloud.translate.v3beta1.DocumentInputConfig build() { @java.lang.Override public com.google.cloud.translate.v3beta1.DocumentInputConfig buildPartial() { - com.google.cloud.translate.v3beta1.DocumentInputConfig result = - new com.google.cloud.translate.v3beta1.DocumentInputConfig(this); + com.google.cloud.translate.v3beta1.DocumentInputConfig result = new com.google.cloud.translate.v3beta1.DocumentInputConfig(this); if (sourceCase_ == 1) { result.source_ = source_; } @@ -629,39 +575,38 @@ public com.google.cloud.translate.v3beta1.DocumentInputConfig 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.cloud.translate.v3beta1.DocumentInputConfig) { - return mergeFrom((com.google.cloud.translate.v3beta1.DocumentInputConfig) other); + return mergeFrom((com.google.cloud.translate.v3beta1.DocumentInputConfig)other); } else { super.mergeFrom(other); return this; @@ -669,27 +614,23 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.DocumentInputConfig other) { - if (other == com.google.cloud.translate.v3beta1.DocumentInputConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3beta1.DocumentInputConfig.getDefaultInstance()) return this; if (!other.getMimeType().isEmpty()) { mimeType_ = other.mimeType_; onChanged(); } switch (other.getSourceCase()) { - case CONTENT: - { - setContent(other.getContent()); - break; - } - case GCS_SOURCE: - { - mergeGcsSource(other.getGcsSource()); - break; - } - case SOURCE_NOT_SET: - { - break; - } + case CONTENT: { + setContent(other.getContent()); + break; + } + case GCS_SOURCE: { + mergeGcsSource(other.getGcsSource()); + break; + } + case SOURCE_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -710,8 +651,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.translate.v3beta1.DocumentInputConfig) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.translate.v3beta1.DocumentInputConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -720,12 +660,12 @@ public Builder mergeFrom( } return this; } - private int sourceCase_ = 0; private java.lang.Object source_; - - public SourceCase getSourceCase() { - return SourceCase.forNumber(sourceCase_); + public SourceCase + getSourceCase() { + return SourceCase.forNumber( + sourceCase_); } public Builder clearSource() { @@ -735,29 +675,24 @@ public Builder clearSource() { return this; } + /** - * - * *
      * Document's content represented as a stream of bytes.
      * 
* * bytes content = 1; - * * @return Whether the content field is set. */ public boolean hasContent() { return sourceCase_ == 1; } /** - * - * *
      * Document's content represented as a stream of bytes.
      * 
* * bytes content = 1; - * * @return The content. */ public com.google.protobuf.ByteString getContent() { @@ -767,35 +702,29 @@ public com.google.protobuf.ByteString getContent() { return com.google.protobuf.ByteString.EMPTY; } /** - * - * *
      * Document's content represented as a stream of bytes.
      * 
* * bytes content = 1; - * * @param value The content to set. * @return This builder for chaining. */ public Builder setContent(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - sourceCase_ = 1; + throw new NullPointerException(); + } + sourceCase_ = 1; source_ = value; onChanged(); return this; } /** - * - * *
      * Document's content represented as a stream of bytes.
      * 
* * bytes content = 1; - * * @return This builder for chaining. */ public Builder clearContent() { @@ -808,20 +737,14 @@ public Builder clearContent() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.GcsSource, - com.google.cloud.translate.v3beta1.GcsSource.Builder, - com.google.cloud.translate.v3beta1.GcsSourceOrBuilder> - gcsSourceBuilder_; + com.google.cloud.translate.v3beta1.GcsSource, com.google.cloud.translate.v3beta1.GcsSource.Builder, com.google.cloud.translate.v3beta1.GcsSourceOrBuilder> gcsSourceBuilder_; /** - * - * *
      * Google Cloud Storage location. This must be a single file.
      * For example: gs://example_bucket/example_file.pdf
      * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 2; - * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -829,15 +752,12 @@ public boolean hasGcsSource() { return sourceCase_ == 2; } /** - * - * *
      * Google Cloud Storage location. This must be a single file.
      * For example: gs://example_bucket/example_file.pdf
      * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 2; - * * @return The gcsSource. */ @java.lang.Override @@ -855,8 +775,6 @@ public com.google.cloud.translate.v3beta1.GcsSource getGcsSource() { } } /** - * - * *
      * Google Cloud Storage location. This must be a single file.
      * For example: gs://example_bucket/example_file.pdf
@@ -878,8 +796,6 @@ public Builder setGcsSource(com.google.cloud.translate.v3beta1.GcsSource value)
       return this;
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage location. This must be a single file.
      * For example: gs://example_bucket/example_file.pdf
@@ -899,8 +815,6 @@ public Builder setGcsSource(
       return this;
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage location. This must be a single file.
      * For example: gs://example_bucket/example_file.pdf
@@ -910,13 +824,10 @@ public Builder setGcsSource(
      */
     public Builder mergeGcsSource(com.google.cloud.translate.v3beta1.GcsSource value) {
       if (gcsSourceBuilder_ == null) {
-        if (sourceCase_ == 2
-            && source_ != com.google.cloud.translate.v3beta1.GcsSource.getDefaultInstance()) {
-          source_ =
-              com.google.cloud.translate.v3beta1.GcsSource.newBuilder(
-                      (com.google.cloud.translate.v3beta1.GcsSource) source_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (sourceCase_ == 2 &&
+            source_ != com.google.cloud.translate.v3beta1.GcsSource.getDefaultInstance()) {
+          source_ = com.google.cloud.translate.v3beta1.GcsSource.newBuilder((com.google.cloud.translate.v3beta1.GcsSource) source_)
+              .mergeFrom(value).buildPartial();
         } else {
           source_ = value;
         }
@@ -931,8 +842,6 @@ public Builder mergeGcsSource(com.google.cloud.translate.v3beta1.GcsSource value
       return this;
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage location. This must be a single file.
      * For example: gs://example_bucket/example_file.pdf
@@ -957,8 +866,6 @@ public Builder clearGcsSource() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage location. This must be a single file.
      * For example: gs://example_bucket/example_file.pdf
@@ -970,8 +877,6 @@ public com.google.cloud.translate.v3beta1.GcsSource.Builder getGcsSourceBuilder(
       return getGcsSourceFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage location. This must be a single file.
      * For example: gs://example_bucket/example_file.pdf
@@ -991,8 +896,6 @@ public com.google.cloud.translate.v3beta1.GcsSourceOrBuilder getGcsSourceOrBuild
       }
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage location. This must be a single file.
      * For example: gs://example_bucket/example_file.pdf
@@ -1001,34 +904,26 @@ public com.google.cloud.translate.v3beta1.GcsSourceOrBuilder getGcsSourceOrBuild
      * .google.cloud.translation.v3beta1.GcsSource gcs_source = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.translate.v3beta1.GcsSource,
-            com.google.cloud.translate.v3beta1.GcsSource.Builder,
-            com.google.cloud.translate.v3beta1.GcsSourceOrBuilder>
+        com.google.cloud.translate.v3beta1.GcsSource, com.google.cloud.translate.v3beta1.GcsSource.Builder, com.google.cloud.translate.v3beta1.GcsSourceOrBuilder> 
         getGcsSourceFieldBuilder() {
       if (gcsSourceBuilder_ == null) {
         if (!(sourceCase_ == 2)) {
           source_ = com.google.cloud.translate.v3beta1.GcsSource.getDefaultInstance();
         }
-        gcsSourceBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.translate.v3beta1.GcsSource,
-                com.google.cloud.translate.v3beta1.GcsSource.Builder,
-                com.google.cloud.translate.v3beta1.GcsSourceOrBuilder>(
+        gcsSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.translate.v3beta1.GcsSource, com.google.cloud.translate.v3beta1.GcsSource.Builder, com.google.cloud.translate.v3beta1.GcsSourceOrBuilder>(
                 (com.google.cloud.translate.v3beta1.GcsSource) source_,
                 getParentForChildren(),
                 isClean());
         source_ = null;
       }
       sourceCase_ = 2;
-      onChanged();
-      ;
+      onChanged();;
       return gcsSourceBuilder_;
     }
 
     private java.lang.Object mimeType_ = "";
     /**
-     *
-     *
      * 
      * Specifies the input document's mime_type.
      * If not specified it will be determined using the file extension for
@@ -1042,13 +937,13 @@ public com.google.cloud.translate.v3beta1.GcsSourceOrBuilder getGcsSourceOrBuild
      * 
* * string mime_type = 4; - * * @return The mimeType. */ public java.lang.String getMimeType() { java.lang.Object ref = mimeType_; 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(); mimeType_ = s; return s; @@ -1057,8 +952,6 @@ public java.lang.String getMimeType() { } } /** - * - * *
      * Specifies the input document's mime_type.
      * If not specified it will be determined using the file extension for
@@ -1072,14 +965,15 @@ public java.lang.String getMimeType() {
      * 
* * string mime_type = 4; - * * @return The bytes for mimeType. */ - public com.google.protobuf.ByteString getMimeTypeBytes() { + public com.google.protobuf.ByteString + getMimeTypeBytes() { java.lang.Object ref = mimeType_; 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); mimeType_ = b; return b; } else { @@ -1087,8 +981,6 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { } } /** - * - * *
      * Specifies the input document's mime_type.
      * If not specified it will be determined using the file extension for
@@ -1102,22 +994,20 @@ public com.google.protobuf.ByteString getMimeTypeBytes() {
      * 
* * string mime_type = 4; - * * @param value The mimeType to set. * @return This builder for chaining. */ - public Builder setMimeType(java.lang.String value) { + public Builder setMimeType( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + mimeType_ = value; onChanged(); return this; } /** - * - * *
      * Specifies the input document's mime_type.
      * If not specified it will be determined using the file extension for
@@ -1131,18 +1021,15 @@ public Builder setMimeType(java.lang.String value) {
      * 
* * string mime_type = 4; - * * @return This builder for chaining. */ public Builder clearMimeType() { - + mimeType_ = getDefaultInstance().getMimeType(); onChanged(); return this; } /** - * - * *
      * Specifies the input document's mime_type.
      * If not specified it will be determined using the file extension for
@@ -1156,23 +1043,23 @@ public Builder clearMimeType() {
      * 
* * string mime_type = 4; - * * @param value The bytes for mimeType to set. * @return This builder for chaining. */ - public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { + public Builder setMimeTypeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mimeType_ = value; 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); } @@ -1182,12 +1069,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.DocumentInputConfig) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.DocumentInputConfig) private static final com.google.cloud.translate.v3beta1.DocumentInputConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.DocumentInputConfig(); } @@ -1196,16 +1083,16 @@ public static com.google.cloud.translate.v3beta1.DocumentInputConfig getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DocumentInputConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DocumentInputConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DocumentInputConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DocumentInputConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1220,4 +1107,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3beta1.DocumentInputConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentInputConfigOrBuilder.java b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentInputConfigOrBuilder.java similarity index 79% rename from proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentInputConfigOrBuilder.java rename to owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentInputConfigOrBuilder.java index 6ec47de4..26f6c721 100644 --- a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentInputConfigOrBuilder.java +++ b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentInputConfigOrBuilder.java @@ -1,82 +1,52 @@ -/* - * Copyright 2020 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/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; -public interface DocumentInputConfigOrBuilder - extends +public interface DocumentInputConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.DocumentInputConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Document's content represented as a stream of bytes.
    * 
* * bytes content = 1; - * * @return Whether the content field is set. */ boolean hasContent(); /** - * - * *
    * Document's content represented as a stream of bytes.
    * 
* * bytes content = 1; - * * @return The content. */ com.google.protobuf.ByteString getContent(); /** - * - * *
    * Google Cloud Storage location. This must be a single file.
    * For example: gs://example_bucket/example_file.pdf
    * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 2; - * * @return Whether the gcsSource field is set. */ boolean hasGcsSource(); /** - * - * *
    * Google Cloud Storage location. This must be a single file.
    * For example: gs://example_bucket/example_file.pdf
    * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 2; - * * @return The gcsSource. */ com.google.cloud.translate.v3beta1.GcsSource getGcsSource(); /** - * - * *
    * Google Cloud Storage location. This must be a single file.
    * For example: gs://example_bucket/example_file.pdf
@@ -87,8 +57,6 @@ public interface DocumentInputConfigOrBuilder
   com.google.cloud.translate.v3beta1.GcsSourceOrBuilder getGcsSourceOrBuilder();
 
   /**
-   *
-   *
    * 
    * Specifies the input document's mime_type.
    * If not specified it will be determined using the file extension for
@@ -102,13 +70,10 @@ public interface DocumentInputConfigOrBuilder
    * 
* * string mime_type = 4; - * * @return The mimeType. */ java.lang.String getMimeType(); /** - * - * *
    * Specifies the input document's mime_type.
    * If not specified it will be determined using the file extension for
@@ -122,10 +87,10 @@ public interface DocumentInputConfigOrBuilder
    * 
* * string mime_type = 4; - * * @return The bytes for mimeType. */ - com.google.protobuf.ByteString getMimeTypeBytes(); + com.google.protobuf.ByteString + getMimeTypeBytes(); public com.google.cloud.translate.v3beta1.DocumentInputConfig.SourceCase getSourceCase(); } diff --git a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentOutputConfig.java b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentOutputConfig.java similarity index 81% rename from proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentOutputConfig.java rename to owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentOutputConfig.java index 2be0d86c..e55a0250 100644 --- a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentOutputConfig.java +++ b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentOutputConfig.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 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/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; /** - * - * *
  * A document translation request output config.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.DocumentOutputConfig} */ -public final class DocumentOutputConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DocumentOutputConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.DocumentOutputConfig) DocumentOutputConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DocumentOutputConfig.newBuilder() to construct. private DocumentOutputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DocumentOutputConfig() { mimeType_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DocumentOutputConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DocumentOutputConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,77 +53,66 @@ private DocumentOutputConfig( case 0: done = true; break; - case 10: - { - com.google.cloud.translate.v3beta1.GcsDestination.Builder subBuilder = null; - if (destinationCase_ == 1) { - subBuilder = - ((com.google.cloud.translate.v3beta1.GcsDestination) destination_).toBuilder(); - } - destination_ = - input.readMessage( - com.google.cloud.translate.v3beta1.GcsDestination.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.translate.v3beta1.GcsDestination) destination_); - destination_ = subBuilder.buildPartial(); - } - destinationCase_ = 1; - break; + case 10: { + com.google.cloud.translate.v3beta1.GcsDestination.Builder subBuilder = null; + if (destinationCase_ == 1) { + subBuilder = ((com.google.cloud.translate.v3beta1.GcsDestination) destination_).toBuilder(); } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - mimeType_ = s; - break; + destination_ = + input.readMessage(com.google.cloud.translate.v3beta1.GcsDestination.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.translate.v3beta1.GcsDestination) destination_); + destination_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + destinationCase_ = 1; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + mimeType_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_DocumentOutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DocumentOutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_DocumentOutputConfig_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DocumentOutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.DocumentOutputConfig.class, - com.google.cloud.translate.v3beta1.DocumentOutputConfig.Builder.class); + com.google.cloud.translate.v3beta1.DocumentOutputConfig.class, com.google.cloud.translate.v3beta1.DocumentOutputConfig.Builder.class); } private int destinationCase_ = 0; private java.lang.Object destination_; - public enum DestinationCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_DESTINATION(1), DESTINATION_NOT_SET(0); private final int value; - private DestinationCase(int value) { this.value = value; } @@ -156,28 +128,24 @@ public static DestinationCase valueOf(int value) { public static DestinationCase forNumber(int value) { switch (value) { - case 1: - return GCS_DESTINATION; - case 0: - return DESTINATION_NOT_SET; - default: - return null; + case 1: return GCS_DESTINATION; + case 0: return DESTINATION_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public DestinationCase getDestinationCase() { - return DestinationCase.forNumber(destinationCase_); + public DestinationCase + getDestinationCase() { + return DestinationCase.forNumber( + destinationCase_); } public static final int GCS_DESTINATION_FIELD_NUMBER = 1; /** - * - * *
    * Optional. Google Cloud Storage destination for the translation output,
    * e.g., `gs://my_bucket/my_directory/`.
@@ -215,10 +183,7 @@ public DestinationCase getDestinationCase() {
    * bucket.
    * 
* - * - * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -226,8 +191,6 @@ public boolean hasGcsDestination() { return destinationCase_ == 1; } /** - * - * *
    * Optional. Google Cloud Storage destination for the translation output,
    * e.g., `gs://my_bucket/my_directory/`.
@@ -265,22 +228,17 @@ public boolean hasGcsDestination() {
    * bucket.
    * 
* - * - * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The gcsDestination. */ @java.lang.Override public com.google.cloud.translate.v3beta1.GcsDestination getGcsDestination() { if (destinationCase_ == 1) { - return (com.google.cloud.translate.v3beta1.GcsDestination) destination_; + return (com.google.cloud.translate.v3beta1.GcsDestination) destination_; } return com.google.cloud.translate.v3beta1.GcsDestination.getDefaultInstance(); } /** - * - * *
    * Optional. Google Cloud Storage destination for the translation output,
    * e.g., `gs://my_bucket/my_directory/`.
@@ -318,14 +276,12 @@ public com.google.cloud.translate.v3beta1.GcsDestination getGcsDestination() {
    * bucket.
    * 
* - * - * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder getGcsDestinationOrBuilder() { if (destinationCase_ == 1) { - return (com.google.cloud.translate.v3beta1.GcsDestination) destination_; + return (com.google.cloud.translate.v3beta1.GcsDestination) destination_; } return com.google.cloud.translate.v3beta1.GcsDestination.getDefaultInstance(); } @@ -333,8 +289,6 @@ public com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder getGcsDestinat public static final int MIME_TYPE_FIELD_NUMBER = 3; private volatile java.lang.Object mimeType_; /** - * - * *
    * Optional. Specifies the translated document's mime_type.
    * If not specified, the translated file's mime type will be the same as the
@@ -348,7 +302,6 @@ public com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder getGcsDestinat
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The mimeType. */ @java.lang.Override @@ -357,15 +310,14 @@ public java.lang.String getMimeType() { 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(); mimeType_ = s; return s; } } /** - * - * *
    * Optional. Specifies the translated document's mime_type.
    * If not specified, the translated file's mime type will be the same as the
@@ -379,15 +331,16 @@ public java.lang.String getMimeType() {
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for mimeType. */ @java.lang.Override - public com.google.protobuf.ByteString getMimeTypeBytes() { + public com.google.protobuf.ByteString + getMimeTypeBytes() { java.lang.Object ref = mimeType_; 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); mimeType_ = b; return b; } else { @@ -396,7 +349,6 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -408,11 +360,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 (destinationCase_ == 1) { output.writeMessage(1, (com.google.cloud.translate.v3beta1.GcsDestination) destination_); } - if (!getMimeTypeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mimeType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, mimeType_); } unknownFields.writeTo(output); @@ -425,11 +378,10 @@ public int getSerializedSize() { size = 0; if (destinationCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, (com.google.cloud.translate.v3beta1.GcsDestination) destination_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.google.cloud.translate.v3beta1.GcsDestination) destination_); } - if (!getMimeTypeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mimeType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, mimeType_); } size += unknownFields.getSerializedSize(); @@ -440,19 +392,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.cloud.translate.v3beta1.DocumentOutputConfig)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.DocumentOutputConfig other = - (com.google.cloud.translate.v3beta1.DocumentOutputConfig) obj; + com.google.cloud.translate.v3beta1.DocumentOutputConfig other = (com.google.cloud.translate.v3beta1.DocumentOutputConfig) obj; - if (!getMimeType().equals(other.getMimeType())) return false; + if (!getMimeType() + .equals(other.getMimeType())) return false; if (!getDestinationCase().equals(other.getDestinationCase())) return false; switch (destinationCase_) { case 1: - if (!getGcsDestination().equals(other.getGcsDestination())) return false; + if (!getGcsDestination() + .equals(other.getGcsDestination())) return false; break; case 0: default: @@ -484,127 +437,117 @@ public int hashCode() { } public static com.google.cloud.translate.v3beta1.DocumentOutputConfig 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.cloud.translate.v3beta1.DocumentOutputConfig 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.cloud.translate.v3beta1.DocumentOutputConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.DocumentOutputConfig 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.cloud.translate.v3beta1.DocumentOutputConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.DocumentOutputConfig 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.cloud.translate.v3beta1.DocumentOutputConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.DocumentOutputConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.DocumentOutputConfig 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.cloud.translate.v3beta1.DocumentOutputConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.DocumentOutputConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.DocumentOutputConfig 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.cloud.translate.v3beta1.DocumentOutputConfig 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.cloud.translate.v3beta1.DocumentOutputConfig 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.cloud.translate.v3beta1.DocumentOutputConfig prototype) { + public static Builder newBuilder(com.google.cloud.translate.v3beta1.DocumentOutputConfig 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 document translation request output config.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.DocumentOutputConfig} */ - 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.translation.v3beta1.DocumentOutputConfig) com.google.cloud.translate.v3beta1.DocumentOutputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_DocumentOutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DocumentOutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_DocumentOutputConfig_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DocumentOutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.DocumentOutputConfig.class, - com.google.cloud.translate.v3beta1.DocumentOutputConfig.Builder.class); + com.google.cloud.translate.v3beta1.DocumentOutputConfig.class, com.google.cloud.translate.v3beta1.DocumentOutputConfig.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.DocumentOutputConfig.newBuilder() @@ -612,15 +555,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -632,9 +576,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_DocumentOutputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DocumentOutputConfig_descriptor; } @java.lang.Override @@ -653,8 +597,7 @@ public com.google.cloud.translate.v3beta1.DocumentOutputConfig build() { @java.lang.Override public com.google.cloud.translate.v3beta1.DocumentOutputConfig buildPartial() { - com.google.cloud.translate.v3beta1.DocumentOutputConfig result = - new com.google.cloud.translate.v3beta1.DocumentOutputConfig(this); + com.google.cloud.translate.v3beta1.DocumentOutputConfig result = new com.google.cloud.translate.v3beta1.DocumentOutputConfig(this); if (destinationCase_ == 1) { if (gcsDestinationBuilder_ == null) { result.destination_ = destination_; @@ -672,39 +615,38 @@ public com.google.cloud.translate.v3beta1.DocumentOutputConfig 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.cloud.translate.v3beta1.DocumentOutputConfig) { - return mergeFrom((com.google.cloud.translate.v3beta1.DocumentOutputConfig) other); + return mergeFrom((com.google.cloud.translate.v3beta1.DocumentOutputConfig)other); } else { super.mergeFrom(other); return this; @@ -712,22 +654,19 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.DocumentOutputConfig other) { - if (other == com.google.cloud.translate.v3beta1.DocumentOutputConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3beta1.DocumentOutputConfig.getDefaultInstance()) return this; if (!other.getMimeType().isEmpty()) { mimeType_ = other.mimeType_; onChanged(); } switch (other.getDestinationCase()) { - case GCS_DESTINATION: - { - mergeGcsDestination(other.getGcsDestination()); - break; - } - case DESTINATION_NOT_SET: - { - break; - } + case GCS_DESTINATION: { + mergeGcsDestination(other.getGcsDestination()); + break; + } + case DESTINATION_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -748,8 +687,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.translate.v3beta1.DocumentOutputConfig) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.translate.v3beta1.DocumentOutputConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -758,12 +696,12 @@ public Builder mergeFrom( } return this; } - private int destinationCase_ = 0; private java.lang.Object destination_; - - public DestinationCase getDestinationCase() { - return DestinationCase.forNumber(destinationCase_); + public DestinationCase + getDestinationCase() { + return DestinationCase.forNumber( + destinationCase_); } public Builder clearDestination() { @@ -773,14 +711,10 @@ public Builder clearDestination() { return this; } + private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.GcsDestination, - com.google.cloud.translate.v3beta1.GcsDestination.Builder, - com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder> - gcsDestinationBuilder_; + com.google.cloud.translate.v3beta1.GcsDestination, com.google.cloud.translate.v3beta1.GcsDestination.Builder, com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder> gcsDestinationBuilder_; /** - * - * *
      * Optional. Google Cloud Storage destination for the translation output,
      * e.g., `gs://my_bucket/my_directory/`.
@@ -818,10 +752,7 @@ public Builder clearDestination() {
      * bucket.
      * 
* - * - * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -829,8 +760,6 @@ public boolean hasGcsDestination() { return destinationCase_ == 1; } /** - * - * *
      * Optional. Google Cloud Storage destination for the translation output,
      * e.g., `gs://my_bucket/my_directory/`.
@@ -868,10 +797,7 @@ public boolean hasGcsDestination() {
      * bucket.
      * 
* - * - * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The gcsDestination. */ @java.lang.Override @@ -889,8 +815,6 @@ public com.google.cloud.translate.v3beta1.GcsDestination getGcsDestination() { } } /** - * - * *
      * Optional. Google Cloud Storage destination for the translation output,
      * e.g., `gs://my_bucket/my_directory/`.
@@ -928,9 +852,7 @@ public com.google.cloud.translate.v3beta1.GcsDestination getGcsDestination() {
      * bucket.
      * 
* - * - * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setGcsDestination(com.google.cloud.translate.v3beta1.GcsDestination value) { if (gcsDestinationBuilder_ == null) { @@ -946,8 +868,6 @@ public Builder setGcsDestination(com.google.cloud.translate.v3beta1.GcsDestinati return this; } /** - * - * *
      * Optional. Google Cloud Storage destination for the translation output,
      * e.g., `gs://my_bucket/my_directory/`.
@@ -985,9 +905,7 @@ public Builder setGcsDestination(com.google.cloud.translate.v3beta1.GcsDestinati
      * bucket.
      * 
* - * - * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setGcsDestination( com.google.cloud.translate.v3beta1.GcsDestination.Builder builderForValue) { @@ -1001,8 +919,6 @@ public Builder setGcsDestination( return this; } /** - * - * *
      * Optional. Google Cloud Storage destination for the translation output,
      * e.g., `gs://my_bucket/my_directory/`.
@@ -1040,20 +956,14 @@ public Builder setGcsDestination(
      * bucket.
      * 
* - * - * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeGcsDestination(com.google.cloud.translate.v3beta1.GcsDestination value) { if (gcsDestinationBuilder_ == null) { - if (destinationCase_ == 1 - && destination_ - != com.google.cloud.translate.v3beta1.GcsDestination.getDefaultInstance()) { - destination_ = - com.google.cloud.translate.v3beta1.GcsDestination.newBuilder( - (com.google.cloud.translate.v3beta1.GcsDestination) destination_) - .mergeFrom(value) - .buildPartial(); + if (destinationCase_ == 1 && + destination_ != com.google.cloud.translate.v3beta1.GcsDestination.getDefaultInstance()) { + destination_ = com.google.cloud.translate.v3beta1.GcsDestination.newBuilder((com.google.cloud.translate.v3beta1.GcsDestination) destination_) + .mergeFrom(value).buildPartial(); } else { destination_ = value; } @@ -1068,8 +978,6 @@ public Builder mergeGcsDestination(com.google.cloud.translate.v3beta1.GcsDestina return this; } /** - * - * *
      * Optional. Google Cloud Storage destination for the translation output,
      * e.g., `gs://my_bucket/my_directory/`.
@@ -1107,9 +1015,7 @@ public Builder mergeGcsDestination(com.google.cloud.translate.v3beta1.GcsDestina
      * bucket.
      * 
* - * - * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearGcsDestination() { if (gcsDestinationBuilder_ == null) { @@ -1128,8 +1034,6 @@ public Builder clearGcsDestination() { return this; } /** - * - * *
      * Optional. Google Cloud Storage destination for the translation output,
      * e.g., `gs://my_bucket/my_directory/`.
@@ -1167,16 +1071,12 @@ public Builder clearGcsDestination() {
      * bucket.
      * 
* - * - * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.translate.v3beta1.GcsDestination.Builder getGcsDestinationBuilder() { return getGcsDestinationFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Google Cloud Storage destination for the translation output,
      * e.g., `gs://my_bucket/my_directory/`.
@@ -1214,9 +1114,7 @@ public com.google.cloud.translate.v3beta1.GcsDestination.Builder getGcsDestinati
      * bucket.
      * 
* - * - * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder getGcsDestinationOrBuilder() { @@ -1230,8 +1128,6 @@ public com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder getGcsDestinat } } /** - * - * *
      * Optional. Google Cloud Storage destination for the translation output,
      * e.g., `gs://my_bucket/my_directory/`.
@@ -1269,39 +1165,29 @@ public com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder getGcsDestinat
      * bucket.
      * 
* - * - * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.GcsDestination, - com.google.cloud.translate.v3beta1.GcsDestination.Builder, - com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder> + com.google.cloud.translate.v3beta1.GcsDestination, com.google.cloud.translate.v3beta1.GcsDestination.Builder, com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder> getGcsDestinationFieldBuilder() { if (gcsDestinationBuilder_ == null) { if (!(destinationCase_ == 1)) { destination_ = com.google.cloud.translate.v3beta1.GcsDestination.getDefaultInstance(); } - gcsDestinationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.GcsDestination, - com.google.cloud.translate.v3beta1.GcsDestination.Builder, - com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder>( + gcsDestinationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3beta1.GcsDestination, com.google.cloud.translate.v3beta1.GcsDestination.Builder, com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder>( (com.google.cloud.translate.v3beta1.GcsDestination) destination_, getParentForChildren(), isClean()); destination_ = null; } destinationCase_ = 1; - onChanged(); - ; + onChanged();; return gcsDestinationBuilder_; } private java.lang.Object mimeType_ = ""; /** - * - * *
      * Optional. Specifies the translated document's mime_type.
      * If not specified, the translated file's mime type will be the same as the
@@ -1315,13 +1201,13 @@ public com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder getGcsDestinat
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The mimeType. */ public java.lang.String getMimeType() { java.lang.Object ref = mimeType_; 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(); mimeType_ = s; return s; @@ -1330,8 +1216,6 @@ public java.lang.String getMimeType() { } } /** - * - * *
      * Optional. Specifies the translated document's mime_type.
      * If not specified, the translated file's mime type will be the same as the
@@ -1345,14 +1229,15 @@ public java.lang.String getMimeType() {
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for mimeType. */ - public com.google.protobuf.ByteString getMimeTypeBytes() { + public com.google.protobuf.ByteString + getMimeTypeBytes() { java.lang.Object ref = mimeType_; 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); mimeType_ = b; return b; } else { @@ -1360,8 +1245,6 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { } } /** - * - * *
      * Optional. Specifies the translated document's mime_type.
      * If not specified, the translated file's mime type will be the same as the
@@ -1375,22 +1258,20 @@ public com.google.protobuf.ByteString getMimeTypeBytes() {
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The mimeType to set. * @return This builder for chaining. */ - public Builder setMimeType(java.lang.String value) { + public Builder setMimeType( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + mimeType_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Specifies the translated document's mime_type.
      * If not specified, the translated file's mime type will be the same as the
@@ -1404,18 +1285,15 @@ public Builder setMimeType(java.lang.String value) {
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearMimeType() { - + mimeType_ = getDefaultInstance().getMimeType(); onChanged(); return this; } /** - * - * *
      * Optional. Specifies the translated document's mime_type.
      * If not specified, the translated file's mime type will be the same as the
@@ -1429,23 +1307,23 @@ public Builder clearMimeType() {
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for mimeType to set. * @return This builder for chaining. */ - public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { + public Builder setMimeTypeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mimeType_ = value; 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); } @@ -1455,12 +1333,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.DocumentOutputConfig) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.DocumentOutputConfig) private static final com.google.cloud.translate.v3beta1.DocumentOutputConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.DocumentOutputConfig(); } @@ -1469,16 +1347,16 @@ public static com.google.cloud.translate.v3beta1.DocumentOutputConfig getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DocumentOutputConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DocumentOutputConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DocumentOutputConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DocumentOutputConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1493,4 +1371,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3beta1.DocumentOutputConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentOutputConfigOrBuilder.java b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentOutputConfigOrBuilder.java similarity index 86% rename from proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentOutputConfigOrBuilder.java rename to owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentOutputConfigOrBuilder.java index b5f4ac1d..53a55aba 100644 --- a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentOutputConfigOrBuilder.java +++ b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentOutputConfigOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 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/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; -public interface DocumentOutputConfigOrBuilder - extends +public interface DocumentOutputConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.DocumentOutputConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Optional. Google Cloud Storage destination for the translation output,
    * e.g., `gs://my_bucket/my_directory/`.
@@ -63,16 +45,11 @@ public interface DocumentOutputConfigOrBuilder
    * bucket.
    * 
* - * - * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the gcsDestination field is set. */ boolean hasGcsDestination(); /** - * - * *
    * Optional. Google Cloud Storage destination for the translation output,
    * e.g., `gs://my_bucket/my_directory/`.
@@ -110,16 +87,11 @@ public interface DocumentOutputConfigOrBuilder
    * bucket.
    * 
* - * - * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The gcsDestination. */ com.google.cloud.translate.v3beta1.GcsDestination getGcsDestination(); /** - * - * *
    * Optional. Google Cloud Storage destination for the translation output,
    * e.g., `gs://my_bucket/my_directory/`.
@@ -157,15 +129,11 @@ public interface DocumentOutputConfigOrBuilder
    * bucket.
    * 
* - * - * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder getGcsDestinationOrBuilder(); /** - * - * *
    * Optional. Specifies the translated document's mime_type.
    * If not specified, the translated file's mime type will be the same as the
@@ -179,13 +147,10 @@ public interface DocumentOutputConfigOrBuilder
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The mimeType. */ java.lang.String getMimeType(); /** - * - * *
    * Optional. Specifies the translated document's mime_type.
    * If not specified, the translated file's mime type will be the same as the
@@ -199,11 +164,10 @@ public interface DocumentOutputConfigOrBuilder
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for mimeType. */ - com.google.protobuf.ByteString getMimeTypeBytes(); + com.google.protobuf.ByteString + getMimeTypeBytes(); - public com.google.cloud.translate.v3beta1.DocumentOutputConfig.DestinationCase - getDestinationCase(); + public com.google.cloud.translate.v3beta1.DocumentOutputConfig.DestinationCase getDestinationCase(); } diff --git a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentTranslation.java b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentTranslation.java similarity index 73% rename from proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentTranslation.java rename to owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentTranslation.java index e39d786c..bb28410e 100644 --- a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentTranslation.java +++ b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentTranslation.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 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/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; /** - * - * *
  * A translated document message.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.DocumentTranslation} */ -public final class DocumentTranslation extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DocumentTranslation extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.DocumentTranslation) DocumentTranslationOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DocumentTranslation.newBuilder() to construct. private DocumentTranslation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DocumentTranslation() { byteStreamOutputs_ = java.util.Collections.emptyList(); mimeType_ = ""; @@ -45,15 +27,16 @@ private DocumentTranslation() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DocumentTranslation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DocumentTranslation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,42 +56,40 @@ private DocumentTranslation( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - byteStreamOutputs_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - byteStreamOutputs_.add(input.readBytes()); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + byteStreamOutputs_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + byteStreamOutputs_.add(input.readBytes()); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - mimeType_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + mimeType_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - detectedLanguageCode_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + detectedLanguageCode_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { byteStreamOutputs_ = java.util.Collections.unmodifiableList(byteStreamOutputs_); // C @@ -117,27 +98,22 @@ private DocumentTranslation( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_DocumentTranslation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DocumentTranslation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_DocumentTranslation_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DocumentTranslation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.DocumentTranslation.class, - com.google.cloud.translate.v3beta1.DocumentTranslation.Builder.class); + com.google.cloud.translate.v3beta1.DocumentTranslation.class, com.google.cloud.translate.v3beta1.DocumentTranslation.Builder.class); } public static final int BYTE_STREAM_OUTPUTS_FIELD_NUMBER = 1; private java.util.List byteStreamOutputs_; /** - * - * *
    * The array of translated documents. It is expected to be size 1 for now. We
    * may produce multiple translated documents in the future for other type of
@@ -145,16 +121,14 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * repeated bytes byte_stream_outputs = 1; - * * @return A list containing the byteStreamOutputs. */ @java.lang.Override - public java.util.List getByteStreamOutputsList() { + public java.util.List + getByteStreamOutputsList() { return byteStreamOutputs_; } /** - * - * *
    * The array of translated documents. It is expected to be size 1 for now. We
    * may produce multiple translated documents in the future for other type of
@@ -162,15 +136,12 @@ public java.util.List getByteStreamOutputsList()
    * 
* * repeated bytes byte_stream_outputs = 1; - * * @return The count of byteStreamOutputs. */ public int getByteStreamOutputsCount() { return byteStreamOutputs_.size(); } /** - * - * *
    * The array of translated documents. It is expected to be size 1 for now. We
    * may produce multiple translated documents in the future for other type of
@@ -178,7 +149,6 @@ public int getByteStreamOutputsCount() {
    * 
* * repeated bytes byte_stream_outputs = 1; - * * @param index The index of the element to return. * @return The byteStreamOutputs at the given index. */ @@ -189,14 +159,11 @@ public com.google.protobuf.ByteString getByteStreamOutputs(int index) { public static final int MIME_TYPE_FIELD_NUMBER = 2; private volatile java.lang.Object mimeType_; /** - * - * *
    * The translated document's mime type.
    * 
* * string mime_type = 2; - * * @return The mimeType. */ @java.lang.Override @@ -205,29 +172,29 @@ public java.lang.String getMimeType() { 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(); mimeType_ = s; return s; } } /** - * - * *
    * The translated document's mime type.
    * 
* * string mime_type = 2; - * * @return The bytes for mimeType. */ @java.lang.Override - public com.google.protobuf.ByteString getMimeTypeBytes() { + public com.google.protobuf.ByteString + getMimeTypeBytes() { java.lang.Object ref = mimeType_; 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); mimeType_ = b; return b; } else { @@ -238,8 +205,6 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { public static final int DETECTED_LANGUAGE_CODE_FIELD_NUMBER = 3; private volatile java.lang.Object detectedLanguageCode_; /** - * - * *
    * The detected language for the input document.
    * If the user did not provide the source language for the input document,
@@ -249,7 +214,6 @@ public com.google.protobuf.ByteString getMimeTypeBytes() {
    * 
* * string detected_language_code = 3; - * * @return The detectedLanguageCode. */ @java.lang.Override @@ -258,15 +222,14 @@ public java.lang.String getDetectedLanguageCode() { 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(); detectedLanguageCode_ = s; return s; } } /** - * - * *
    * The detected language for the input document.
    * If the user did not provide the source language for the input document,
@@ -276,15 +239,16 @@ public java.lang.String getDetectedLanguageCode() {
    * 
* * string detected_language_code = 3; - * * @return The bytes for detectedLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getDetectedLanguageCodeBytes() { + public com.google.protobuf.ByteString + getDetectedLanguageCodeBytes() { java.lang.Object ref = detectedLanguageCode_; 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); detectedLanguageCode_ = b; return b; } else { @@ -293,7 +257,6 @@ public com.google.protobuf.ByteString getDetectedLanguageCodeBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -305,14 +268,15 @@ 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 < byteStreamOutputs_.size(); i++) { output.writeBytes(1, byteStreamOutputs_.get(i)); } - if (!getMimeTypeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mimeType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, mimeType_); } - if (!getDetectedLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(detectedLanguageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, detectedLanguageCode_); } unknownFields.writeTo(output); @@ -327,16 +291,16 @@ public int getSerializedSize() { { int dataSize = 0; for (int i = 0; i < byteStreamOutputs_.size(); i++) { - dataSize += - com.google.protobuf.CodedOutputStream.computeBytesSizeNoTag(byteStreamOutputs_.get(i)); + dataSize += com.google.protobuf.CodedOutputStream + .computeBytesSizeNoTag(byteStreamOutputs_.get(i)); } size += dataSize; size += 1 * getByteStreamOutputsList().size(); } - if (!getMimeTypeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mimeType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, mimeType_); } - if (!getDetectedLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(detectedLanguageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, detectedLanguageCode_); } size += unknownFields.getSerializedSize(); @@ -347,17 +311,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.cloud.translate.v3beta1.DocumentTranslation)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.DocumentTranslation other = - (com.google.cloud.translate.v3beta1.DocumentTranslation) obj; + com.google.cloud.translate.v3beta1.DocumentTranslation other = (com.google.cloud.translate.v3beta1.DocumentTranslation) obj; - if (!getByteStreamOutputsList().equals(other.getByteStreamOutputsList())) return false; - if (!getMimeType().equals(other.getMimeType())) return false; - if (!getDetectedLanguageCode().equals(other.getDetectedLanguageCode())) return false; + if (!getByteStreamOutputsList() + .equals(other.getByteStreamOutputsList())) return false; + if (!getMimeType() + .equals(other.getMimeType())) return false; + if (!getDetectedLanguageCode() + .equals(other.getDetectedLanguageCode())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -383,127 +349,117 @@ public int hashCode() { } public static com.google.cloud.translate.v3beta1.DocumentTranslation 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.cloud.translate.v3beta1.DocumentTranslation 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.cloud.translate.v3beta1.DocumentTranslation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.DocumentTranslation 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.cloud.translate.v3beta1.DocumentTranslation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.DocumentTranslation 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.cloud.translate.v3beta1.DocumentTranslation parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.DocumentTranslation parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.DocumentTranslation 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.cloud.translate.v3beta1.DocumentTranslation parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.DocumentTranslation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.DocumentTranslation 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.cloud.translate.v3beta1.DocumentTranslation 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.cloud.translate.v3beta1.DocumentTranslation 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.cloud.translate.v3beta1.DocumentTranslation prototype) { + public static Builder newBuilder(com.google.cloud.translate.v3beta1.DocumentTranslation 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 translated document message.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.DocumentTranslation} */ - 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.translation.v3beta1.DocumentTranslation) com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_DocumentTranslation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DocumentTranslation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_DocumentTranslation_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DocumentTranslation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.DocumentTranslation.class, - com.google.cloud.translate.v3beta1.DocumentTranslation.Builder.class); + com.google.cloud.translate.v3beta1.DocumentTranslation.class, com.google.cloud.translate.v3beta1.DocumentTranslation.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.DocumentTranslation.newBuilder() @@ -511,15 +467,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -533,9 +490,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_DocumentTranslation_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DocumentTranslation_descriptor; } @java.lang.Override @@ -554,8 +511,7 @@ public com.google.cloud.translate.v3beta1.DocumentTranslation build() { @java.lang.Override public com.google.cloud.translate.v3beta1.DocumentTranslation buildPartial() { - com.google.cloud.translate.v3beta1.DocumentTranslation result = - new com.google.cloud.translate.v3beta1.DocumentTranslation(this); + com.google.cloud.translate.v3beta1.DocumentTranslation result = new com.google.cloud.translate.v3beta1.DocumentTranslation(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { byteStreamOutputs_ = java.util.Collections.unmodifiableList(byteStreamOutputs_); @@ -572,39 +528,38 @@ public com.google.cloud.translate.v3beta1.DocumentTranslation 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.cloud.translate.v3beta1.DocumentTranslation) { - return mergeFrom((com.google.cloud.translate.v3beta1.DocumentTranslation) other); + return mergeFrom((com.google.cloud.translate.v3beta1.DocumentTranslation)other); } else { super.mergeFrom(other); return this; @@ -612,8 +567,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.DocumentTranslation other) { - if (other == com.google.cloud.translate.v3beta1.DocumentTranslation.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3beta1.DocumentTranslation.getDefaultInstance()) return this; if (!other.byteStreamOutputs_.isEmpty()) { if (byteStreamOutputs_.isEmpty()) { byteStreamOutputs_ = other.byteStreamOutputs_; @@ -651,8 +605,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.translate.v3beta1.DocumentTranslation) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.translate.v3beta1.DocumentTranslation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -661,22 +614,16 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private java.util.List byteStreamOutputs_ = - java.util.Collections.emptyList(); - + private java.util.List byteStreamOutputs_ = java.util.Collections.emptyList(); private void ensureByteStreamOutputsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - byteStreamOutputs_ = - new java.util.ArrayList(byteStreamOutputs_); + byteStreamOutputs_ = new java.util.ArrayList(byteStreamOutputs_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * The array of translated documents. It is expected to be size 1 for now. We
      * may produce multiple translated documents in the future for other type of
@@ -684,17 +631,14 @@ private void ensureByteStreamOutputsIsMutable() {
      * 
* * repeated bytes byte_stream_outputs = 1; - * * @return A list containing the byteStreamOutputs. */ - public java.util.List getByteStreamOutputsList() { - return ((bitField0_ & 0x00000001) != 0) - ? java.util.Collections.unmodifiableList(byteStreamOutputs_) - : byteStreamOutputs_; + public java.util.List + getByteStreamOutputsList() { + return ((bitField0_ & 0x00000001) != 0) ? + java.util.Collections.unmodifiableList(byteStreamOutputs_) : byteStreamOutputs_; } /** - * - * *
      * The array of translated documents. It is expected to be size 1 for now. We
      * may produce multiple translated documents in the future for other type of
@@ -702,15 +646,12 @@ public java.util.List getByteStreamOutputsList()
      * 
* * repeated bytes byte_stream_outputs = 1; - * * @return The count of byteStreamOutputs. */ public int getByteStreamOutputsCount() { return byteStreamOutputs_.size(); } /** - * - * *
      * The array of translated documents. It is expected to be size 1 for now. We
      * may produce multiple translated documents in the future for other type of
@@ -718,7 +659,6 @@ public int getByteStreamOutputsCount() {
      * 
* * repeated bytes byte_stream_outputs = 1; - * * @param index The index of the element to return. * @return The byteStreamOutputs at the given index. */ @@ -726,8 +666,6 @@ public com.google.protobuf.ByteString getByteStreamOutputs(int index) { return byteStreamOutputs_.get(index); } /** - * - * *
      * The array of translated documents. It is expected to be size 1 for now. We
      * may produce multiple translated documents in the future for other type of
@@ -735,23 +673,21 @@ public com.google.protobuf.ByteString getByteStreamOutputs(int index) {
      * 
* * repeated bytes byte_stream_outputs = 1; - * * @param index The index to set the value at. * @param value The byteStreamOutputs to set. * @return This builder for chaining. */ - public Builder setByteStreamOutputs(int index, com.google.protobuf.ByteString value) { + public Builder setByteStreamOutputs( + int index, com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - ensureByteStreamOutputsIsMutable(); + throw new NullPointerException(); + } + ensureByteStreamOutputsIsMutable(); byteStreamOutputs_.set(index, value); onChanged(); return this; } /** - * - * *
      * The array of translated documents. It is expected to be size 1 for now. We
      * may produce multiple translated documents in the future for other type of
@@ -759,22 +695,19 @@ public Builder setByteStreamOutputs(int index, com.google.protobuf.ByteString va
      * 
* * repeated bytes byte_stream_outputs = 1; - * * @param value The byteStreamOutputs to add. * @return This builder for chaining. */ public Builder addByteStreamOutputs(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - ensureByteStreamOutputsIsMutable(); + throw new NullPointerException(); + } + ensureByteStreamOutputsIsMutable(); byteStreamOutputs_.add(value); onChanged(); return this; } /** - * - * *
      * The array of translated documents. It is expected to be size 1 for now. We
      * may produce multiple translated documents in the future for other type of
@@ -782,20 +715,18 @@ public Builder addByteStreamOutputs(com.google.protobuf.ByteString value) {
      * 
* * repeated bytes byte_stream_outputs = 1; - * * @param values The byteStreamOutputs to add. * @return This builder for chaining. */ public Builder addAllByteStreamOutputs( java.lang.Iterable values) { ensureByteStreamOutputsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, byteStreamOutputs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, byteStreamOutputs_); onChanged(); return this; } /** - * - * *
      * The array of translated documents. It is expected to be size 1 for now. We
      * may produce multiple translated documents in the future for other type of
@@ -803,7 +734,6 @@ public Builder addAllByteStreamOutputs(
      * 
* * repeated bytes byte_stream_outputs = 1; - * * @return This builder for chaining. */ public Builder clearByteStreamOutputs() { @@ -815,20 +745,18 @@ public Builder clearByteStreamOutputs() { private java.lang.Object mimeType_ = ""; /** - * - * *
      * The translated document's mime type.
      * 
* * string mime_type = 2; - * * @return The mimeType. */ public java.lang.String getMimeType() { java.lang.Object ref = mimeType_; 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(); mimeType_ = s; return s; @@ -837,21 +765,20 @@ public java.lang.String getMimeType() { } } /** - * - * *
      * The translated document's mime type.
      * 
* * string mime_type = 2; - * * @return The bytes for mimeType. */ - public com.google.protobuf.ByteString getMimeTypeBytes() { + public com.google.protobuf.ByteString + getMimeTypeBytes() { java.lang.Object ref = mimeType_; 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); mimeType_ = b; return b; } else { @@ -859,61 +786,54 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { } } /** - * - * *
      * The translated document's mime type.
      * 
* * string mime_type = 2; - * * @param value The mimeType to set. * @return This builder for chaining. */ - public Builder setMimeType(java.lang.String value) { + public Builder setMimeType( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + mimeType_ = value; onChanged(); return this; } /** - * - * *
      * The translated document's mime type.
      * 
* * string mime_type = 2; - * * @return This builder for chaining. */ public Builder clearMimeType() { - + mimeType_ = getDefaultInstance().getMimeType(); onChanged(); return this; } /** - * - * *
      * The translated document's mime type.
      * 
* * string mime_type = 2; - * * @param value The bytes for mimeType to set. * @return This builder for chaining. */ - public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { + public Builder setMimeTypeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mimeType_ = value; onChanged(); return this; @@ -921,8 +841,6 @@ public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { private java.lang.Object detectedLanguageCode_ = ""; /** - * - * *
      * The detected language for the input document.
      * If the user did not provide the source language for the input document,
@@ -932,13 +850,13 @@ public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) {
      * 
* * string detected_language_code = 3; - * * @return The detectedLanguageCode. */ public java.lang.String getDetectedLanguageCode() { java.lang.Object ref = detectedLanguageCode_; 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(); detectedLanguageCode_ = s; return s; @@ -947,8 +865,6 @@ public java.lang.String getDetectedLanguageCode() { } } /** - * - * *
      * The detected language for the input document.
      * If the user did not provide the source language for the input document,
@@ -958,14 +874,15 @@ public java.lang.String getDetectedLanguageCode() {
      * 
* * string detected_language_code = 3; - * * @return The bytes for detectedLanguageCode. */ - public com.google.protobuf.ByteString getDetectedLanguageCodeBytes() { + public com.google.protobuf.ByteString + getDetectedLanguageCodeBytes() { java.lang.Object ref = detectedLanguageCode_; 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); detectedLanguageCode_ = b; return b; } else { @@ -973,8 +890,6 @@ public com.google.protobuf.ByteString getDetectedLanguageCodeBytes() { } } /** - * - * *
      * The detected language for the input document.
      * If the user did not provide the source language for the input document,
@@ -984,22 +899,20 @@ public com.google.protobuf.ByteString getDetectedLanguageCodeBytes() {
      * 
* * string detected_language_code = 3; - * * @param value The detectedLanguageCode to set. * @return This builder for chaining. */ - public Builder setDetectedLanguageCode(java.lang.String value) { + public Builder setDetectedLanguageCode( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + detectedLanguageCode_ = value; onChanged(); return this; } /** - * - * *
      * The detected language for the input document.
      * If the user did not provide the source language for the input document,
@@ -1009,18 +922,15 @@ public Builder setDetectedLanguageCode(java.lang.String value) {
      * 
* * string detected_language_code = 3; - * * @return This builder for chaining. */ public Builder clearDetectedLanguageCode() { - + detectedLanguageCode_ = getDefaultInstance().getDetectedLanguageCode(); onChanged(); return this; } /** - * - * *
      * The detected language for the input document.
      * If the user did not provide the source language for the input document,
@@ -1030,23 +940,23 @@ public Builder clearDetectedLanguageCode() {
      * 
* * string detected_language_code = 3; - * * @param value The bytes for detectedLanguageCode to set. * @return This builder for chaining. */ - public Builder setDetectedLanguageCodeBytes(com.google.protobuf.ByteString value) { + public Builder setDetectedLanguageCodeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + detectedLanguageCode_ = value; 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); } @@ -1056,12 +966,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.DocumentTranslation) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.DocumentTranslation) private static final com.google.cloud.translate.v3beta1.DocumentTranslation DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.DocumentTranslation(); } @@ -1070,16 +980,16 @@ public static com.google.cloud.translate.v3beta1.DocumentTranslation getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DocumentTranslation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DocumentTranslation(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DocumentTranslation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DocumentTranslation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1094,4 +1004,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3beta1.DocumentTranslation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentTranslationOrBuilder.java b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentTranslationOrBuilder.java similarity index 76% rename from proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentTranslationOrBuilder.java rename to owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentTranslationOrBuilder.java index 50ac4acb..8dc2ef10 100644 --- a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentTranslationOrBuilder.java +++ b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentTranslationOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 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/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; -public interface DocumentTranslationOrBuilder - extends +public interface DocumentTranslationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.DocumentTranslation) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The array of translated documents. It is expected to be size 1 for now. We
    * may produce multiple translated documents in the future for other type of
@@ -33,13 +15,10 @@ public interface DocumentTranslationOrBuilder
    * 
* * repeated bytes byte_stream_outputs = 1; - * * @return A list containing the byteStreamOutputs. */ java.util.List getByteStreamOutputsList(); /** - * - * *
    * The array of translated documents. It is expected to be size 1 for now. We
    * may produce multiple translated documents in the future for other type of
@@ -47,13 +26,10 @@ public interface DocumentTranslationOrBuilder
    * 
* * repeated bytes byte_stream_outputs = 1; - * * @return The count of byteStreamOutputs. */ int getByteStreamOutputsCount(); /** - * - * *
    * The array of translated documents. It is expected to be size 1 for now. We
    * may produce multiple translated documents in the future for other type of
@@ -61,40 +37,32 @@ public interface DocumentTranslationOrBuilder
    * 
* * repeated bytes byte_stream_outputs = 1; - * * @param index The index of the element to return. * @return The byteStreamOutputs at the given index. */ com.google.protobuf.ByteString getByteStreamOutputs(int index); /** - * - * *
    * The translated document's mime type.
    * 
* * string mime_type = 2; - * * @return The mimeType. */ java.lang.String getMimeType(); /** - * - * *
    * The translated document's mime type.
    * 
* * string mime_type = 2; - * * @return The bytes for mimeType. */ - com.google.protobuf.ByteString getMimeTypeBytes(); + com.google.protobuf.ByteString + getMimeTypeBytes(); /** - * - * *
    * The detected language for the input document.
    * If the user did not provide the source language for the input document,
@@ -104,13 +72,10 @@ public interface DocumentTranslationOrBuilder
    * 
* * string detected_language_code = 3; - * * @return The detectedLanguageCode. */ java.lang.String getDetectedLanguageCode(); /** - * - * *
    * The detected language for the input document.
    * If the user did not provide the source language for the input document,
@@ -120,8 +85,8 @@ public interface DocumentTranslationOrBuilder
    * 
* * string detected_language_code = 3; - * * @return The bytes for detectedLanguageCode. */ - com.google.protobuf.ByteString getDetectedLanguageCodeBytes(); + com.google.protobuf.ByteString + getDetectedLanguageCodeBytes(); } diff --git a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsDestination.java b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsDestination.java similarity index 70% rename from proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsDestination.java rename to owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsDestination.java index fa7028d9..f2784e13 100644 --- a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsDestination.java +++ b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsDestination.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 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/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; /** - * - * *
  * The Google Cloud Storage location for the output content.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.GcsDestination} */ -public final class GcsDestination extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GcsDestination extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.GcsDestination) GcsDestinationOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GcsDestination.newBuilder() to construct. private GcsDestination(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GcsDestination() { outputUriPrefix_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GcsDestination(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GcsDestination( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,52 +53,47 @@ private GcsDestination( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - outputUriPrefix_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + outputUriPrefix_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_GcsDestination_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GcsDestination_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_GcsDestination_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GcsDestination_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.GcsDestination.class, - com.google.cloud.translate.v3beta1.GcsDestination.Builder.class); + com.google.cloud.translate.v3beta1.GcsDestination.class, com.google.cloud.translate.v3beta1.GcsDestination.Builder.class); } public static final int OUTPUT_URI_PREFIX_FIELD_NUMBER = 1; private volatile java.lang.Object outputUriPrefix_; /** - * - * *
    * Required. There must be no files under 'output_uri_prefix'.
    * 'output_uri_prefix' must end with "/" and start with "gs://", otherwise an
@@ -123,7 +101,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The outputUriPrefix. */ @java.lang.Override @@ -132,15 +109,14 @@ public java.lang.String getOutputUriPrefix() { 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(); outputUriPrefix_ = s; return s; } } /** - * - * *
    * Required. There must be no files under 'output_uri_prefix'.
    * 'output_uri_prefix' must end with "/" and start with "gs://", otherwise an
@@ -148,15 +124,16 @@ public java.lang.String getOutputUriPrefix() {
    * 
* * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for outputUriPrefix. */ @java.lang.Override - public com.google.protobuf.ByteString getOutputUriPrefixBytes() { + public com.google.protobuf.ByteString + getOutputUriPrefixBytes() { java.lang.Object ref = outputUriPrefix_; 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); outputUriPrefix_ = b; return b; } else { @@ -165,7 +142,6 @@ public com.google.protobuf.ByteString getOutputUriPrefixBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -177,8 +153,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getOutputUriPrefixBytes().isEmpty()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputUriPrefix_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, outputUriPrefix_); } unknownFields.writeTo(output); @@ -190,7 +167,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getOutputUriPrefixBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputUriPrefix_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, outputUriPrefix_); } size += unknownFields.getSerializedSize(); @@ -201,15 +178,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.cloud.translate.v3beta1.GcsDestination)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.GcsDestination other = - (com.google.cloud.translate.v3beta1.GcsDestination) obj; + com.google.cloud.translate.v3beta1.GcsDestination other = (com.google.cloud.translate.v3beta1.GcsDestination) obj; - if (!getOutputUriPrefix().equals(other.getOutputUriPrefix())) return false; + if (!getOutputUriPrefix() + .equals(other.getOutputUriPrefix())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -229,126 +206,117 @@ public int hashCode() { } public static com.google.cloud.translate.v3beta1.GcsDestination 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.cloud.translate.v3beta1.GcsDestination 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.cloud.translate.v3beta1.GcsDestination parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.GcsDestination 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.cloud.translate.v3beta1.GcsDestination parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.GcsDestination 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.cloud.translate.v3beta1.GcsDestination parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.GcsDestination parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.GcsDestination 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.cloud.translate.v3beta1.GcsDestination parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.GcsDestination parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.GcsDestination 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.cloud.translate.v3beta1.GcsDestination 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.cloud.translate.v3beta1.GcsDestination 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.cloud.translate.v3beta1.GcsDestination 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 Google Cloud Storage location for the output content.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.GcsDestination} */ - 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.translation.v3beta1.GcsDestination) com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_GcsDestination_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GcsDestination_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_GcsDestination_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GcsDestination_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.GcsDestination.class, - com.google.cloud.translate.v3beta1.GcsDestination.Builder.class); + com.google.cloud.translate.v3beta1.GcsDestination.class, com.google.cloud.translate.v3beta1.GcsDestination.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.GcsDestination.newBuilder() @@ -356,15 +324,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -374,9 +343,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_GcsDestination_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GcsDestination_descriptor; } @java.lang.Override @@ -395,8 +364,7 @@ public com.google.cloud.translate.v3beta1.GcsDestination build() { @java.lang.Override public com.google.cloud.translate.v3beta1.GcsDestination buildPartial() { - com.google.cloud.translate.v3beta1.GcsDestination result = - new com.google.cloud.translate.v3beta1.GcsDestination(this); + com.google.cloud.translate.v3beta1.GcsDestination result = new com.google.cloud.translate.v3beta1.GcsDestination(this); result.outputUriPrefix_ = outputUriPrefix_; onBuilt(); return result; @@ -406,39 +374,38 @@ public com.google.cloud.translate.v3beta1.GcsDestination 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.cloud.translate.v3beta1.GcsDestination) { - return mergeFrom((com.google.cloud.translate.v3beta1.GcsDestination) other); + return mergeFrom((com.google.cloud.translate.v3beta1.GcsDestination)other); } else { super.mergeFrom(other); return this; @@ -446,8 +413,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.GcsDestination other) { - if (other == com.google.cloud.translate.v3beta1.GcsDestination.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3beta1.GcsDestination.getDefaultInstance()) return this; if (!other.getOutputUriPrefix().isEmpty()) { outputUriPrefix_ = other.outputUriPrefix_; onChanged(); @@ -471,8 +437,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.translate.v3beta1.GcsDestination) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.translate.v3beta1.GcsDestination) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -484,8 +449,6 @@ public Builder mergeFrom( private java.lang.Object outputUriPrefix_ = ""; /** - * - * *
      * Required. There must be no files under 'output_uri_prefix'.
      * 'output_uri_prefix' must end with "/" and start with "gs://", otherwise an
@@ -493,13 +456,13 @@ public Builder mergeFrom(
      * 
* * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The outputUriPrefix. */ public java.lang.String getOutputUriPrefix() { java.lang.Object ref = outputUriPrefix_; 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(); outputUriPrefix_ = s; return s; @@ -508,8 +471,6 @@ public java.lang.String getOutputUriPrefix() { } } /** - * - * *
      * Required. There must be no files under 'output_uri_prefix'.
      * 'output_uri_prefix' must end with "/" and start with "gs://", otherwise an
@@ -517,14 +478,15 @@ public java.lang.String getOutputUriPrefix() {
      * 
* * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for outputUriPrefix. */ - public com.google.protobuf.ByteString getOutputUriPrefixBytes() { + public com.google.protobuf.ByteString + getOutputUriPrefixBytes() { java.lang.Object ref = outputUriPrefix_; 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); outputUriPrefix_ = b; return b; } else { @@ -532,8 +494,6 @@ public com.google.protobuf.ByteString getOutputUriPrefixBytes() { } } /** - * - * *
      * Required. There must be no files under 'output_uri_prefix'.
      * 'output_uri_prefix' must end with "/" and start with "gs://", otherwise an
@@ -541,22 +501,20 @@ public com.google.protobuf.ByteString getOutputUriPrefixBytes() {
      * 
* * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The outputUriPrefix to set. * @return This builder for chaining. */ - public Builder setOutputUriPrefix(java.lang.String value) { + public Builder setOutputUriPrefix( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + outputUriPrefix_ = value; onChanged(); return this; } /** - * - * *
      * Required. There must be no files under 'output_uri_prefix'.
      * 'output_uri_prefix' must end with "/" and start with "gs://", otherwise an
@@ -564,18 +522,15 @@ public Builder setOutputUriPrefix(java.lang.String value) {
      * 
* * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearOutputUriPrefix() { - + outputUriPrefix_ = getDefaultInstance().getOutputUriPrefix(); onChanged(); return this; } /** - * - * *
      * Required. There must be no files under 'output_uri_prefix'.
      * 'output_uri_prefix' must end with "/" and start with "gs://", otherwise an
@@ -583,23 +538,23 @@ public Builder clearOutputUriPrefix() {
      * 
* * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for outputUriPrefix to set. * @return This builder for chaining. */ - public Builder setOutputUriPrefixBytes(com.google.protobuf.ByteString value) { + public Builder setOutputUriPrefixBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + outputUriPrefix_ = value; 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); } @@ -609,12 +564,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.GcsDestination) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.GcsDestination) private static final com.google.cloud.translate.v3beta1.GcsDestination DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.GcsDestination(); } @@ -623,16 +578,16 @@ public static com.google.cloud.translate.v3beta1.GcsDestination getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GcsDestination parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GcsDestination(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcsDestination parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GcsDestination(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -647,4 +602,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3beta1.GcsDestination getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsDestinationOrBuilder.java b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsDestinationOrBuilder.java similarity index 59% rename from proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsDestinationOrBuilder.java rename to owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsDestinationOrBuilder.java index d454fa39..7b92ba40 100644 --- a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsDestinationOrBuilder.java +++ b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsDestinationOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 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/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; -public interface GcsDestinationOrBuilder - extends +public interface GcsDestinationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.GcsDestination) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. There must be no files under 'output_uri_prefix'.
    * 'output_uri_prefix' must end with "/" and start with "gs://", otherwise an
@@ -33,13 +15,10 @@ public interface GcsDestinationOrBuilder
    * 
* * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The outputUriPrefix. */ java.lang.String getOutputUriPrefix(); /** - * - * *
    * Required. There must be no files under 'output_uri_prefix'.
    * 'output_uri_prefix' must end with "/" and start with "gs://", otherwise an
@@ -47,8 +26,8 @@ public interface GcsDestinationOrBuilder
    * 
* * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for outputUriPrefix. */ - com.google.protobuf.ByteString getOutputUriPrefixBytes(); + com.google.protobuf.ByteString + getOutputUriPrefixBytes(); } diff --git a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsSource.java b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsSource.java similarity index 69% rename from proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsSource.java rename to owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsSource.java index 3b3c3c7b..aac4c075 100644 --- a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsSource.java +++ b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsSource.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 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/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; /** - * - * *
  * The Google Cloud Storage location for the input content.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.GcsSource} */ -public final class GcsSource extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GcsSource extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.GcsSource) GcsSourceOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GcsSource.newBuilder() to construct. private GcsSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GcsSource() { inputUri_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GcsSource(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GcsSource( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,58 +53,52 @@ private GcsSource( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - inputUri_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + inputUri_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_GcsSource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GcsSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_GcsSource_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GcsSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.GcsSource.class, - com.google.cloud.translate.v3beta1.GcsSource.Builder.class); + com.google.cloud.translate.v3beta1.GcsSource.class, com.google.cloud.translate.v3beta1.GcsSource.Builder.class); } public static final int INPUT_URI_FIELD_NUMBER = 1; private volatile java.lang.Object inputUri_; /** - * - * *
    * Required. Source data URI. For example, `gs://my_bucket/my_object`.
    * 
* * string input_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The inputUri. */ @java.lang.Override @@ -130,29 +107,29 @@ public java.lang.String getInputUri() { 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(); inputUri_ = s; return s; } } /** - * - * *
    * Required. Source data URI. For example, `gs://my_bucket/my_object`.
    * 
* * string input_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for inputUri. */ @java.lang.Override - public com.google.protobuf.ByteString getInputUriBytes() { + public com.google.protobuf.ByteString + getInputUriBytes() { java.lang.Object ref = inputUri_; 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); inputUri_ = b; return b; } else { @@ -161,7 +138,6 @@ public com.google.protobuf.ByteString getInputUriBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -173,8 +149,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getInputUriBytes().isEmpty()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(inputUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, inputUri_); } unknownFields.writeTo(output); @@ -186,7 +163,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getInputUriBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(inputUri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, inputUri_); } size += unknownFields.getSerializedSize(); @@ -197,15 +174,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.cloud.translate.v3beta1.GcsSource)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.GcsSource other = - (com.google.cloud.translate.v3beta1.GcsSource) obj; + com.google.cloud.translate.v3beta1.GcsSource other = (com.google.cloud.translate.v3beta1.GcsSource) obj; - if (!getInputUri().equals(other.getInputUri())) return false; + if (!getInputUri() + .equals(other.getInputUri())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -224,127 +201,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.translate.v3beta1.GcsSource parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.translate.v3beta1.GcsSource parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.GcsSource 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.cloud.translate.v3beta1.GcsSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.GcsSource 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.cloud.translate.v3beta1.GcsSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.GcsSource 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.cloud.translate.v3beta1.GcsSource 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.cloud.translate.v3beta1.GcsSource 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.cloud.translate.v3beta1.GcsSource parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.GcsSource parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.GcsSource 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.cloud.translate.v3beta1.GcsSource 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.cloud.translate.v3beta1.GcsSource 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.cloud.translate.v3beta1.GcsSource 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 Google Cloud Storage location for the input content.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.GcsSource} */ - 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.translation.v3beta1.GcsSource) com.google.cloud.translate.v3beta1.GcsSourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_GcsSource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GcsSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_GcsSource_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GcsSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.GcsSource.class, - com.google.cloud.translate.v3beta1.GcsSource.Builder.class); + com.google.cloud.translate.v3beta1.GcsSource.class, com.google.cloud.translate.v3beta1.GcsSource.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.GcsSource.newBuilder() @@ -352,15 +320,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -370,9 +339,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_GcsSource_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GcsSource_descriptor; } @java.lang.Override @@ -391,8 +360,7 @@ public com.google.cloud.translate.v3beta1.GcsSource build() { @java.lang.Override public com.google.cloud.translate.v3beta1.GcsSource buildPartial() { - com.google.cloud.translate.v3beta1.GcsSource result = - new com.google.cloud.translate.v3beta1.GcsSource(this); + com.google.cloud.translate.v3beta1.GcsSource result = new com.google.cloud.translate.v3beta1.GcsSource(this); result.inputUri_ = inputUri_; onBuilt(); return result; @@ -402,39 +370,38 @@ public com.google.cloud.translate.v3beta1.GcsSource 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.cloud.translate.v3beta1.GcsSource) { - return mergeFrom((com.google.cloud.translate.v3beta1.GcsSource) other); + return mergeFrom((com.google.cloud.translate.v3beta1.GcsSource)other); } else { super.mergeFrom(other); return this; @@ -478,20 +445,18 @@ public Builder mergeFrom( private java.lang.Object inputUri_ = ""; /** - * - * *
      * Required. Source data URI. For example, `gs://my_bucket/my_object`.
      * 
* * string input_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The inputUri. */ public java.lang.String getInputUri() { java.lang.Object ref = inputUri_; 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(); inputUri_ = s; return s; @@ -500,21 +465,20 @@ public java.lang.String getInputUri() { } } /** - * - * *
      * Required. Source data URI. For example, `gs://my_bucket/my_object`.
      * 
* * string input_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for inputUri. */ - public com.google.protobuf.ByteString getInputUriBytes() { + public com.google.protobuf.ByteString + getInputUriBytes() { java.lang.Object ref = inputUri_; 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); inputUri_ = b; return b; } else { @@ -522,68 +486,61 @@ public com.google.protobuf.ByteString getInputUriBytes() { } } /** - * - * *
      * Required. Source data URI. For example, `gs://my_bucket/my_object`.
      * 
* * string input_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The inputUri to set. * @return This builder for chaining. */ - public Builder setInputUri(java.lang.String value) { + public Builder setInputUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + inputUri_ = value; onChanged(); return this; } /** - * - * *
      * Required. Source data URI. For example, `gs://my_bucket/my_object`.
      * 
* * string input_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearInputUri() { - + inputUri_ = getDefaultInstance().getInputUri(); onChanged(); return this; } /** - * - * *
      * Required. Source data URI. For example, `gs://my_bucket/my_object`.
      * 
* * string input_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for inputUri to set. * @return This builder for chaining. */ - public Builder setInputUriBytes(com.google.protobuf.ByteString value) { + public Builder setInputUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + inputUri_ = value; 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 +550,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.GcsSource) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.GcsSource) private static final com.google.cloud.translate.v3beta1.GcsSource DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.GcsSource(); } @@ -607,16 +564,16 @@ public static com.google.cloud.translate.v3beta1.GcsSource getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GcsSource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GcsSource(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcsSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GcsSource(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -631,4 +588,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3beta1.GcsSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsSourceOrBuilder.java b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsSourceOrBuilder.java similarity index 52% rename from proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsSourceOrBuilder.java rename to owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsSourceOrBuilder.java index 10628377..317cdff9 100644 --- a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsSourceOrBuilder.java +++ b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsSourceOrBuilder.java @@ -1,50 +1,29 @@ -/* - * Copyright 2020 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/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; -public interface GcsSourceOrBuilder - extends +public interface GcsSourceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.GcsSource) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Source data URI. For example, `gs://my_bucket/my_object`.
    * 
* * string input_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The inputUri. */ java.lang.String getInputUri(); /** - * - * *
    * Required. Source data URI. For example, `gs://my_bucket/my_object`.
    * 
* * string input_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for inputUri. */ - com.google.protobuf.ByteString getInputUriBytes(); + com.google.protobuf.ByteString + getInputUriBytes(); } diff --git a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetGlossaryRequest.java b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetGlossaryRequest.java similarity index 64% rename from proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetGlossaryRequest.java rename to owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetGlossaryRequest.java index 83cba720..3146c408 100644 --- a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetGlossaryRequest.java +++ b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetGlossaryRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 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/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; /** - * - * *
  * Request message for GetGlossary.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.GetGlossaryRequest} */ -public final class GetGlossaryRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetGlossaryRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.GetGlossaryRequest) GetGlossaryRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetGlossaryRequest.newBuilder() to construct. private GetGlossaryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetGlossaryRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetGlossaryRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetGlossaryRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,60 +53,52 @@ private GetGlossaryRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_GetGlossaryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GetGlossaryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_GetGlossaryRequest_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GetGlossaryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.GetGlossaryRequest.class, - com.google.cloud.translate.v3beta1.GetGlossaryRequest.Builder.class); + com.google.cloud.translate.v3beta1.GetGlossaryRequest.class, com.google.cloud.translate.v3beta1.GetGlossaryRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The name of the glossary to retrieve.
    * 
* - * - * 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 @@ -132,31 +107,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; } } /** - * - * *
    * Required. The name of the glossary to retrieve.
    * 
* - * - * 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 { @@ -165,7 +138,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -177,8 +149,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + 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_); } unknownFields.writeTo(output); @@ -190,7 +163,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } size += unknownFields.getSerializedSize(); @@ -201,15 +174,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.cloud.translate.v3beta1.GetGlossaryRequest)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.GetGlossaryRequest other = - (com.google.cloud.translate.v3beta1.GetGlossaryRequest) obj; + com.google.cloud.translate.v3beta1.GetGlossaryRequest other = (com.google.cloud.translate.v3beta1.GetGlossaryRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -229,127 +202,117 @@ public int hashCode() { } public static com.google.cloud.translate.v3beta1.GetGlossaryRequest 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.cloud.translate.v3beta1.GetGlossaryRequest 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.cloud.translate.v3beta1.GetGlossaryRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.GetGlossaryRequest 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.cloud.translate.v3beta1.GetGlossaryRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.GetGlossaryRequest 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.cloud.translate.v3beta1.GetGlossaryRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.GetGlossaryRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.GetGlossaryRequest 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.cloud.translate.v3beta1.GetGlossaryRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.GetGlossaryRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.GetGlossaryRequest 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.cloud.translate.v3beta1.GetGlossaryRequest 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.cloud.translate.v3beta1.GetGlossaryRequest 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.cloud.translate.v3beta1.GetGlossaryRequest prototype) { + public static Builder newBuilder(com.google.cloud.translate.v3beta1.GetGlossaryRequest 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; } /** - * - * *
    * Request message for GetGlossary.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.GetGlossaryRequest} */ - 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.translation.v3beta1.GetGlossaryRequest) com.google.cloud.translate.v3beta1.GetGlossaryRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_GetGlossaryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GetGlossaryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_GetGlossaryRequest_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GetGlossaryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.GetGlossaryRequest.class, - com.google.cloud.translate.v3beta1.GetGlossaryRequest.Builder.class); + com.google.cloud.translate.v3beta1.GetGlossaryRequest.class, com.google.cloud.translate.v3beta1.GetGlossaryRequest.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.GetGlossaryRequest.newBuilder() @@ -357,15 +320,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -375,9 +339,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_GetGlossaryRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GetGlossaryRequest_descriptor; } @java.lang.Override @@ -396,8 +360,7 @@ public com.google.cloud.translate.v3beta1.GetGlossaryRequest build() { @java.lang.Override public com.google.cloud.translate.v3beta1.GetGlossaryRequest buildPartial() { - com.google.cloud.translate.v3beta1.GetGlossaryRequest result = - new com.google.cloud.translate.v3beta1.GetGlossaryRequest(this); + com.google.cloud.translate.v3beta1.GetGlossaryRequest result = new com.google.cloud.translate.v3beta1.GetGlossaryRequest(this); result.name_ = name_; onBuilt(); return result; @@ -407,39 +370,38 @@ public com.google.cloud.translate.v3beta1.GetGlossaryRequest 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.cloud.translate.v3beta1.GetGlossaryRequest) { - return mergeFrom((com.google.cloud.translate.v3beta1.GetGlossaryRequest) other); + return mergeFrom((com.google.cloud.translate.v3beta1.GetGlossaryRequest)other); } else { super.mergeFrom(other); return this; @@ -447,8 +409,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.GetGlossaryRequest other) { - if (other == com.google.cloud.translate.v3beta1.GetGlossaryRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3beta1.GetGlossaryRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -472,8 +433,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.translate.v3beta1.GetGlossaryRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.translate.v3beta1.GetGlossaryRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -485,22 +445,18 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the glossary to retrieve.
      * 
* - * - * 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; @@ -509,23 +465,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the glossary to retrieve.
      * 
* - * - * 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 { @@ -533,74 +486,61 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the glossary to retrieve.
      * 
* - * - * 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) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The name of the glossary to retrieve.
      * 
* - * - * 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() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The name of the glossary to retrieve.
      * 
* - * - * 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) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; 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); } @@ -610,12 +550,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.GetGlossaryRequest) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.GetGlossaryRequest) private static final com.google.cloud.translate.v3beta1.GetGlossaryRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.GetGlossaryRequest(); } @@ -624,16 +564,16 @@ public static com.google.cloud.translate.v3beta1.GetGlossaryRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetGlossaryRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetGlossaryRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetGlossaryRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetGlossaryRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -648,4 +588,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3beta1.GetGlossaryRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetGlossaryRequestOrBuilder.java b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetGlossaryRequestOrBuilder.java new file mode 100644 index 00000000..28d83bb9 --- /dev/null +++ b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetGlossaryRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/translate/v3beta1/translation_service.proto + +package com.google.cloud.translate.v3beta1; + +public interface GetGlossaryRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.GetGlossaryRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the glossary to retrieve.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The name of the glossary to retrieve.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetSupportedLanguagesRequest.java b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetSupportedLanguagesRequest.java similarity index 72% rename from proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetSupportedLanguagesRequest.java rename to owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetSupportedLanguagesRequest.java index b71f8872..e78f1e19 100644 --- a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetSupportedLanguagesRequest.java +++ b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetSupportedLanguagesRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 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/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; /** - * - * *
  * The request message for discovering supported languages.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.GetSupportedLanguagesRequest} */ -public final class GetSupportedLanguagesRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetSupportedLanguagesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.GetSupportedLanguagesRequest) GetSupportedLanguagesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetSupportedLanguagesRequest.newBuilder() to construct. private GetSupportedLanguagesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetSupportedLanguagesRequest() { parent_ = ""; displayLanguageCode_ = ""; @@ -45,15 +27,16 @@ private GetSupportedLanguagesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetSupportedLanguagesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetSupportedLanguagesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,66 +55,59 @@ private GetSupportedLanguagesRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - displayLanguageCode_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + displayLanguageCode_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - model_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + model_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + parent_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_GetSupportedLanguagesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GetSupportedLanguagesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_GetSupportedLanguagesRequest_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GetSupportedLanguagesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest.class, - com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest.Builder.class); + com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest.class, com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 3; private volatile java.lang.Object parent_; /** - * - * *
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -144,10 +120,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -156,15 +129,14 @@ 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. Project or location to make a call. Must refer to a caller's
    * project.
@@ -177,18 +149,17 @@ public java.lang.String getParent() {
    * otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 3 [(.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 { @@ -199,8 +170,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int DISPLAY_LANGUAGE_CODE_FIELD_NUMBER = 1; private volatile java.lang.Object displayLanguageCode_; /** - * - * *
    * Optional. The language to use to return localized, human readable names
    * of supported languages. If missing, then display names are not returned
@@ -208,7 +177,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string display_language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The displayLanguageCode. */ @java.lang.Override @@ -217,15 +185,14 @@ public java.lang.String getDisplayLanguageCode() { 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(); displayLanguageCode_ = s; return s; } } /** - * - * *
    * Optional. The language to use to return localized, human readable names
    * of supported languages. If missing, then display names are not returned
@@ -233,15 +200,16 @@ public java.lang.String getDisplayLanguageCode() {
    * 
* * string display_language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for displayLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getDisplayLanguageCodeBytes() { + public com.google.protobuf.ByteString + getDisplayLanguageCodeBytes() { java.lang.Object ref = displayLanguageCode_; 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); displayLanguageCode_ = b; return b; } else { @@ -252,8 +220,6 @@ public com.google.protobuf.ByteString getDisplayLanguageCodeBytes() { public static final int MODEL_FIELD_NUMBER = 2; private volatile java.lang.Object model_; /** - * - * *
    * Optional. Get supported languages of this model.
    * The format depends on model type:
@@ -266,7 +232,6 @@ public com.google.protobuf.ByteString getDisplayLanguageCodeBytes() {
    * 
* * string model = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The model. */ @java.lang.Override @@ -275,15 +240,14 @@ public java.lang.String getModel() { 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(); model_ = s; return s; } } /** - * - * *
    * Optional. Get supported languages of this model.
    * The format depends on model type:
@@ -296,15 +260,16 @@ public java.lang.String getModel() {
    * 
* * string model = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for model. */ @java.lang.Override - public com.google.protobuf.ByteString getModelBytes() { + public com.google.protobuf.ByteString + getModelBytes() { java.lang.Object ref = model_; 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); model_ = b; return b; } else { @@ -313,7 +278,6 @@ public com.google.protobuf.ByteString getModelBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -325,14 +289,15 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getDisplayLanguageCodeBytes().isEmpty()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayLanguageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, displayLanguageCode_); } - if (!getModelBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(model_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, model_); } - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, parent_); } unknownFields.writeTo(output); @@ -344,13 +309,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getDisplayLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayLanguageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, displayLanguageCode_); } - if (!getModelBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(model_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, model_); } - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, parent_); } size += unknownFields.getSerializedSize(); @@ -361,17 +326,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.cloud.translate.v3beta1.GetSupportedLanguagesRequest)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest other = - (com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (!getDisplayLanguageCode().equals(other.getDisplayLanguageCode())) return false; - if (!getModel().equals(other.getModel())) return false; + com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest other = (com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (!getDisplayLanguageCode() + .equals(other.getDisplayLanguageCode())) return false; + if (!getModel() + .equals(other.getModel())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -395,127 +362,117 @@ public int hashCode() { } public static com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest 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.cloud.translate.v3beta1.GetSupportedLanguagesRequest 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.cloud.translate.v3beta1.GetSupportedLanguagesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest 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.cloud.translate.v3beta1.GetSupportedLanguagesRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest 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.cloud.translate.v3beta1.GetSupportedLanguagesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest 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.cloud.translate.v3beta1.GetSupportedLanguagesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest 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.cloud.translate.v3beta1.GetSupportedLanguagesRequest 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.cloud.translate.v3beta1.GetSupportedLanguagesRequest 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.cloud.translate.v3beta1.GetSupportedLanguagesRequest prototype) { + public static Builder newBuilder(com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest 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 for discovering supported languages.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.GetSupportedLanguagesRequest} */ - 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.translation.v3beta1.GetSupportedLanguagesRequest) com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_GetSupportedLanguagesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GetSupportedLanguagesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_GetSupportedLanguagesRequest_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GetSupportedLanguagesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest.class, - com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest.Builder.class); + com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest.class, com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest.newBuilder() @@ -523,15 +480,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -545,14 +503,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_GetSupportedLanguagesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GetSupportedLanguagesRequest_descriptor; } @java.lang.Override - public com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest - getDefaultInstanceForType() { + public com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest getDefaultInstanceForType() { return com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest.getDefaultInstance(); } @@ -567,8 +524,7 @@ public com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest build() { @java.lang.Override public com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest buildPartial() { - com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest result = - new com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest(this); + com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest result = new com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest(this); result.parent_ = parent_; result.displayLanguageCode_ = displayLanguageCode_; result.model_ = model_; @@ -580,50 +536,46 @@ public com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest 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) { + 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.cloud.translate.v3beta1.GetSupportedLanguagesRequest) { - return mergeFrom((com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest) other); + return mergeFrom((com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest other) { - if (other - == com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest other) { + if (other == com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -655,9 +607,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -669,8 +619,6 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -683,16 +631,14 @@ public Builder mergeFrom(
      * otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 3 [(.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; @@ -701,8 +647,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -715,17 +659,16 @@ public java.lang.String getParent() {
      * otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 3 [(.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 { @@ -733,8 +676,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -747,25 +688,21 @@ public com.google.protobuf.ByteString getParentBytes() {
      * otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 3 [(.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) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -778,21 +715,16 @@ public Builder setParent(java.lang.String value) {
      * otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -805,19 +737,17 @@ public Builder clearParent() {
      * otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 3 [(.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) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -825,8 +755,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object displayLanguageCode_ = ""; /** - * - * *
      * Optional. The language to use to return localized, human readable names
      * of supported languages. If missing, then display names are not returned
@@ -834,13 +762,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string display_language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The displayLanguageCode. */ public java.lang.String getDisplayLanguageCode() { java.lang.Object ref = displayLanguageCode_; 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(); displayLanguageCode_ = s; return s; @@ -849,8 +777,6 @@ public java.lang.String getDisplayLanguageCode() { } } /** - * - * *
      * Optional. The language to use to return localized, human readable names
      * of supported languages. If missing, then display names are not returned
@@ -858,14 +784,15 @@ public java.lang.String getDisplayLanguageCode() {
      * 
* * string display_language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for displayLanguageCode. */ - public com.google.protobuf.ByteString getDisplayLanguageCodeBytes() { + public com.google.protobuf.ByteString + getDisplayLanguageCodeBytes() { java.lang.Object ref = displayLanguageCode_; 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); displayLanguageCode_ = b; return b; } else { @@ -873,8 +800,6 @@ public com.google.protobuf.ByteString getDisplayLanguageCodeBytes() { } } /** - * - * *
      * Optional. The language to use to return localized, human readable names
      * of supported languages. If missing, then display names are not returned
@@ -882,22 +807,20 @@ public com.google.protobuf.ByteString getDisplayLanguageCodeBytes() {
      * 
* * string display_language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The displayLanguageCode to set. * @return This builder for chaining. */ - public Builder setDisplayLanguageCode(java.lang.String value) { + public Builder setDisplayLanguageCode( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayLanguageCode_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The language to use to return localized, human readable names
      * of supported languages. If missing, then display names are not returned
@@ -905,18 +828,15 @@ public Builder setDisplayLanguageCode(java.lang.String value) {
      * 
* * string display_language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearDisplayLanguageCode() { - + displayLanguageCode_ = getDefaultInstance().getDisplayLanguageCode(); onChanged(); return this; } /** - * - * *
      * Optional. The language to use to return localized, human readable names
      * of supported languages. If missing, then display names are not returned
@@ -924,16 +844,16 @@ public Builder clearDisplayLanguageCode() {
      * 
* * string display_language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for displayLanguageCode to set. * @return This builder for chaining. */ - public Builder setDisplayLanguageCodeBytes(com.google.protobuf.ByteString value) { + public Builder setDisplayLanguageCodeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayLanguageCode_ = value; onChanged(); return this; @@ -941,8 +861,6 @@ public Builder setDisplayLanguageCodeBytes(com.google.protobuf.ByteString value) private java.lang.Object model_ = ""; /** - * - * *
      * Optional. Get supported languages of this model.
      * The format depends on model type:
@@ -955,13 +873,13 @@ public Builder setDisplayLanguageCodeBytes(com.google.protobuf.ByteString value)
      * 
* * string model = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; 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(); model_ = s; return s; @@ -970,8 +888,6 @@ public java.lang.String getModel() { } } /** - * - * *
      * Optional. Get supported languages of this model.
      * The format depends on model type:
@@ -984,14 +900,15 @@ public java.lang.String getModel() {
      * 
* * string model = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for model. */ - public com.google.protobuf.ByteString getModelBytes() { + public com.google.protobuf.ByteString + getModelBytes() { java.lang.Object ref = model_; 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); model_ = b; return b; } else { @@ -999,8 +916,6 @@ public com.google.protobuf.ByteString getModelBytes() { } } /** - * - * *
      * Optional. Get supported languages of this model.
      * The format depends on model type:
@@ -1013,22 +928,20 @@ public com.google.protobuf.ByteString getModelBytes() {
      * 
* * string model = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The model to set. * @return This builder for chaining. */ - public Builder setModel(java.lang.String value) { + public Builder setModel( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + model_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Get supported languages of this model.
      * The format depends on model type:
@@ -1041,18 +954,15 @@ public Builder setModel(java.lang.String value) {
      * 
* * string model = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearModel() { - + model_ = getDefaultInstance().getModel(); onChanged(); return this; } /** - * - * *
      * Optional. Get supported languages of this model.
      * The format depends on model type:
@@ -1065,23 +975,23 @@ public Builder clearModel() {
      * 
* * string model = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for model to set. * @return This builder for chaining. */ - public Builder setModelBytes(com.google.protobuf.ByteString value) { + public Builder setModelBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + model_ = value; 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); } @@ -1091,32 +1001,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.GetSupportedLanguagesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.GetSupportedLanguagesRequest) - private static final com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest(); } - public static com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest - getDefaultInstance() { + public static com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetSupportedLanguagesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetSupportedLanguagesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetSupportedLanguagesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetSupportedLanguagesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1128,8 +1036,9 @@ public com.google.protobuf.Parser getParserForType } @java.lang.Override - public com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest - getDefaultInstanceForType() { + public com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetSupportedLanguagesRequestOrBuilder.java b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetSupportedLanguagesRequestOrBuilder.java similarity index 74% rename from proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetSupportedLanguagesRequestOrBuilder.java rename to owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetSupportedLanguagesRequestOrBuilder.java index dc6a0bc0..34c99d24 100644 --- a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetSupportedLanguagesRequestOrBuilder.java +++ b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetSupportedLanguagesRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 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/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; -public interface GetSupportedLanguagesRequestOrBuilder - extends +public interface GetSupportedLanguagesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.GetSupportedLanguagesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -38,16 +20,11 @@ public interface GetSupportedLanguagesRequestOrBuilder
    * otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -60,17 +37,13 @@ public interface GetSupportedLanguagesRequestOrBuilder
    * otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 3 [(.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 language to use to return localized, human readable names
    * of supported languages. If missing, then display names are not returned
@@ -78,13 +51,10 @@ public interface GetSupportedLanguagesRequestOrBuilder
    * 
* * string display_language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The displayLanguageCode. */ java.lang.String getDisplayLanguageCode(); /** - * - * *
    * Optional. The language to use to return localized, human readable names
    * of supported languages. If missing, then display names are not returned
@@ -92,14 +62,12 @@ public interface GetSupportedLanguagesRequestOrBuilder
    * 
* * string display_language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for displayLanguageCode. */ - com.google.protobuf.ByteString getDisplayLanguageCodeBytes(); + com.google.protobuf.ByteString + getDisplayLanguageCodeBytes(); /** - * - * *
    * Optional. Get supported languages of this model.
    * The format depends on model type:
@@ -112,13 +80,10 @@ public interface GetSupportedLanguagesRequestOrBuilder
    * 
* * string model = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The model. */ java.lang.String getModel(); /** - * - * *
    * Optional. Get supported languages of this model.
    * The format depends on model type:
@@ -131,8 +96,8 @@ public interface GetSupportedLanguagesRequestOrBuilder
    * 
* * string model = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for model. */ - com.google.protobuf.ByteString getModelBytes(); + com.google.protobuf.ByteString + getModelBytes(); } diff --git a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/Glossary.java b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/Glossary.java similarity index 72% rename from proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/Glossary.java rename to owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/Glossary.java index d7868796..45b9a236 100644 --- a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/Glossary.java +++ b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/Glossary.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 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/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; /** - * - * *
  * Represents a glossary built from user provided data.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.Glossary} */ -public final class Glossary extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Glossary extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.Glossary) GlossaryOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Glossary.newBuilder() to construct. private Glossary(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Glossary() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Glossary(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Glossary( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,219 +53,180 @@ private Glossary( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; + name_ = s; + break; + } + case 26: { + com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.Builder subBuilder = null; + if (languagesCase_ == 3) { + subBuilder = ((com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair) languages_).toBuilder(); } - case 26: - { - com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.Builder subBuilder = - null; - if (languagesCase_ == 3) { - subBuilder = - ((com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair) languages_) - .toBuilder(); - } - languages_ = - input.readMessage( - com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair) languages_); - languages_ = subBuilder.buildPartial(); - } - languagesCase_ = 3; - break; + languages_ = + input.readMessage(com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair) languages_); + languages_ = subBuilder.buildPartial(); } - case 34: - { - com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.Builder subBuilder = - null; - if (languagesCase_ == 4) { - subBuilder = - ((com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet) languages_) - .toBuilder(); - } - languages_ = - input.readMessage( - com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet) languages_); - languages_ = subBuilder.buildPartial(); - } - languagesCase_ = 4; - break; + languagesCase_ = 3; + break; + } + case 34: { + com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.Builder subBuilder = null; + if (languagesCase_ == 4) { + subBuilder = ((com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet) languages_).toBuilder(); } - case 42: - { - com.google.cloud.translate.v3beta1.GlossaryInputConfig.Builder subBuilder = null; - if (inputConfig_ != null) { - subBuilder = inputConfig_.toBuilder(); - } - inputConfig_ = - input.readMessage( - com.google.cloud.translate.v3beta1.GlossaryInputConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(inputConfig_); - inputConfig_ = subBuilder.buildPartial(); - } - - break; + languages_ = + input.readMessage(com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet) languages_); + languages_ = subBuilder.buildPartial(); } - case 48: - { - entryCount_ = input.readInt32(); - break; + languagesCase_ = 4; + break; + } + case 42: { + com.google.cloud.translate.v3beta1.GlossaryInputConfig.Builder subBuilder = null; + if (inputConfig_ != null) { + subBuilder = inputConfig_.toBuilder(); + } + inputConfig_ = input.readMessage(com.google.cloud.translate.v3beta1.GlossaryInputConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(inputConfig_); + inputConfig_ = subBuilder.buildPartial(); } - case 58: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (submitTime_ != null) { - subBuilder = submitTime_.toBuilder(); - } - submitTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(submitTime_); - submitTime_ = subBuilder.buildPartial(); - } - break; + break; + } + case 48: { + + entryCount_ = input.readInt32(); + break; + } + case 58: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (submitTime_ != null) { + subBuilder = submitTime_.toBuilder(); + } + submitTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(submitTime_); + submitTime_ = subBuilder.buildPartial(); } - case 66: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (endTime_ != null) { - subBuilder = endTime_.toBuilder(); - } - endTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(endTime_); - endTime_ = subBuilder.buildPartial(); - } - break; + break; + } + case 66: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (endTime_ != null) { + subBuilder = endTime_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + endTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(endTime_); + endTime_ = subBuilder.buildPartial(); } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_Glossary_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_Glossary_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_Glossary_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_Glossary_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.Glossary.class, - com.google.cloud.translate.v3beta1.Glossary.Builder.class); + com.google.cloud.translate.v3beta1.Glossary.class, com.google.cloud.translate.v3beta1.Glossary.Builder.class); } - public interface LanguageCodePairOrBuilder - extends + public interface LanguageCodePairOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.Glossary.LanguageCodePair) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Required. The BCP-47 language code of the input text, for example,
      * "en-US". Expected to be an exact match for GlossaryTerm.language_code.
      * 
* * string source_language_code = 1; - * * @return The sourceLanguageCode. */ java.lang.String getSourceLanguageCode(); /** - * - * *
      * Required. The BCP-47 language code of the input text, for example,
      * "en-US". Expected to be an exact match for GlossaryTerm.language_code.
      * 
* * string source_language_code = 1; - * * @return The bytes for sourceLanguageCode. */ - com.google.protobuf.ByteString getSourceLanguageCodeBytes(); + com.google.protobuf.ByteString + getSourceLanguageCodeBytes(); /** - * - * *
      * Required. The BCP-47 language code for translation output, for example,
      * "zh-CN". Expected to be an exact match for GlossaryTerm.language_code.
      * 
* * string target_language_code = 2; - * * @return The targetLanguageCode. */ java.lang.String getTargetLanguageCode(); /** - * - * *
      * Required. The BCP-47 language code for translation output, for example,
      * "zh-CN". Expected to be an exact match for GlossaryTerm.language_code.
      * 
* * string target_language_code = 2; - * * @return The bytes for targetLanguageCode. */ - com.google.protobuf.ByteString getTargetLanguageCodeBytes(); + com.google.protobuf.ByteString + getTargetLanguageCodeBytes(); } /** - * - * *
    * Used with unidirectional glossaries.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.Glossary.LanguageCodePair} */ - public static final class LanguageCodePair extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class LanguageCodePair extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.Glossary.LanguageCodePair) LanguageCodePairOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use LanguageCodePair.newBuilder() to construct. private LanguageCodePair(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private LanguageCodePair() { sourceLanguageCode_ = ""; targetLanguageCode_ = ""; @@ -290,15 +234,16 @@ private LanguageCodePair() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new LanguageCodePair(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private LanguageCodePair( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -317,66 +262,59 @@ private LanguageCodePair( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - sourceLanguageCode_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + sourceLanguageCode_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - targetLanguageCode_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + targetLanguageCode_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodePair_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodePair_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodePair_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodePair_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.class, - com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.Builder.class); + com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.class, com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.Builder.class); } public static final int SOURCE_LANGUAGE_CODE_FIELD_NUMBER = 1; private volatile java.lang.Object sourceLanguageCode_; /** - * - * *
      * Required. The BCP-47 language code of the input text, for example,
      * "en-US". Expected to be an exact match for GlossaryTerm.language_code.
      * 
* * string source_language_code = 1; - * * @return The sourceLanguageCode. */ @java.lang.Override @@ -385,30 +323,30 @@ public java.lang.String getSourceLanguageCode() { 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(); sourceLanguageCode_ = s; return s; } } /** - * - * *
      * Required. The BCP-47 language code of the input text, for example,
      * "en-US". Expected to be an exact match for GlossaryTerm.language_code.
      * 
* * string source_language_code = 1; - * * @return The bytes for sourceLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { + public com.google.protobuf.ByteString + getSourceLanguageCodeBytes() { java.lang.Object ref = sourceLanguageCode_; 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); sourceLanguageCode_ = b; return b; } else { @@ -419,15 +357,12 @@ public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { public static final int TARGET_LANGUAGE_CODE_FIELD_NUMBER = 2; private volatile java.lang.Object targetLanguageCode_; /** - * - * *
      * Required. The BCP-47 language code for translation output, for example,
      * "zh-CN". Expected to be an exact match for GlossaryTerm.language_code.
      * 
* * string target_language_code = 2; - * * @return The targetLanguageCode. */ @java.lang.Override @@ -436,30 +371,30 @@ public java.lang.String getTargetLanguageCode() { 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(); targetLanguageCode_ = s; return s; } } /** - * - * *
      * Required. The BCP-47 language code for translation output, for example,
      * "zh-CN". Expected to be an exact match for GlossaryTerm.language_code.
      * 
* * string target_language_code = 2; - * * @return The bytes for targetLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { + public com.google.protobuf.ByteString + getTargetLanguageCodeBytes() { java.lang.Object ref = targetLanguageCode_; 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); targetLanguageCode_ = b; return b; } else { @@ -468,7 +403,6 @@ public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -480,11 +414,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getSourceLanguageCodeBytes().isEmpty()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceLanguageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sourceLanguageCode_); } - if (!getTargetLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetLanguageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, targetLanguageCode_); } unknownFields.writeTo(output); @@ -496,10 +431,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getSourceLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceLanguageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, sourceLanguageCode_); } - if (!getTargetLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetLanguageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, targetLanguageCode_); } size += unknownFields.getSerializedSize(); @@ -510,16 +445,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.cloud.translate.v3beta1.Glossary.LanguageCodePair)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair other = - (com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair) obj; + com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair other = (com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair) obj; - if (!getSourceLanguageCode().equals(other.getSourceLanguageCode())) return false; - if (!getTargetLanguageCode().equals(other.getTargetLanguageCode())) return false; + if (!getSourceLanguageCode() + .equals(other.getSourceLanguageCode())) return false; + if (!getTargetLanguageCode() + .equals(other.getTargetLanguageCode())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -541,94 +477,87 @@ public int hashCode() { } public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair 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.cloud.translate.v3beta1.Glossary.LanguageCodePair 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.cloud.translate.v3beta1.Glossary.LanguageCodePair parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair 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.cloud.translate.v3beta1.Glossary.LanguageCodePair parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair 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.cloud.translate.v3beta1.Glossary.LanguageCodePair parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair 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.cloud.translate.v3beta1.Glossary.LanguageCodePair parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair 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.cloud.translate.v3beta1.Glossary.LanguageCodePair 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.cloud.translate.v3beta1.Glossary.LanguageCodePair 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.cloud.translate.v3beta1.Glossary.LanguageCodePair prototype) { + public static Builder newBuilder(com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair 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 @@ -638,32 +567,27 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Used with unidirectional glossaries.
      * 
* * Protobuf type {@code google.cloud.translation.v3beta1.Glossary.LanguageCodePair} */ - 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.translation.v3beta1.Glossary.LanguageCodePair) com.google.cloud.translate.v3beta1.Glossary.LanguageCodePairOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodePair_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodePair_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodePair_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodePair_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.class, - com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.Builder.class); + com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.class, com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.newBuilder() @@ -671,15 +595,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -691,14 +616,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodePair_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodePair_descriptor; } @java.lang.Override - public com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair - getDefaultInstanceForType() { + public com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair getDefaultInstanceForType() { return com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.getDefaultInstance(); } @@ -713,8 +637,7 @@ public com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair build() { @java.lang.Override public com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair buildPartial() { - com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair result = - new com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair(this); + com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair result = new com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair(this); result.sourceLanguageCode_ = sourceLanguageCode_; result.targetLanguageCode_ = targetLanguageCode_; onBuilt(); @@ -725,41 +648,38 @@ public com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair 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.cloud.translate.v3beta1.Glossary.LanguageCodePair) { - return mergeFrom((com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair) other); + return mergeFrom((com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair)other); } else { super.mergeFrom(other); return this; @@ -767,9 +687,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair other) { - if (other - == com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.getDefaultInstance()) return this; if (!other.getSourceLanguageCode().isEmpty()) { sourceLanguageCode_ = other.sourceLanguageCode_; onChanged(); @@ -797,9 +715,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -811,21 +727,19 @@ public Builder mergeFrom( private java.lang.Object sourceLanguageCode_ = ""; /** - * - * *
        * Required. The BCP-47 language code of the input text, for example,
        * "en-US". Expected to be an exact match for GlossaryTerm.language_code.
        * 
* * string source_language_code = 1; - * * @return The sourceLanguageCode. */ public java.lang.String getSourceLanguageCode() { java.lang.Object ref = sourceLanguageCode_; 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(); sourceLanguageCode_ = s; return s; @@ -834,22 +748,21 @@ public java.lang.String getSourceLanguageCode() { } } /** - * - * *
        * Required. The BCP-47 language code of the input text, for example,
        * "en-US". Expected to be an exact match for GlossaryTerm.language_code.
        * 
* * string source_language_code = 1; - * * @return The bytes for sourceLanguageCode. */ - public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { + public com.google.protobuf.ByteString + getSourceLanguageCodeBytes() { java.lang.Object ref = sourceLanguageCode_; 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); sourceLanguageCode_ = b; return b; } else { @@ -857,64 +770,57 @@ public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { } } /** - * - * *
        * Required. The BCP-47 language code of the input text, for example,
        * "en-US". Expected to be an exact match for GlossaryTerm.language_code.
        * 
* * string source_language_code = 1; - * * @param value The sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCode(java.lang.String value) { + public Builder setSourceLanguageCode( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + sourceLanguageCode_ = value; onChanged(); return this; } /** - * - * *
        * Required. The BCP-47 language code of the input text, for example,
        * "en-US". Expected to be an exact match for GlossaryTerm.language_code.
        * 
* * string source_language_code = 1; - * * @return This builder for chaining. */ public Builder clearSourceLanguageCode() { - + sourceLanguageCode_ = getDefaultInstance().getSourceLanguageCode(); onChanged(); return this; } /** - * - * *
        * Required. The BCP-47 language code of the input text, for example,
        * "en-US". Expected to be an exact match for GlossaryTerm.language_code.
        * 
* * string source_language_code = 1; - * * @param value The bytes for sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCodeBytes(com.google.protobuf.ByteString value) { + public Builder setSourceLanguageCodeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceLanguageCode_ = value; onChanged(); return this; @@ -922,21 +828,19 @@ public Builder setSourceLanguageCodeBytes(com.google.protobuf.ByteString value) private java.lang.Object targetLanguageCode_ = ""; /** - * - * *
        * Required. The BCP-47 language code for translation output, for example,
        * "zh-CN". Expected to be an exact match for GlossaryTerm.language_code.
        * 
* * string target_language_code = 2; - * * @return The targetLanguageCode. */ public java.lang.String getTargetLanguageCode() { java.lang.Object ref = targetLanguageCode_; 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(); targetLanguageCode_ = s; return s; @@ -945,22 +849,21 @@ public java.lang.String getTargetLanguageCode() { } } /** - * - * *
        * Required. The BCP-47 language code for translation output, for example,
        * "zh-CN". Expected to be an exact match for GlossaryTerm.language_code.
        * 
* * string target_language_code = 2; - * * @return The bytes for targetLanguageCode. */ - public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { + public com.google.protobuf.ByteString + getTargetLanguageCodeBytes() { java.lang.Object ref = targetLanguageCode_; 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); targetLanguageCode_ = b; return b; } else { @@ -968,69 +871,61 @@ public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { } } /** - * - * *
        * Required. The BCP-47 language code for translation output, for example,
        * "zh-CN". Expected to be an exact match for GlossaryTerm.language_code.
        * 
* * string target_language_code = 2; - * * @param value The targetLanguageCode to set. * @return This builder for chaining. */ - public Builder setTargetLanguageCode(java.lang.String value) { + public Builder setTargetLanguageCode( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + targetLanguageCode_ = value; onChanged(); return this; } /** - * - * *
        * Required. The BCP-47 language code for translation output, for example,
        * "zh-CN". Expected to be an exact match for GlossaryTerm.language_code.
        * 
* * string target_language_code = 2; - * * @return This builder for chaining. */ public Builder clearTargetLanguageCode() { - + targetLanguageCode_ = getDefaultInstance().getTargetLanguageCode(); onChanged(); return this; } /** - * - * *
        * Required. The BCP-47 language code for translation output, for example,
        * "zh-CN". Expected to be an exact match for GlossaryTerm.language_code.
        * 
* * string target_language_code = 2; - * * @param value The bytes for targetLanguageCode to set. * @return This builder for chaining. */ - public Builder setTargetLanguageCodeBytes(com.google.protobuf.ByteString value) { + public Builder setTargetLanguageCodeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + targetLanguageCode_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1043,32 +938,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.Glossary.LanguageCodePair) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.Glossary.LanguageCodePair) - private static final com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair - DEFAULT_INSTANCE; - + private static final com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair(); } - public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair - getDefaultInstance() { + public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LanguageCodePair parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LanguageCodePair(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LanguageCodePair parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LanguageCodePair(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1080,20 +973,17 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair - getDefaultInstanceForType() { + public com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface LanguageCodesSetOrBuilder - extends + public interface LanguageCodesSetOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.Glossary.LanguageCodesSet) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * The BCP-47 language code(s) for terms defined in the glossary.
      * All entries are unique. The list contains at least two entries.
@@ -1101,13 +991,11 @@ public interface LanguageCodesSetOrBuilder
      * 
* * repeated string language_codes = 1; - * * @return A list containing the languageCodes. */ - java.util.List getLanguageCodesList(); + java.util.List + getLanguageCodesList(); /** - * - * *
      * The BCP-47 language code(s) for terms defined in the glossary.
      * All entries are unique. The list contains at least two entries.
@@ -1115,13 +1003,10 @@ public interface LanguageCodesSetOrBuilder
      * 
* * repeated string language_codes = 1; - * * @return The count of languageCodes. */ int getLanguageCodesCount(); /** - * - * *
      * The BCP-47 language code(s) for terms defined in the glossary.
      * All entries are unique. The list contains at least two entries.
@@ -1129,14 +1014,11 @@ public interface LanguageCodesSetOrBuilder
      * 
* * repeated string language_codes = 1; - * * @param index The index of the element to return. * @return The languageCodes at the given index. */ java.lang.String getLanguageCodes(int index); /** - * - * *
      * The BCP-47 language code(s) for terms defined in the glossary.
      * All entries are unique. The list contains at least two entries.
@@ -1144,46 +1026,44 @@ public interface LanguageCodesSetOrBuilder
      * 
* * repeated string language_codes = 1; - * * @param index The index of the value to return. * @return The bytes of the languageCodes at the given index. */ - com.google.protobuf.ByteString getLanguageCodesBytes(int index); + com.google.protobuf.ByteString + getLanguageCodesBytes(int index); } /** - * - * *
    * Used with equivalent term set glossaries.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.Glossary.LanguageCodesSet} */ - public static final class LanguageCodesSet extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class LanguageCodesSet extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.Glossary.LanguageCodesSet) LanguageCodesSetOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use LanguageCodesSet.newBuilder() to construct. private LanguageCodesSet(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private LanguageCodesSet() { languageCodes_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new LanguageCodesSet(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private LanguageCodesSet( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1203,29 +1083,29 @@ private LanguageCodesSet( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - languageCodes_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - languageCodes_.add(s); - break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + languageCodes_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + languageCodes_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { languageCodes_ = languageCodes_.getUnmodifiableView(); @@ -1234,27 +1114,22 @@ private LanguageCodesSet( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodesSet_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodesSet_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodesSet_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodesSet_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.class, - com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.Builder.class); + com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.class, com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.Builder.class); } public static final int LANGUAGE_CODES_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList languageCodes_; /** - * - * *
      * The BCP-47 language code(s) for terms defined in the glossary.
      * All entries are unique. The list contains at least two entries.
@@ -1262,15 +1137,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * 
* * repeated string language_codes = 1; - * * @return A list containing the languageCodes. */ - public com.google.protobuf.ProtocolStringList getLanguageCodesList() { + public com.google.protobuf.ProtocolStringList + getLanguageCodesList() { return languageCodes_; } /** - * - * *
      * The BCP-47 language code(s) for terms defined in the glossary.
      * All entries are unique. The list contains at least two entries.
@@ -1278,15 +1151,12 @@ public com.google.protobuf.ProtocolStringList getLanguageCodesList() {
      * 
* * repeated string language_codes = 1; - * * @return The count of languageCodes. */ public int getLanguageCodesCount() { return languageCodes_.size(); } /** - * - * *
      * The BCP-47 language code(s) for terms defined in the glossary.
      * All entries are unique. The list contains at least two entries.
@@ -1294,7 +1164,6 @@ public int getLanguageCodesCount() {
      * 
* * repeated string language_codes = 1; - * * @param index The index of the element to return. * @return The languageCodes at the given index. */ @@ -1302,8 +1171,6 @@ public java.lang.String getLanguageCodes(int index) { return languageCodes_.get(index); } /** - * - * *
      * The BCP-47 language code(s) for terms defined in the glossary.
      * All entries are unique. The list contains at least two entries.
@@ -1311,16 +1178,15 @@ public java.lang.String getLanguageCodes(int index) {
      * 
* * repeated string language_codes = 1; - * * @param index The index of the value to return. * @return The bytes of the languageCodes at the given index. */ - public com.google.protobuf.ByteString getLanguageCodesBytes(int index) { + public com.google.protobuf.ByteString + getLanguageCodesBytes(int index) { return languageCodes_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1332,7 +1198,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 < languageCodes_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, languageCodes_.getRaw(i)); } @@ -1361,15 +1228,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.cloud.translate.v3beta1.Glossary.LanguageCodesSet)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet other = - (com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet) obj; + com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet other = (com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet) obj; - if (!getLanguageCodesList().equals(other.getLanguageCodesList())) return false; + if (!getLanguageCodesList() + .equals(other.getLanguageCodesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1391,94 +1258,87 @@ public int hashCode() { } public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet 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.cloud.translate.v3beta1.Glossary.LanguageCodesSet 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.cloud.translate.v3beta1.Glossary.LanguageCodesSet parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet 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.cloud.translate.v3beta1.Glossary.LanguageCodesSet parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet 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.cloud.translate.v3beta1.Glossary.LanguageCodesSet parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet 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.cloud.translate.v3beta1.Glossary.LanguageCodesSet parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet 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.cloud.translate.v3beta1.Glossary.LanguageCodesSet 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.cloud.translate.v3beta1.Glossary.LanguageCodesSet 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.cloud.translate.v3beta1.Glossary.LanguageCodesSet prototype) { + public static Builder newBuilder(com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet 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 @@ -1488,32 +1348,27 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Used with equivalent term set glossaries.
      * 
* * Protobuf type {@code google.cloud.translation.v3beta1.Glossary.LanguageCodesSet} */ - 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.translation.v3beta1.Glossary.LanguageCodesSet) com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSetOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodesSet_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodesSet_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodesSet_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodesSet_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.class, - com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.Builder.class); + com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.class, com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.newBuilder() @@ -1521,15 +1376,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1539,14 +1395,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodesSet_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodesSet_descriptor; } @java.lang.Override - public com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet - getDefaultInstanceForType() { + public com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet getDefaultInstanceForType() { return com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.getDefaultInstance(); } @@ -1561,8 +1416,7 @@ public com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet build() { @java.lang.Override public com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet buildPartial() { - com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet result = - new com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet(this); + com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet result = new com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { languageCodes_ = languageCodes_.getUnmodifiableView(); @@ -1577,41 +1431,38 @@ public com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet 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.cloud.translate.v3beta1.Glossary.LanguageCodesSet) { - return mergeFrom((com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet) other); + return mergeFrom((com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet)other); } else { super.mergeFrom(other); return this; @@ -1619,9 +1470,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet other) { - if (other - == com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.getDefaultInstance()) return this; if (!other.languageCodes_.isEmpty()) { if (languageCodes_.isEmpty()) { languageCodes_ = other.languageCodes_; @@ -1651,9 +1500,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1662,21 +1509,16 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private com.google.protobuf.LazyStringList languageCodes_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList languageCodes_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureLanguageCodesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { languageCodes_ = new com.google.protobuf.LazyStringArrayList(languageCodes_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
        * The BCP-47 language code(s) for terms defined in the glossary.
        * All entries are unique. The list contains at least two entries.
@@ -1684,15 +1526,13 @@ private void ensureLanguageCodesIsMutable() {
        * 
* * repeated string language_codes = 1; - * * @return A list containing the languageCodes. */ - public com.google.protobuf.ProtocolStringList getLanguageCodesList() { + public com.google.protobuf.ProtocolStringList + getLanguageCodesList() { return languageCodes_.getUnmodifiableView(); } /** - * - * *
        * The BCP-47 language code(s) for terms defined in the glossary.
        * All entries are unique. The list contains at least two entries.
@@ -1700,15 +1540,12 @@ public com.google.protobuf.ProtocolStringList getLanguageCodesList() {
        * 
* * repeated string language_codes = 1; - * * @return The count of languageCodes. */ public int getLanguageCodesCount() { return languageCodes_.size(); } /** - * - * *
        * The BCP-47 language code(s) for terms defined in the glossary.
        * All entries are unique. The list contains at least two entries.
@@ -1716,7 +1553,6 @@ public int getLanguageCodesCount() {
        * 
* * repeated string language_codes = 1; - * * @param index The index of the element to return. * @return The languageCodes at the given index. */ @@ -1724,8 +1560,6 @@ public java.lang.String getLanguageCodes(int index) { return languageCodes_.get(index); } /** - * - * *
        * The BCP-47 language code(s) for terms defined in the glossary.
        * All entries are unique. The list contains at least two entries.
@@ -1733,16 +1567,14 @@ public java.lang.String getLanguageCodes(int index) {
        * 
* * repeated string language_codes = 1; - * * @param index The index of the value to return. * @return The bytes of the languageCodes at the given index. */ - public com.google.protobuf.ByteString getLanguageCodesBytes(int index) { + public com.google.protobuf.ByteString + getLanguageCodesBytes(int index) { return languageCodes_.getByteString(index); } /** - * - * *
        * The BCP-47 language code(s) for terms defined in the glossary.
        * All entries are unique. The list contains at least two entries.
@@ -1750,23 +1582,21 @@ public com.google.protobuf.ByteString getLanguageCodesBytes(int index) {
        * 
* * repeated string language_codes = 1; - * * @param index The index to set the value at. * @param value The languageCodes to set. * @return This builder for chaining. */ - public Builder setLanguageCodes(int index, java.lang.String value) { + public Builder setLanguageCodes( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureLanguageCodesIsMutable(); + throw new NullPointerException(); + } + ensureLanguageCodesIsMutable(); languageCodes_.set(index, value); onChanged(); return this; } /** - * - * *
        * The BCP-47 language code(s) for terms defined in the glossary.
        * All entries are unique. The list contains at least two entries.
@@ -1774,22 +1604,20 @@ public Builder setLanguageCodes(int index, java.lang.String value) {
        * 
* * repeated string language_codes = 1; - * * @param value The languageCodes to add. * @return This builder for chaining. */ - public Builder addLanguageCodes(java.lang.String value) { + public Builder addLanguageCodes( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureLanguageCodesIsMutable(); + throw new NullPointerException(); + } + ensureLanguageCodesIsMutable(); languageCodes_.add(value); onChanged(); return this; } /** - * - * *
        * The BCP-47 language code(s) for terms defined in the glossary.
        * All entries are unique. The list contains at least two entries.
@@ -1797,19 +1625,18 @@ public Builder addLanguageCodes(java.lang.String value) {
        * 
* * repeated string language_codes = 1; - * * @param values The languageCodes to add. * @return This builder for chaining. */ - public Builder addAllLanguageCodes(java.lang.Iterable values) { + public Builder addAllLanguageCodes( + java.lang.Iterable values) { ensureLanguageCodesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, languageCodes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, languageCodes_); onChanged(); return this; } /** - * - * *
        * The BCP-47 language code(s) for terms defined in the glossary.
        * All entries are unique. The list contains at least two entries.
@@ -1817,7 +1644,6 @@ public Builder addAllLanguageCodes(java.lang.Iterable values)
        * 
* * repeated string language_codes = 1; - * * @return This builder for chaining. */ public Builder clearLanguageCodes() { @@ -1827,8 +1653,6 @@ public Builder clearLanguageCodes() { return this; } /** - * - * *
        * The BCP-47 language code(s) for terms defined in the glossary.
        * All entries are unique. The list contains at least two entries.
@@ -1836,21 +1660,20 @@ public Builder clearLanguageCodes() {
        * 
* * repeated string language_codes = 1; - * * @param value The bytes of the languageCodes to add. * @return This builder for chaining. */ - public Builder addLanguageCodesBytes(com.google.protobuf.ByteString value) { + public Builder addLanguageCodesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureLanguageCodesIsMutable(); languageCodes_.add(value); onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1863,32 +1686,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.Glossary.LanguageCodesSet) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.Glossary.LanguageCodesSet) - private static final com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet - DEFAULT_INSTANCE; - + private static final com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet(); } - public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet - getDefaultInstance() { + public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LanguageCodesSet parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LanguageCodesSet(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LanguageCodesSet parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LanguageCodesSet(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1900,24 +1721,21 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet - getDefaultInstanceForType() { + public com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } private int languagesCase_ = 0; private java.lang.Object languages_; - public enum LanguagesCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { LANGUAGE_PAIR(3), LANGUAGE_CODES_SET(4), LANGUAGES_NOT_SET(0); private final int value; - private LanguagesCase(int value) { this.value = value; } @@ -1933,38 +1751,32 @@ public static LanguagesCase valueOf(int value) { public static LanguagesCase forNumber(int value) { switch (value) { - case 3: - return LANGUAGE_PAIR; - case 4: - return LANGUAGE_CODES_SET; - case 0: - return LANGUAGES_NOT_SET; - default: - return null; + case 3: return LANGUAGE_PAIR; + case 4: return LANGUAGE_CODES_SET; + case 0: return LANGUAGES_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public LanguagesCase getLanguagesCase() { - return LanguagesCase.forNumber(languagesCase_); + public LanguagesCase + getLanguagesCase() { + return LanguagesCase.forNumber( + languagesCase_); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The resource name of the glossary. Glossary names have the form
    * `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ @java.lang.Override @@ -1973,30 +1785,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 glossary. Glossary names have the form
    * `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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 { @@ -2006,14 +1818,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int LANGUAGE_PAIR_FIELD_NUMBER = 3; /** - * - * *
    * Used with unidirectional glossaries.
    * 
* * .google.cloud.translation.v3beta1.Glossary.LanguageCodePair language_pair = 3; - * * @return Whether the languagePair field is set. */ @java.lang.Override @@ -2021,26 +1830,21 @@ public boolean hasLanguagePair() { return languagesCase_ == 3; } /** - * - * *
    * Used with unidirectional glossaries.
    * 
* * .google.cloud.translation.v3beta1.Glossary.LanguageCodePair language_pair = 3; - * * @return The languagePair. */ @java.lang.Override public com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair getLanguagePair() { if (languagesCase_ == 3) { - return (com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair) languages_; + return (com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair) languages_; } return com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.getDefaultInstance(); } /** - * - * *
    * Used with unidirectional glossaries.
    * 
@@ -2048,25 +1852,20 @@ public com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair getLanguageP * .google.cloud.translation.v3beta1.Glossary.LanguageCodePair language_pair = 3; */ @java.lang.Override - public com.google.cloud.translate.v3beta1.Glossary.LanguageCodePairOrBuilder - getLanguagePairOrBuilder() { + public com.google.cloud.translate.v3beta1.Glossary.LanguageCodePairOrBuilder getLanguagePairOrBuilder() { if (languagesCase_ == 3) { - return (com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair) languages_; + return (com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair) languages_; } return com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.getDefaultInstance(); } public static final int LANGUAGE_CODES_SET_FIELD_NUMBER = 4; /** - * - * *
    * Used with equivalent term set glossaries.
    * 
* - * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; - * - * + * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; * @return Whether the languageCodesSet field is set. */ @java.lang.Override @@ -2074,39 +1873,31 @@ public boolean hasLanguageCodesSet() { return languagesCase_ == 4; } /** - * - * *
    * Used with equivalent term set glossaries.
    * 
* - * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; - * - * + * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; * @return The languageCodesSet. */ @java.lang.Override public com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet getLanguageCodesSet() { if (languagesCase_ == 4) { - return (com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet) languages_; + return (com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet) languages_; } return com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.getDefaultInstance(); } /** - * - * *
    * Used with equivalent term set glossaries.
    * 
* - * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; - * + * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; */ @java.lang.Override - public com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSetOrBuilder - getLanguageCodesSetOrBuilder() { + public com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSetOrBuilder getLanguageCodesSetOrBuilder() { if (languagesCase_ == 4) { - return (com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet) languages_; + return (com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet) languages_; } return com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.getDefaultInstance(); } @@ -2114,15 +1905,12 @@ public com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet getLanguageC public static final int INPUT_CONFIG_FIELD_NUMBER = 5; private com.google.cloud.translate.v3beta1.GlossaryInputConfig inputConfig_; /** - * - * *
    * Required. Provides examples to build the glossary from.
    * Total glossary must not exceed 10M Unicode codepoints.
    * 
* * .google.cloud.translation.v3beta1.GlossaryInputConfig input_config = 5; - * * @return Whether the inputConfig field is set. */ @java.lang.Override @@ -2130,26 +1918,19 @@ public boolean hasInputConfig() { return inputConfig_ != null; } /** - * - * *
    * Required. Provides examples to build the glossary from.
    * Total glossary must not exceed 10M Unicode codepoints.
    * 
* * .google.cloud.translation.v3beta1.GlossaryInputConfig input_config = 5; - * * @return The inputConfig. */ @java.lang.Override public com.google.cloud.translate.v3beta1.GlossaryInputConfig getInputConfig() { - return inputConfig_ == null - ? com.google.cloud.translate.v3beta1.GlossaryInputConfig.getDefaultInstance() - : inputConfig_; + return inputConfig_ == null ? com.google.cloud.translate.v3beta1.GlossaryInputConfig.getDefaultInstance() : inputConfig_; } /** - * - * *
    * Required. Provides examples to build the glossary from.
    * Total glossary must not exceed 10M Unicode codepoints.
@@ -2165,14 +1946,11 @@ public com.google.cloud.translate.v3beta1.GlossaryInputConfigOrBuilder getInputC
   public static final int ENTRY_COUNT_FIELD_NUMBER = 6;
   private int entryCount_;
   /**
-   *
-   *
    * 
    * Output only. The number of entries defined in the glossary.
    * 
* * int32 entry_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The entryCount. */ @java.lang.Override @@ -2183,15 +1961,11 @@ public int getEntryCount() { public static final int SUBMIT_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp submitTime_; /** - * - * *
    * Output only. When CreateGlossary was called.
    * 
* - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the submitTime field is set. */ @java.lang.Override @@ -2199,15 +1973,11 @@ public boolean hasSubmitTime() { return submitTime_ != null; } /** - * - * *
    * Output only. When CreateGlossary was called.
    * 
* - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The submitTime. */ @java.lang.Override @@ -2215,14 +1985,11 @@ public com.google.protobuf.Timestamp getSubmitTime() { return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } /** - * - * *
    * Output only. When CreateGlossary was called.
    * 
* - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { @@ -2232,15 +1999,11 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 8; private com.google.protobuf.Timestamp endTime_; /** - * - * *
    * Output only. When the glossary creation was finished.
    * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ @java.lang.Override @@ -2248,15 +2011,11 @@ public boolean hasEndTime() { return endTime_ != null; } /** - * - * *
    * Output only. When the glossary creation was finished.
    * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ @java.lang.Override @@ -2264,14 +2023,11 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** - * - * *
    * Output only. When the glossary creation was finished.
    * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { @@ -2279,7 +2035,6 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2291,17 +2046,16 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + 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_); } if (languagesCase_ == 3) { - output.writeMessage( - 3, (com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair) languages_); + output.writeMessage(3, (com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair) languages_); } if (languagesCase_ == 4) { - output.writeMessage( - 4, (com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet) languages_); + output.writeMessage(4, (com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet) languages_); } if (inputConfig_ != null) { output.writeMessage(5, getInputConfig()); @@ -2324,30 +2078,32 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (languagesCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, (com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair) languages_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair) languages_); } if (languagesCase_ == 4) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 4, (com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet) languages_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet) languages_); } if (inputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getInputConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getInputConfig()); } if (entryCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, entryCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(6, entryCount_); } if (submitTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getSubmitTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getSubmitTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getEndTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getEndTime()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2357,35 +2113,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.cloud.translate.v3beta1.Glossary)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.Glossary other = - (com.google.cloud.translate.v3beta1.Glossary) obj; + com.google.cloud.translate.v3beta1.Glossary other = (com.google.cloud.translate.v3beta1.Glossary) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasInputConfig() != other.hasInputConfig()) return false; if (hasInputConfig()) { - if (!getInputConfig().equals(other.getInputConfig())) return false; + if (!getInputConfig() + .equals(other.getInputConfig())) return false; } - if (getEntryCount() != other.getEntryCount()) return false; + if (getEntryCount() + != other.getEntryCount()) return false; if (hasSubmitTime() != other.hasSubmitTime()) return false; if (hasSubmitTime()) { - if (!getSubmitTime().equals(other.getSubmitTime())) return false; + if (!getSubmitTime() + .equals(other.getSubmitTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime().equals(other.getEndTime())) return false; + if (!getEndTime() + .equals(other.getEndTime())) return false; } if (!getLanguagesCase().equals(other.getLanguagesCase())) return false; switch (languagesCase_) { case 3: - if (!getLanguagePair().equals(other.getLanguagePair())) return false; + if (!getLanguagePair() + .equals(other.getLanguagePair())) return false; break; case 4: - if (!getLanguageCodesSet().equals(other.getLanguageCodesSet())) return false; + if (!getLanguageCodesSet() + .equals(other.getLanguageCodesSet())) return false; break; case 0: default: @@ -2434,127 +2196,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.translate.v3beta1.Glossary parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.translate.v3beta1.Glossary parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.Glossary 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.cloud.translate.v3beta1.Glossary parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.Glossary 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.cloud.translate.v3beta1.Glossary parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.Glossary 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.cloud.translate.v3beta1.Glossary 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.cloud.translate.v3beta1.Glossary 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.cloud.translate.v3beta1.Glossary parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.Glossary parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.Glossary 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.cloud.translate.v3beta1.Glossary 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.cloud.translate.v3beta1.Glossary 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.cloud.translate.v3beta1.Glossary 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; } /** - * - * *
    * Represents a glossary built from user provided data.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.Glossary} */ - 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.translation.v3beta1.Glossary) com.google.cloud.translate.v3beta1.GlossaryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_Glossary_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_Glossary_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_Glossary_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_Glossary_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.Glossary.class, - com.google.cloud.translate.v3beta1.Glossary.Builder.class); + com.google.cloud.translate.v3beta1.Glossary.class, com.google.cloud.translate.v3beta1.Glossary.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.Glossary.newBuilder() @@ -2562,15 +2315,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -2602,9 +2356,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_Glossary_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_Glossary_descriptor; } @java.lang.Override @@ -2623,8 +2377,7 @@ public com.google.cloud.translate.v3beta1.Glossary build() { @java.lang.Override public com.google.cloud.translate.v3beta1.Glossary buildPartial() { - com.google.cloud.translate.v3beta1.Glossary result = - new com.google.cloud.translate.v3beta1.Glossary(this); + com.google.cloud.translate.v3beta1.Glossary result = new com.google.cloud.translate.v3beta1.Glossary(this); result.name_ = name_; if (languagesCase_ == 3) { if (languagePairBuilder_ == null) { @@ -2665,39 +2418,38 @@ public com.google.cloud.translate.v3beta1.Glossary 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.cloud.translate.v3beta1.Glossary) { - return mergeFrom((com.google.cloud.translate.v3beta1.Glossary) other); + return mergeFrom((com.google.cloud.translate.v3beta1.Glossary)other); } else { super.mergeFrom(other); return this; @@ -2723,20 +2475,17 @@ public Builder mergeFrom(com.google.cloud.translate.v3beta1.Glossary other) { mergeEndTime(other.getEndTime()); } switch (other.getLanguagesCase()) { - case LANGUAGE_PAIR: - { - mergeLanguagePair(other.getLanguagePair()); - break; - } - case LANGUAGE_CODES_SET: - { - mergeLanguageCodesSet(other.getLanguageCodesSet()); - break; - } - case LANGUAGES_NOT_SET: - { - break; - } + case LANGUAGE_PAIR: { + mergeLanguagePair(other.getLanguagePair()); + break; + } + case LANGUAGE_CODES_SET: { + mergeLanguageCodesSet(other.getLanguageCodesSet()); + break; + } + case LANGUAGES_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -2766,12 +2515,12 @@ public Builder mergeFrom( } return this; } - private int languagesCase_ = 0; private java.lang.Object languages_; - - public LanguagesCase getLanguagesCase() { - return LanguagesCase.forNumber(languagesCase_); + public LanguagesCase + getLanguagesCase() { + return LanguagesCase.forNumber( + languagesCase_); } public Builder clearLanguages() { @@ -2781,23 +2530,22 @@ public Builder clearLanguages() { return this; } + private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name of the glossary. Glossary names have the form
      * `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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; @@ -2806,22 +2554,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the glossary. Glossary names have the form
      * `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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 { @@ -2829,83 +2576,70 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the glossary. Glossary names have the form
      * `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the glossary. Glossary names have the form
      * `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The resource name of the glossary. Glossary names have the form
      * `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair, - com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.Builder, - com.google.cloud.translate.v3beta1.Glossary.LanguageCodePairOrBuilder> - languagePairBuilder_; + com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair, com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.Builder, com.google.cloud.translate.v3beta1.Glossary.LanguageCodePairOrBuilder> languagePairBuilder_; /** - * - * *
      * Used with unidirectional glossaries.
      * 
* * .google.cloud.translation.v3beta1.Glossary.LanguageCodePair language_pair = 3; - * * @return Whether the languagePair field is set. */ @java.lang.Override @@ -2913,14 +2647,11 @@ public boolean hasLanguagePair() { return languagesCase_ == 3; } /** - * - * *
      * Used with unidirectional glossaries.
      * 
* * .google.cloud.translation.v3beta1.Glossary.LanguageCodePair language_pair = 3; - * * @return The languagePair. */ @java.lang.Override @@ -2938,16 +2669,13 @@ public com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair getLanguageP } } /** - * - * *
      * Used with unidirectional glossaries.
      * 
* * .google.cloud.translation.v3beta1.Glossary.LanguageCodePair language_pair = 3; */ - public Builder setLanguagePair( - com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair value) { + public Builder setLanguagePair(com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair value) { if (languagePairBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2961,8 +2689,6 @@ public Builder setLanguagePair( return this; } /** - * - * *
      * Used with unidirectional glossaries.
      * 
@@ -2981,26 +2707,18 @@ public Builder setLanguagePair( return this; } /** - * - * *
      * Used with unidirectional glossaries.
      * 
* * .google.cloud.translation.v3beta1.Glossary.LanguageCodePair language_pair = 3; */ - public Builder mergeLanguagePair( - com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair value) { + public Builder mergeLanguagePair(com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair value) { if (languagePairBuilder_ == null) { - if (languagesCase_ == 3 - && languages_ - != com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair - .getDefaultInstance()) { - languages_ = - com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.newBuilder( - (com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair) languages_) - .mergeFrom(value) - .buildPartial(); + if (languagesCase_ == 3 && + languages_ != com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.getDefaultInstance()) { + languages_ = com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.newBuilder((com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair) languages_) + .mergeFrom(value).buildPartial(); } else { languages_ = value; } @@ -3015,8 +2733,6 @@ public Builder mergeLanguagePair( return this; } /** - * - * *
      * Used with unidirectional glossaries.
      * 
@@ -3040,21 +2756,16 @@ public Builder clearLanguagePair() { return this; } /** - * - * *
      * Used with unidirectional glossaries.
      * 
* * .google.cloud.translation.v3beta1.Glossary.LanguageCodePair language_pair = 3; */ - public com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.Builder - getLanguagePairBuilder() { + public com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.Builder getLanguagePairBuilder() { return getLanguagePairFieldBuilder().getBuilder(); } /** - * - * *
      * Used with unidirectional glossaries.
      * 
@@ -3062,8 +2773,7 @@ public Builder clearLanguagePair() { * .google.cloud.translation.v3beta1.Glossary.LanguageCodePair language_pair = 3; */ @java.lang.Override - public com.google.cloud.translate.v3beta1.Glossary.LanguageCodePairOrBuilder - getLanguagePairOrBuilder() { + public com.google.cloud.translate.v3beta1.Glossary.LanguageCodePairOrBuilder getLanguagePairOrBuilder() { if ((languagesCase_ == 3) && (languagePairBuilder_ != null)) { return languagePairBuilder_.getMessageOrBuilder(); } else { @@ -3074,8 +2784,6 @@ public Builder clearLanguagePair() { } } /** - * - * *
      * Used with unidirectional glossaries.
      * 
@@ -3083,46 +2791,32 @@ public Builder clearLanguagePair() { * .google.cloud.translation.v3beta1.Glossary.LanguageCodePair language_pair = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair, - com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.Builder, - com.google.cloud.translate.v3beta1.Glossary.LanguageCodePairOrBuilder> + com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair, com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.Builder, com.google.cloud.translate.v3beta1.Glossary.LanguageCodePairOrBuilder> getLanguagePairFieldBuilder() { if (languagePairBuilder_ == null) { if (!(languagesCase_ == 3)) { - languages_ = - com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.getDefaultInstance(); + languages_ = com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.getDefaultInstance(); } - languagePairBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair, - com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.Builder, - com.google.cloud.translate.v3beta1.Glossary.LanguageCodePairOrBuilder>( + languagePairBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair, com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.Builder, com.google.cloud.translate.v3beta1.Glossary.LanguageCodePairOrBuilder>( (com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair) languages_, getParentForChildren(), isClean()); languages_ = null; } languagesCase_ = 3; - onChanged(); - ; + onChanged();; return languagePairBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet, - com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.Builder, - com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSetOrBuilder> - languageCodesSetBuilder_; + com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet, com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.Builder, com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSetOrBuilder> languageCodesSetBuilder_; /** - * - * *
      * Used with equivalent term set glossaries.
      * 
* - * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; - * - * + * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; * @return Whether the languageCodesSet field is set. */ @java.lang.Override @@ -3130,15 +2824,11 @@ public boolean hasLanguageCodesSet() { return languagesCase_ == 4; } /** - * - * *
      * Used with equivalent term set glossaries.
      * 
* - * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; - * - * + * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; * @return The languageCodesSet. */ @java.lang.Override @@ -3156,17 +2846,13 @@ public com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet getLanguageC } } /** - * - * *
      * Used with equivalent term set glossaries.
      * 
* - * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; - * + * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; */ - public Builder setLanguageCodesSet( - com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet value) { + public Builder setLanguageCodesSet(com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet value) { if (languageCodesSetBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3180,14 +2866,11 @@ public Builder setLanguageCodesSet( return this; } /** - * - * *
      * Used with equivalent term set glossaries.
      * 
* - * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; - * + * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; */ public Builder setLanguageCodesSet( com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.Builder builderForValue) { @@ -3201,27 +2884,18 @@ public Builder setLanguageCodesSet( return this; } /** - * - * *
      * Used with equivalent term set glossaries.
      * 
* - * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; - * + * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; */ - public Builder mergeLanguageCodesSet( - com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet value) { + public Builder mergeLanguageCodesSet(com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet value) { if (languageCodesSetBuilder_ == null) { - if (languagesCase_ == 4 - && languages_ - != com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet - .getDefaultInstance()) { - languages_ = - com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.newBuilder( - (com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet) languages_) - .mergeFrom(value) - .buildPartial(); + if (languagesCase_ == 4 && + languages_ != com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.getDefaultInstance()) { + languages_ = com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.newBuilder((com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet) languages_) + .mergeFrom(value).buildPartial(); } else { languages_ = value; } @@ -3236,14 +2910,11 @@ public Builder mergeLanguageCodesSet( return this; } /** - * - * *
      * Used with equivalent term set glossaries.
      * 
* - * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; - * + * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; */ public Builder clearLanguageCodesSet() { if (languageCodesSetBuilder_ == null) { @@ -3262,32 +2933,24 @@ public Builder clearLanguageCodesSet() { return this; } /** - * - * *
      * Used with equivalent term set glossaries.
      * 
* - * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; - * + * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; */ - public com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.Builder - getLanguageCodesSetBuilder() { + public com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.Builder getLanguageCodesSetBuilder() { return getLanguageCodesSetFieldBuilder().getBuilder(); } /** - * - * *
      * Used with equivalent term set glossaries.
      * 
* - * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; - * + * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; */ @java.lang.Override - public com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSetOrBuilder - getLanguageCodesSetOrBuilder() { + public com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSetOrBuilder getLanguageCodesSetOrBuilder() { if ((languagesCase_ == 4) && (languageCodesSetBuilder_ != null)) { return languageCodesSetBuilder_.getMessageOrBuilder(); } else { @@ -3298,86 +2961,63 @@ public Builder clearLanguageCodesSet() { } } /** - * - * *
      * Used with equivalent term set glossaries.
      * 
* - * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; - * + * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet, - com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.Builder, - com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSetOrBuilder> + com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet, com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.Builder, com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSetOrBuilder> getLanguageCodesSetFieldBuilder() { if (languageCodesSetBuilder_ == null) { if (!(languagesCase_ == 4)) { - languages_ = - com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.getDefaultInstance(); + languages_ = com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.getDefaultInstance(); } - languageCodesSetBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet, - com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.Builder, - com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSetOrBuilder>( + languageCodesSetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet, com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.Builder, com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSetOrBuilder>( (com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet) languages_, getParentForChildren(), isClean()); languages_ = null; } languagesCase_ = 4; - onChanged(); - ; + onChanged();; return languageCodesSetBuilder_; } private com.google.cloud.translate.v3beta1.GlossaryInputConfig inputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.GlossaryInputConfig, - com.google.cloud.translate.v3beta1.GlossaryInputConfig.Builder, - com.google.cloud.translate.v3beta1.GlossaryInputConfigOrBuilder> - inputConfigBuilder_; + com.google.cloud.translate.v3beta1.GlossaryInputConfig, com.google.cloud.translate.v3beta1.GlossaryInputConfig.Builder, com.google.cloud.translate.v3beta1.GlossaryInputConfigOrBuilder> inputConfigBuilder_; /** - * - * *
      * Required. Provides examples to build the glossary from.
      * Total glossary must not exceed 10M Unicode codepoints.
      * 
* * .google.cloud.translation.v3beta1.GlossaryInputConfig input_config = 5; - * * @return Whether the inputConfig field is set. */ public boolean hasInputConfig() { return inputConfigBuilder_ != null || inputConfig_ != null; } /** - * - * *
      * Required. Provides examples to build the glossary from.
      * Total glossary must not exceed 10M Unicode codepoints.
      * 
* * .google.cloud.translation.v3beta1.GlossaryInputConfig input_config = 5; - * * @return The inputConfig. */ public com.google.cloud.translate.v3beta1.GlossaryInputConfig getInputConfig() { if (inputConfigBuilder_ == null) { - return inputConfig_ == null - ? com.google.cloud.translate.v3beta1.GlossaryInputConfig.getDefaultInstance() - : inputConfig_; + return inputConfig_ == null ? com.google.cloud.translate.v3beta1.GlossaryInputConfig.getDefaultInstance() : inputConfig_; } else { return inputConfigBuilder_.getMessage(); } } /** - * - * *
      * Required. Provides examples to build the glossary from.
      * Total glossary must not exceed 10M Unicode codepoints.
@@ -3399,8 +3039,6 @@ public Builder setInputConfig(com.google.cloud.translate.v3beta1.GlossaryInputCo
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. Provides examples to build the glossary from.
      * Total glossary must not exceed 10M Unicode codepoints.
@@ -3420,8 +3058,6 @@ public Builder setInputConfig(
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. Provides examples to build the glossary from.
      * Total glossary must not exceed 10M Unicode codepoints.
@@ -3433,9 +3069,7 @@ public Builder mergeInputConfig(com.google.cloud.translate.v3beta1.GlossaryInput
       if (inputConfigBuilder_ == null) {
         if (inputConfig_ != null) {
           inputConfig_ =
-              com.google.cloud.translate.v3beta1.GlossaryInputConfig.newBuilder(inputConfig_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.translate.v3beta1.GlossaryInputConfig.newBuilder(inputConfig_).mergeFrom(value).buildPartial();
         } else {
           inputConfig_ = value;
         }
@@ -3447,8 +3081,6 @@ public Builder mergeInputConfig(com.google.cloud.translate.v3beta1.GlossaryInput
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. Provides examples to build the glossary from.
      * Total glossary must not exceed 10M Unicode codepoints.
@@ -3468,8 +3100,6 @@ public Builder clearInputConfig() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. Provides examples to build the glossary from.
      * Total glossary must not exceed 10M Unicode codepoints.
@@ -3478,13 +3108,11 @@ public Builder clearInputConfig() {
      * .google.cloud.translation.v3beta1.GlossaryInputConfig input_config = 5;
      */
     public com.google.cloud.translate.v3beta1.GlossaryInputConfig.Builder getInputConfigBuilder() {
-
+      
       onChanged();
       return getInputConfigFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Required. Provides examples to build the glossary from.
      * Total glossary must not exceed 10M Unicode codepoints.
@@ -3492,19 +3120,15 @@ public com.google.cloud.translate.v3beta1.GlossaryInputConfig.Builder getInputCo
      *
      * .google.cloud.translation.v3beta1.GlossaryInputConfig input_config = 5;
      */
-    public com.google.cloud.translate.v3beta1.GlossaryInputConfigOrBuilder
-        getInputConfigOrBuilder() {
+    public com.google.cloud.translate.v3beta1.GlossaryInputConfigOrBuilder getInputConfigOrBuilder() {
       if (inputConfigBuilder_ != null) {
         return inputConfigBuilder_.getMessageOrBuilder();
       } else {
-        return inputConfig_ == null
-            ? com.google.cloud.translate.v3beta1.GlossaryInputConfig.getDefaultInstance()
-            : inputConfig_;
+        return inputConfig_ == null ?
+            com.google.cloud.translate.v3beta1.GlossaryInputConfig.getDefaultInstance() : inputConfig_;
       }
     }
     /**
-     *
-     *
      * 
      * Required. Provides examples to build the glossary from.
      * Total glossary must not exceed 10M Unicode codepoints.
@@ -3513,32 +3137,26 @@ public com.google.cloud.translate.v3beta1.GlossaryInputConfig.Builder getInputCo
      * .google.cloud.translation.v3beta1.GlossaryInputConfig input_config = 5;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.translate.v3beta1.GlossaryInputConfig,
-            com.google.cloud.translate.v3beta1.GlossaryInputConfig.Builder,
-            com.google.cloud.translate.v3beta1.GlossaryInputConfigOrBuilder>
+        com.google.cloud.translate.v3beta1.GlossaryInputConfig, com.google.cloud.translate.v3beta1.GlossaryInputConfig.Builder, com.google.cloud.translate.v3beta1.GlossaryInputConfigOrBuilder> 
         getInputConfigFieldBuilder() {
       if (inputConfigBuilder_ == null) {
-        inputConfigBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.translate.v3beta1.GlossaryInputConfig,
-                com.google.cloud.translate.v3beta1.GlossaryInputConfig.Builder,
-                com.google.cloud.translate.v3beta1.GlossaryInputConfigOrBuilder>(
-                getInputConfig(), getParentForChildren(), isClean());
+        inputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.translate.v3beta1.GlossaryInputConfig, com.google.cloud.translate.v3beta1.GlossaryInputConfig.Builder, com.google.cloud.translate.v3beta1.GlossaryInputConfigOrBuilder>(
+                getInputConfig(),
+                getParentForChildren(),
+                isClean());
         inputConfig_ = null;
       }
       return inputConfigBuilder_;
     }
 
-    private int entryCount_;
+    private int entryCount_ ;
     /**
-     *
-     *
      * 
      * Output only. The number of entries defined in the glossary.
      * 
* * int32 entry_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The entryCount. */ @java.lang.Override @@ -3546,36 +3164,30 @@ public int getEntryCount() { return entryCount_; } /** - * - * *
      * Output only. The number of entries defined in the glossary.
      * 
* * int32 entry_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The entryCount to set. * @return This builder for chaining. */ public Builder setEntryCount(int value) { - + entryCount_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The number of entries defined in the glossary.
      * 
* * int32 entry_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearEntryCount() { - + entryCount_ = 0; onChanged(); return this; @@ -3583,58 +3195,39 @@ public Builder clearEntryCount() { private com.google.protobuf.Timestamp submitTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - submitTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> submitTimeBuilder_; /** - * - * *
      * Output only. When CreateGlossary was called.
      * 
* - * - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the submitTime field is set. */ public boolean hasSubmitTime() { return submitTimeBuilder_ != null || submitTime_ != null; } /** - * - * *
      * Output only. When CreateGlossary was called.
      * 
* - * - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The submitTime. */ public com.google.protobuf.Timestamp getSubmitTime() { if (submitTimeBuilder_ == null) { - return submitTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : submitTime_; + return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } else { return submitTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. When CreateGlossary was called.
      * 
* - * - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setSubmitTime(com.google.protobuf.Timestamp value) { if (submitTimeBuilder_ == null) { @@ -3650,17 +3243,14 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. When CreateGlossary was called.
      * 
* - * - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setSubmitTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (submitTimeBuilder_ == null) { submitTime_ = builderForValue.build(); onChanged(); @@ -3671,21 +3261,17 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. When CreateGlossary was called.
      * 
* - * - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { if (submitTimeBuilder_ == null) { if (submitTime_ != null) { submitTime_ = - com.google.protobuf.Timestamp.newBuilder(submitTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(submitTime_).mergeFrom(value).buildPartial(); } else { submitTime_ = value; } @@ -3697,15 +3283,11 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. When CreateGlossary was called.
      * 
* - * - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearSubmitTime() { if (submitTimeBuilder_ == null) { @@ -3719,64 +3301,48 @@ public Builder clearSubmitTime() { return this; } /** - * - * *
      * Output only. When CreateGlossary was called.
      * 
* - * - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder() { - + onChanged(); return getSubmitTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. When CreateGlossary was called.
      * 
* - * - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { if (submitTimeBuilder_ != null) { return submitTimeBuilder_.getMessageOrBuilder(); } else { - return submitTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : submitTime_; + return submitTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } } /** - * - * *
      * Output only. When CreateGlossary was called.
      * 
* - * - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp submit_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> getSubmitTimeFieldBuilder() { if (submitTimeBuilder_ == null) { - submitTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getSubmitTime(), getParentForChildren(), isClean()); + submitTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getSubmitTime(), + getParentForChildren(), + isClean()); submitTime_ = null; } return submitTimeBuilder_; @@ -3784,35 +3350,24 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - endTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; /** - * - * *
      * Output only. When the glossary creation was finished.
      * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; } /** - * - * *
      * Output only. When the glossary creation was finished.
      * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -3823,14 +3378,11 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** - * - * *
      * Output only. When the glossary creation was finished.
      * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { @@ -3846,16 +3398,14 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. When the glossary creation was finished.
      * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); onChanged(); @@ -3866,20 +3416,17 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) return this; } /** - * - * *
      * Output only. When the glossary creation was finished.
      * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { if (endTime_ != null) { endTime_ = - com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); } else { endTime_ = value; } @@ -3891,14 +3438,11 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. When the glossary creation was finished.
      * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearEndTime() { if (endTimeBuilder_ == null) { @@ -3912,66 +3456,55 @@ public Builder clearEndTime() { return this; } /** - * - * *
      * Output only. When the glossary creation was finished.
      * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { - + onChanged(); return getEndTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. When the glossary creation was finished.
      * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { if (endTimeBuilder_ != null) { return endTimeBuilder_.getMessageOrBuilder(); } else { - return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + return endTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } } /** - * - * *
      * Output only. When the glossary creation was finished.
      * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 8 [(.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> getEndTimeFieldBuilder() { if (endTimeBuilder_ == null) { - endTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getEndTime(), getParentForChildren(), isClean()); + endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getEndTime(), + getParentForChildren(), + isClean()); endTime_ = null; } return endTimeBuilder_; } - @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); } @@ -3981,12 +3514,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.Glossary) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.Glossary) private static final com.google.cloud.translate.v3beta1.Glossary DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.Glossary(); } @@ -3995,16 +3528,16 @@ public static com.google.cloud.translate.v3beta1.Glossary getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Glossary parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Glossary(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Glossary parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Glossary(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4019,4 +3552,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3beta1.Glossary getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryInputConfig.java b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryInputConfig.java similarity index 79% rename from proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryInputConfig.java rename to owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryInputConfig.java index b268e03c..74cfcb5b 100644 --- a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryInputConfig.java +++ b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryInputConfig.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 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/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; /** - * - * *
  * Input configuration for glossaries.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.GlossaryInputConfig} */ -public final class GlossaryInputConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GlossaryInputConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.GlossaryInputConfig) GlossaryInputConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GlossaryInputConfig.newBuilder() to construct. private GlossaryInputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private GlossaryInputConfig() {} + private GlossaryInputConfig() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GlossaryInputConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GlossaryInputConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,67 +52,60 @@ private GlossaryInputConfig( case 0: done = true; break; - case 10: - { - com.google.cloud.translate.v3beta1.GcsSource.Builder subBuilder = null; - if (sourceCase_ == 1) { - subBuilder = ((com.google.cloud.translate.v3beta1.GcsSource) source_).toBuilder(); - } - source_ = - input.readMessage( - com.google.cloud.translate.v3beta1.GcsSource.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.translate.v3beta1.GcsSource) source_); - source_ = subBuilder.buildPartial(); - } - sourceCase_ = 1; - break; + case 10: { + com.google.cloud.translate.v3beta1.GcsSource.Builder subBuilder = null; + if (sourceCase_ == 1) { + subBuilder = ((com.google.cloud.translate.v3beta1.GcsSource) source_).toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + source_ = + input.readMessage(com.google.cloud.translate.v3beta1.GcsSource.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.translate.v3beta1.GcsSource) source_); + source_ = subBuilder.buildPartial(); } + sourceCase_ = 1; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_GlossaryInputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GlossaryInputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_GlossaryInputConfig_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GlossaryInputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.GlossaryInputConfig.class, - com.google.cloud.translate.v3beta1.GlossaryInputConfig.Builder.class); + com.google.cloud.translate.v3beta1.GlossaryInputConfig.class, com.google.cloud.translate.v3beta1.GlossaryInputConfig.Builder.class); } private int sourceCase_ = 0; private java.lang.Object source_; - public enum SourceCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_SOURCE(1), SOURCE_NOT_SET(0); private final int value; - private SourceCase(int value) { this.value = value; } @@ -144,28 +121,24 @@ public static SourceCase valueOf(int value) { public static SourceCase forNumber(int value) { switch (value) { - case 1: - return GCS_SOURCE; - case 0: - return SOURCE_NOT_SET; - default: - return null; + case 1: return GCS_SOURCE; + case 0: return SOURCE_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public SourceCase getSourceCase() { - return SourceCase.forNumber(sourceCase_); + public SourceCase + getSourceCase() { + return SourceCase.forNumber( + sourceCase_); } public static final int GCS_SOURCE_FIELD_NUMBER = 1; /** - * - * *
    * Required. Google Cloud Storage location of glossary data.
    * File format is determined based on the filename extension. API returns
@@ -187,7 +160,6 @@ public SourceCase getSourceCase() {
    * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 1; - * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -195,8 +167,6 @@ public boolean hasGcsSource() { return sourceCase_ == 1; } /** - * - * *
    * Required. Google Cloud Storage location of glossary data.
    * File format is determined based on the filename extension. API returns
@@ -218,19 +188,16 @@ public boolean hasGcsSource() {
    * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 1; - * * @return The gcsSource. */ @java.lang.Override public com.google.cloud.translate.v3beta1.GcsSource getGcsSource() { if (sourceCase_ == 1) { - return (com.google.cloud.translate.v3beta1.GcsSource) source_; + return (com.google.cloud.translate.v3beta1.GcsSource) source_; } return com.google.cloud.translate.v3beta1.GcsSource.getDefaultInstance(); } /** - * - * *
    * Required. Google Cloud Storage location of glossary data.
    * File format is determined based on the filename extension. API returns
@@ -256,13 +223,12 @@ public com.google.cloud.translate.v3beta1.GcsSource getGcsSource() {
   @java.lang.Override
   public com.google.cloud.translate.v3beta1.GcsSourceOrBuilder getGcsSourceOrBuilder() {
     if (sourceCase_ == 1) {
-      return (com.google.cloud.translate.v3beta1.GcsSource) source_;
+       return (com.google.cloud.translate.v3beta1.GcsSource) source_;
     }
     return com.google.cloud.translate.v3beta1.GcsSource.getDefaultInstance();
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -274,7 +240,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 (sourceCase_ == 1) {
       output.writeMessage(1, (com.google.cloud.translate.v3beta1.GcsSource) source_);
     }
@@ -288,9 +255,8 @@ public int getSerializedSize() {
 
     size = 0;
     if (sourceCase_ == 1) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              1, (com.google.cloud.translate.v3beta1.GcsSource) source_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, (com.google.cloud.translate.v3beta1.GcsSource) source_);
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -300,18 +266,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.cloud.translate.v3beta1.GlossaryInputConfig)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3beta1.GlossaryInputConfig other =
-        (com.google.cloud.translate.v3beta1.GlossaryInputConfig) obj;
+    com.google.cloud.translate.v3beta1.GlossaryInputConfig other = (com.google.cloud.translate.v3beta1.GlossaryInputConfig) obj;
 
     if (!getSourceCase().equals(other.getSourceCase())) return false;
     switch (sourceCase_) {
       case 1:
-        if (!getGcsSource().equals(other.getGcsSource())) return false;
+        if (!getGcsSource()
+            .equals(other.getGcsSource())) return false;
         break;
       case 0:
       default:
@@ -341,127 +307,117 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3beta1.GlossaryInputConfig 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.cloud.translate.v3beta1.GlossaryInputConfig 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.cloud.translate.v3beta1.GlossaryInputConfig parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3beta1.GlossaryInputConfig 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.cloud.translate.v3beta1.GlossaryInputConfig parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3beta1.GlossaryInputConfig 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.cloud.translate.v3beta1.GlossaryInputConfig parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3beta1.GlossaryInputConfig parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3beta1.GlossaryInputConfig 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.cloud.translate.v3beta1.GlossaryInputConfig parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3beta1.GlossaryInputConfig parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3beta1.GlossaryInputConfig 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.cloud.translate.v3beta1.GlossaryInputConfig 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.cloud.translate.v3beta1.GlossaryInputConfig 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.cloud.translate.v3beta1.GlossaryInputConfig prototype) {
+  public static Builder newBuilder(com.google.cloud.translate.v3beta1.GlossaryInputConfig 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;
   }
   /**
-   *
-   *
    * 
    * Input configuration for glossaries.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.GlossaryInputConfig} */ - 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.translation.v3beta1.GlossaryInputConfig) com.google.cloud.translate.v3beta1.GlossaryInputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_GlossaryInputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GlossaryInputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_GlossaryInputConfig_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GlossaryInputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.GlossaryInputConfig.class, - com.google.cloud.translate.v3beta1.GlossaryInputConfig.Builder.class); + com.google.cloud.translate.v3beta1.GlossaryInputConfig.class, com.google.cloud.translate.v3beta1.GlossaryInputConfig.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.GlossaryInputConfig.newBuilder() @@ -469,15 +425,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -487,9 +444,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_GlossaryInputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GlossaryInputConfig_descriptor; } @java.lang.Override @@ -508,8 +465,7 @@ public com.google.cloud.translate.v3beta1.GlossaryInputConfig build() { @java.lang.Override public com.google.cloud.translate.v3beta1.GlossaryInputConfig buildPartial() { - com.google.cloud.translate.v3beta1.GlossaryInputConfig result = - new com.google.cloud.translate.v3beta1.GlossaryInputConfig(this); + com.google.cloud.translate.v3beta1.GlossaryInputConfig result = new com.google.cloud.translate.v3beta1.GlossaryInputConfig(this); if (sourceCase_ == 1) { if (gcsSourceBuilder_ == null) { result.source_ = source_; @@ -526,39 +482,38 @@ public com.google.cloud.translate.v3beta1.GlossaryInputConfig 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.cloud.translate.v3beta1.GlossaryInputConfig) { - return mergeFrom((com.google.cloud.translate.v3beta1.GlossaryInputConfig) other); + return mergeFrom((com.google.cloud.translate.v3beta1.GlossaryInputConfig)other); } else { super.mergeFrom(other); return this; @@ -566,18 +521,15 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.GlossaryInputConfig other) { - if (other == com.google.cloud.translate.v3beta1.GlossaryInputConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3beta1.GlossaryInputConfig.getDefaultInstance()) return this; switch (other.getSourceCase()) { - case GCS_SOURCE: - { - mergeGcsSource(other.getGcsSource()); - break; - } - case SOURCE_NOT_SET: - { - break; - } + case GCS_SOURCE: { + mergeGcsSource(other.getGcsSource()); + break; + } + case SOURCE_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -598,8 +550,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.translate.v3beta1.GlossaryInputConfig) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.translate.v3beta1.GlossaryInputConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -608,12 +559,12 @@ public Builder mergeFrom( } return this; } - private int sourceCase_ = 0; private java.lang.Object source_; - - public SourceCase getSourceCase() { - return SourceCase.forNumber(sourceCase_); + public SourceCase + getSourceCase() { + return SourceCase.forNumber( + sourceCase_); } public Builder clearSource() { @@ -623,14 +574,10 @@ public Builder clearSource() { return this; } + private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.GcsSource, - com.google.cloud.translate.v3beta1.GcsSource.Builder, - com.google.cloud.translate.v3beta1.GcsSourceOrBuilder> - gcsSourceBuilder_; + com.google.cloud.translate.v3beta1.GcsSource, com.google.cloud.translate.v3beta1.GcsSource.Builder, com.google.cloud.translate.v3beta1.GcsSourceOrBuilder> gcsSourceBuilder_; /** - * - * *
      * Required. Google Cloud Storage location of glossary data.
      * File format is determined based on the filename extension. API returns
@@ -652,7 +599,6 @@ public Builder clearSource() {
      * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 1; - * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -660,8 +606,6 @@ public boolean hasGcsSource() { return sourceCase_ == 1; } /** - * - * *
      * Required. Google Cloud Storage location of glossary data.
      * File format is determined based on the filename extension. API returns
@@ -683,7 +627,6 @@ public boolean hasGcsSource() {
      * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 1; - * * @return The gcsSource. */ @java.lang.Override @@ -701,8 +644,6 @@ public com.google.cloud.translate.v3beta1.GcsSource getGcsSource() { } } /** - * - * *
      * Required. Google Cloud Storage location of glossary data.
      * File format is determined based on the filename extension. API returns
@@ -739,8 +680,6 @@ public Builder setGcsSource(com.google.cloud.translate.v3beta1.GcsSource value)
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. Google Cloud Storage location of glossary data.
      * File format is determined based on the filename extension. API returns
@@ -775,8 +714,6 @@ public Builder setGcsSource(
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. Google Cloud Storage location of glossary data.
      * File format is determined based on the filename extension. API returns
@@ -801,13 +738,10 @@ public Builder setGcsSource(
      */
     public Builder mergeGcsSource(com.google.cloud.translate.v3beta1.GcsSource value) {
       if (gcsSourceBuilder_ == null) {
-        if (sourceCase_ == 1
-            && source_ != com.google.cloud.translate.v3beta1.GcsSource.getDefaultInstance()) {
-          source_ =
-              com.google.cloud.translate.v3beta1.GcsSource.newBuilder(
-                      (com.google.cloud.translate.v3beta1.GcsSource) source_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (sourceCase_ == 1 &&
+            source_ != com.google.cloud.translate.v3beta1.GcsSource.getDefaultInstance()) {
+          source_ = com.google.cloud.translate.v3beta1.GcsSource.newBuilder((com.google.cloud.translate.v3beta1.GcsSource) source_)
+              .mergeFrom(value).buildPartial();
         } else {
           source_ = value;
         }
@@ -822,8 +756,6 @@ public Builder mergeGcsSource(com.google.cloud.translate.v3beta1.GcsSource value
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. Google Cloud Storage location of glossary data.
      * File format is determined based on the filename extension. API returns
@@ -863,8 +795,6 @@ public Builder clearGcsSource() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. Google Cloud Storage location of glossary data.
      * File format is determined based on the filename extension. API returns
@@ -891,8 +821,6 @@ public com.google.cloud.translate.v3beta1.GcsSource.Builder getGcsSourceBuilder(
       return getGcsSourceFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Required. Google Cloud Storage location of glossary data.
      * File format is determined based on the filename extension. API returns
@@ -927,8 +855,6 @@ public com.google.cloud.translate.v3beta1.GcsSourceOrBuilder getGcsSourceOrBuild
       }
     }
     /**
-     *
-     *
      * 
      * Required. Google Cloud Storage location of glossary data.
      * File format is determined based on the filename extension. API returns
@@ -952,32 +878,26 @@ public com.google.cloud.translate.v3beta1.GcsSourceOrBuilder getGcsSourceOrBuild
      * .google.cloud.translation.v3beta1.GcsSource gcs_source = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.translate.v3beta1.GcsSource,
-            com.google.cloud.translate.v3beta1.GcsSource.Builder,
-            com.google.cloud.translate.v3beta1.GcsSourceOrBuilder>
+        com.google.cloud.translate.v3beta1.GcsSource, com.google.cloud.translate.v3beta1.GcsSource.Builder, com.google.cloud.translate.v3beta1.GcsSourceOrBuilder> 
         getGcsSourceFieldBuilder() {
       if (gcsSourceBuilder_ == null) {
         if (!(sourceCase_ == 1)) {
           source_ = com.google.cloud.translate.v3beta1.GcsSource.getDefaultInstance();
         }
-        gcsSourceBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.translate.v3beta1.GcsSource,
-                com.google.cloud.translate.v3beta1.GcsSource.Builder,
-                com.google.cloud.translate.v3beta1.GcsSourceOrBuilder>(
+        gcsSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.translate.v3beta1.GcsSource, com.google.cloud.translate.v3beta1.GcsSource.Builder, com.google.cloud.translate.v3beta1.GcsSourceOrBuilder>(
                 (com.google.cloud.translate.v3beta1.GcsSource) source_,
                 getParentForChildren(),
                 isClean());
         source_ = null;
       }
       sourceCase_ = 1;
-      onChanged();
-      ;
+      onChanged();;
       return gcsSourceBuilder_;
     }
-
     @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);
     }
 
@@ -987,12 +907,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.GlossaryInputConfig)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.GlossaryInputConfig)
   private static final com.google.cloud.translate.v3beta1.GlossaryInputConfig DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.GlossaryInputConfig();
   }
@@ -1001,16 +921,16 @@ public static com.google.cloud.translate.v3beta1.GlossaryInputConfig getDefaultI
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public GlossaryInputConfig parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new GlossaryInputConfig(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public GlossaryInputConfig parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new GlossaryInputConfig(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1025,4 +945,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3beta1.GlossaryInputConfig getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryInputConfigOrBuilder.java b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryInputConfigOrBuilder.java
similarity index 85%
rename from proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryInputConfigOrBuilder.java
rename to owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryInputConfigOrBuilder.java
index c11fbf8c..33cb6740 100644
--- a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryInputConfigOrBuilder.java
+++ b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryInputConfigOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2020 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/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
-public interface GlossaryInputConfigOrBuilder
-    extends
+public interface GlossaryInputConfigOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.GlossaryInputConfig)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. Google Cloud Storage location of glossary data.
    * File format is determined based on the filename extension. API returns
@@ -47,13 +29,10 @@ public interface GlossaryInputConfigOrBuilder
    * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 1; - * * @return Whether the gcsSource field is set. */ boolean hasGcsSource(); /** - * - * *
    * Required. Google Cloud Storage location of glossary data.
    * File format is determined based on the filename extension. API returns
@@ -75,13 +54,10 @@ public interface GlossaryInputConfigOrBuilder
    * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 1; - * * @return The gcsSource. */ com.google.cloud.translate.v3beta1.GcsSource getGcsSource(); /** - * - * *
    * Required. Google Cloud Storage location of glossary data.
    * File format is determined based on the filename extension. API returns
diff --git a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryName.java b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryName.java
similarity index 100%
rename from proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryName.java
rename to owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryName.java
diff --git a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryOrBuilder.java b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryOrBuilder.java
similarity index 79%
rename from proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryOrBuilder.java
rename to owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryOrBuilder.java
index 80ef4b59..94577b63 100644
--- a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryOrBuilder.java
+++ b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryOrBuilder.java
@@ -1,82 +1,53 @@
-/*
- * Copyright 2020 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/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
-public interface GlossaryOrBuilder
-    extends
+public interface GlossaryOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.Glossary)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. The resource name of the glossary. Glossary names have the form
    * `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The resource name of the glossary. Glossary names have the form
    * `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Used with unidirectional glossaries.
    * 
* * .google.cloud.translation.v3beta1.Glossary.LanguageCodePair language_pair = 3; - * * @return Whether the languagePair field is set. */ boolean hasLanguagePair(); /** - * - * *
    * Used with unidirectional glossaries.
    * 
* * .google.cloud.translation.v3beta1.Glossary.LanguageCodePair language_pair = 3; - * * @return The languagePair. */ com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair getLanguagePair(); /** - * - * *
    * Used with unidirectional glossaries.
    * 
@@ -86,73 +57,53 @@ public interface GlossaryOrBuilder com.google.cloud.translate.v3beta1.Glossary.LanguageCodePairOrBuilder getLanguagePairOrBuilder(); /** - * - * *
    * Used with equivalent term set glossaries.
    * 
* - * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; - * - * + * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; * @return Whether the languageCodesSet field is set. */ boolean hasLanguageCodesSet(); /** - * - * *
    * Used with equivalent term set glossaries.
    * 
* - * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; - * - * + * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; * @return The languageCodesSet. */ com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet getLanguageCodesSet(); /** - * - * *
    * Used with equivalent term set glossaries.
    * 
* - * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; - * + * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; */ - com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSetOrBuilder - getLanguageCodesSetOrBuilder(); + com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSetOrBuilder getLanguageCodesSetOrBuilder(); /** - * - * *
    * Required. Provides examples to build the glossary from.
    * Total glossary must not exceed 10M Unicode codepoints.
    * 
* * .google.cloud.translation.v3beta1.GlossaryInputConfig input_config = 5; - * * @return Whether the inputConfig field is set. */ boolean hasInputConfig(); /** - * - * *
    * Required. Provides examples to build the glossary from.
    * Total glossary must not exceed 10M Unicode codepoints.
    * 
* * .google.cloud.translation.v3beta1.GlossaryInputConfig input_config = 5; - * * @return The inputConfig. */ com.google.cloud.translate.v3beta1.GlossaryInputConfig getInputConfig(); /** - * - * *
    * Required. Provides examples to build the glossary from.
    * Total glossary must not exceed 10M Unicode codepoints.
@@ -163,91 +114,66 @@ public interface GlossaryOrBuilder
   com.google.cloud.translate.v3beta1.GlossaryInputConfigOrBuilder getInputConfigOrBuilder();
 
   /**
-   *
-   *
    * 
    * Output only. The number of entries defined in the glossary.
    * 
* * int32 entry_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The entryCount. */ int getEntryCount(); /** - * - * *
    * Output only. When CreateGlossary was called.
    * 
* - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the submitTime field is set. */ boolean hasSubmitTime(); /** - * - * *
    * Output only. When CreateGlossary was called.
    * 
* - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The submitTime. */ com.google.protobuf.Timestamp getSubmitTime(); /** - * - * *
    * Output only. When CreateGlossary was called.
    * 
* - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder(); /** - * - * *
    * Output only. When the glossary creation was finished.
    * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ boolean hasEndTime(); /** - * - * *
    * Output only. When the glossary creation was finished.
    * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** - * - * *
    * Output only. When the glossary creation was finished.
    * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); diff --git a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/InputConfig.java b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/InputConfig.java similarity index 79% rename from proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/InputConfig.java rename to owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/InputConfig.java index f12f5f1e..7db15daf 100644 --- a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/InputConfig.java +++ b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/InputConfig.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 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/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; /** - * - * *
  * Input configuration for BatchTranslateText request.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.InputConfig} */ -public final class InputConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class InputConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.InputConfig) InputConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use InputConfig.newBuilder() to construct. private InputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private InputConfig() { mimeType_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new InputConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private InputConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,74 +53,66 @@ private InputConfig( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - mimeType_ = s; - break; + mimeType_ = s; + break; + } + case 18: { + com.google.cloud.translate.v3beta1.GcsSource.Builder subBuilder = null; + if (sourceCase_ == 2) { + subBuilder = ((com.google.cloud.translate.v3beta1.GcsSource) source_).toBuilder(); } - case 18: - { - com.google.cloud.translate.v3beta1.GcsSource.Builder subBuilder = null; - if (sourceCase_ == 2) { - subBuilder = ((com.google.cloud.translate.v3beta1.GcsSource) source_).toBuilder(); - } - source_ = - input.readMessage( - com.google.cloud.translate.v3beta1.GcsSource.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.translate.v3beta1.GcsSource) source_); - source_ = subBuilder.buildPartial(); - } - sourceCase_ = 2; - break; + source_ = + input.readMessage(com.google.cloud.translate.v3beta1.GcsSource.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.translate.v3beta1.GcsSource) source_); + source_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + sourceCase_ = 2; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_InputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_InputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_InputConfig_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_InputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.InputConfig.class, - com.google.cloud.translate.v3beta1.InputConfig.Builder.class); + com.google.cloud.translate.v3beta1.InputConfig.class, com.google.cloud.translate.v3beta1.InputConfig.Builder.class); } private int sourceCase_ = 0; private java.lang.Object source_; - public enum SourceCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_SOURCE(2), SOURCE_NOT_SET(0); private final int value; - private SourceCase(int value) { this.value = value; } @@ -153,29 +128,25 @@ public static SourceCase valueOf(int value) { public static SourceCase forNumber(int value) { switch (value) { - case 2: - return GCS_SOURCE; - case 0: - return SOURCE_NOT_SET; - default: - return null; + case 2: return GCS_SOURCE; + case 0: return SOURCE_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public SourceCase getSourceCase() { - return SourceCase.forNumber(sourceCase_); + public SourceCase + getSourceCase() { + return SourceCase.forNumber( + sourceCase_); } public static final int MIME_TYPE_FIELD_NUMBER = 1; private volatile java.lang.Object mimeType_; /** - * - * *
    * Optional. Can be "text/plain" or "text/html".
    * For `.tsv`, "text/html" is used if mime_type is missing.
@@ -184,7 +155,6 @@ public SourceCase getSourceCase() {
    * 
* * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The mimeType. */ @java.lang.Override @@ -193,15 +163,14 @@ public java.lang.String getMimeType() { 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(); mimeType_ = s; return s; } } /** - * - * *
    * Optional. Can be "text/plain" or "text/html".
    * For `.tsv`, "text/html" is used if mime_type is missing.
@@ -210,15 +179,16 @@ public java.lang.String getMimeType() {
    * 
* * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for mimeType. */ @java.lang.Override - public com.google.protobuf.ByteString getMimeTypeBytes() { + public com.google.protobuf.ByteString + getMimeTypeBytes() { java.lang.Object ref = mimeType_; 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); mimeType_ = b; return b; } else { @@ -228,8 +198,6 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { public static final int GCS_SOURCE_FIELD_NUMBER = 2; /** - * - * *
    * Required. Google Cloud Storage location for the source input.
    * This can be a single file (for example,
@@ -250,7 +218,6 @@ public com.google.protobuf.ByteString getMimeTypeBytes() {
    * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 2; - * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -258,8 +225,6 @@ public boolean hasGcsSource() { return sourceCase_ == 2; } /** - * - * *
    * Required. Google Cloud Storage location for the source input.
    * This can be a single file (for example,
@@ -280,19 +245,16 @@ public boolean hasGcsSource() {
    * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 2; - * * @return The gcsSource. */ @java.lang.Override public com.google.cloud.translate.v3beta1.GcsSource getGcsSource() { if (sourceCase_ == 2) { - return (com.google.cloud.translate.v3beta1.GcsSource) source_; + return (com.google.cloud.translate.v3beta1.GcsSource) source_; } return com.google.cloud.translate.v3beta1.GcsSource.getDefaultInstance(); } /** - * - * *
    * Required. Google Cloud Storage location for the source input.
    * This can be a single file (for example,
@@ -317,13 +279,12 @@ public com.google.cloud.translate.v3beta1.GcsSource getGcsSource() {
   @java.lang.Override
   public com.google.cloud.translate.v3beta1.GcsSourceOrBuilder getGcsSourceOrBuilder() {
     if (sourceCase_ == 2) {
-      return (com.google.cloud.translate.v3beta1.GcsSource) source_;
+       return (com.google.cloud.translate.v3beta1.GcsSource) source_;
     }
     return com.google.cloud.translate.v3beta1.GcsSource.getDefaultInstance();
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -335,8 +296,9 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
-    if (!getMimeTypeBytes().isEmpty()) {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mimeType_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, mimeType_);
     }
     if (sourceCase_ == 2) {
@@ -351,13 +313,12 @@ public int getSerializedSize() {
     if (size != -1) return size;
 
     size = 0;
-    if (!getMimeTypeBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mimeType_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, mimeType_);
     }
     if (sourceCase_ == 2) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              2, (com.google.cloud.translate.v3beta1.GcsSource) source_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, (com.google.cloud.translate.v3beta1.GcsSource) source_);
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -367,19 +328,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.cloud.translate.v3beta1.InputConfig)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3beta1.InputConfig other =
-        (com.google.cloud.translate.v3beta1.InputConfig) obj;
+    com.google.cloud.translate.v3beta1.InputConfig other = (com.google.cloud.translate.v3beta1.InputConfig) obj;
 
-    if (!getMimeType().equals(other.getMimeType())) return false;
+    if (!getMimeType()
+        .equals(other.getMimeType())) return false;
     if (!getSourceCase().equals(other.getSourceCase())) return false;
     switch (sourceCase_) {
       case 2:
-        if (!getGcsSource().equals(other.getGcsSource())) return false;
+        if (!getGcsSource()
+            .equals(other.getGcsSource())) return false;
         break;
       case 0:
       default:
@@ -410,127 +372,118 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.translate.v3beta1.InputConfig parseFrom(java.nio.ByteBuffer data)
+  public static com.google.cloud.translate.v3beta1.InputConfig parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3beta1.InputConfig 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.cloud.translate.v3beta1.InputConfig parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3beta1.InputConfig 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.cloud.translate.v3beta1.InputConfig parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3beta1.InputConfig 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.cloud.translate.v3beta1.InputConfig 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.cloud.translate.v3beta1.InputConfig 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.cloud.translate.v3beta1.InputConfig parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3beta1.InputConfig parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3beta1.InputConfig 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.cloud.translate.v3beta1.InputConfig 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.cloud.translate.v3beta1.InputConfig 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.cloud.translate.v3beta1.InputConfig 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;
   }
   /**
-   *
-   *
    * 
    * Input configuration for BatchTranslateText request.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.InputConfig} */ - 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.translation.v3beta1.InputConfig) com.google.cloud.translate.v3beta1.InputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_InputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_InputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_InputConfig_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_InputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.InputConfig.class, - com.google.cloud.translate.v3beta1.InputConfig.Builder.class); + com.google.cloud.translate.v3beta1.InputConfig.class, com.google.cloud.translate.v3beta1.InputConfig.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.InputConfig.newBuilder() @@ -538,15 +491,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -558,9 +512,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_InputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_InputConfig_descriptor; } @java.lang.Override @@ -579,8 +533,7 @@ public com.google.cloud.translate.v3beta1.InputConfig build() { @java.lang.Override public com.google.cloud.translate.v3beta1.InputConfig buildPartial() { - com.google.cloud.translate.v3beta1.InputConfig result = - new com.google.cloud.translate.v3beta1.InputConfig(this); + com.google.cloud.translate.v3beta1.InputConfig result = new com.google.cloud.translate.v3beta1.InputConfig(this); result.mimeType_ = mimeType_; if (sourceCase_ == 2) { if (gcsSourceBuilder_ == null) { @@ -598,39 +551,38 @@ public com.google.cloud.translate.v3beta1.InputConfig 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.cloud.translate.v3beta1.InputConfig) { - return mergeFrom((com.google.cloud.translate.v3beta1.InputConfig) other); + return mergeFrom((com.google.cloud.translate.v3beta1.InputConfig)other); } else { super.mergeFrom(other); return this; @@ -644,15 +596,13 @@ public Builder mergeFrom(com.google.cloud.translate.v3beta1.InputConfig other) { onChanged(); } switch (other.getSourceCase()) { - case GCS_SOURCE: - { - mergeGcsSource(other.getGcsSource()); - break; - } - case SOURCE_NOT_SET: - { - break; - } + case GCS_SOURCE: { + mergeGcsSource(other.getGcsSource()); + break; + } + case SOURCE_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -682,12 +632,12 @@ public Builder mergeFrom( } return this; } - private int sourceCase_ = 0; private java.lang.Object source_; - - public SourceCase getSourceCase() { - return SourceCase.forNumber(sourceCase_); + public SourceCase + getSourceCase() { + return SourceCase.forNumber( + sourceCase_); } public Builder clearSource() { @@ -697,10 +647,9 @@ public Builder clearSource() { return this; } + private java.lang.Object mimeType_ = ""; /** - * - * *
      * Optional. Can be "text/plain" or "text/html".
      * For `.tsv`, "text/html" is used if mime_type is missing.
@@ -709,13 +658,13 @@ public Builder clearSource() {
      * 
* * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The mimeType. */ public java.lang.String getMimeType() { java.lang.Object ref = mimeType_; 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(); mimeType_ = s; return s; @@ -724,8 +673,6 @@ public java.lang.String getMimeType() { } } /** - * - * *
      * Optional. Can be "text/plain" or "text/html".
      * For `.tsv`, "text/html" is used if mime_type is missing.
@@ -734,14 +681,15 @@ public java.lang.String getMimeType() {
      * 
* * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for mimeType. */ - public com.google.protobuf.ByteString getMimeTypeBytes() { + public com.google.protobuf.ByteString + getMimeTypeBytes() { java.lang.Object ref = mimeType_; 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); mimeType_ = b; return b; } else { @@ -749,8 +697,6 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { } } /** - * - * *
      * Optional. Can be "text/plain" or "text/html".
      * For `.tsv`, "text/html" is used if mime_type is missing.
@@ -759,22 +705,20 @@ public com.google.protobuf.ByteString getMimeTypeBytes() {
      * 
* * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The mimeType to set. * @return This builder for chaining. */ - public Builder setMimeType(java.lang.String value) { + public Builder setMimeType( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + mimeType_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Can be "text/plain" or "text/html".
      * For `.tsv`, "text/html" is used if mime_type is missing.
@@ -783,18 +727,15 @@ public Builder setMimeType(java.lang.String value) {
      * 
* * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearMimeType() { - + mimeType_ = getDefaultInstance().getMimeType(); onChanged(); return this; } /** - * - * *
      * Optional. Can be "text/plain" or "text/html".
      * For `.tsv`, "text/html" is used if mime_type is missing.
@@ -803,29 +744,24 @@ public Builder clearMimeType() {
      * 
* * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for mimeType to set. * @return This builder for chaining. */ - public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { + public Builder setMimeTypeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mimeType_ = value; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.GcsSource, - com.google.cloud.translate.v3beta1.GcsSource.Builder, - com.google.cloud.translate.v3beta1.GcsSourceOrBuilder> - gcsSourceBuilder_; + com.google.cloud.translate.v3beta1.GcsSource, com.google.cloud.translate.v3beta1.GcsSource.Builder, com.google.cloud.translate.v3beta1.GcsSourceOrBuilder> gcsSourceBuilder_; /** - * - * *
      * Required. Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -846,7 +782,6 @@ public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) {
      * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 2; - * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -854,8 +789,6 @@ public boolean hasGcsSource() { return sourceCase_ == 2; } /** - * - * *
      * Required. Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -876,7 +809,6 @@ public boolean hasGcsSource() {
      * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 2; - * * @return The gcsSource. */ @java.lang.Override @@ -894,8 +826,6 @@ public com.google.cloud.translate.v3beta1.GcsSource getGcsSource() { } } /** - * - * *
      * Required. Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -931,8 +861,6 @@ public Builder setGcsSource(com.google.cloud.translate.v3beta1.GcsSource value)
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -966,8 +894,6 @@ public Builder setGcsSource(
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -991,13 +917,10 @@ public Builder setGcsSource(
      */
     public Builder mergeGcsSource(com.google.cloud.translate.v3beta1.GcsSource value) {
       if (gcsSourceBuilder_ == null) {
-        if (sourceCase_ == 2
-            && source_ != com.google.cloud.translate.v3beta1.GcsSource.getDefaultInstance()) {
-          source_ =
-              com.google.cloud.translate.v3beta1.GcsSource.newBuilder(
-                      (com.google.cloud.translate.v3beta1.GcsSource) source_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (sourceCase_ == 2 &&
+            source_ != com.google.cloud.translate.v3beta1.GcsSource.getDefaultInstance()) {
+          source_ = com.google.cloud.translate.v3beta1.GcsSource.newBuilder((com.google.cloud.translate.v3beta1.GcsSource) source_)
+              .mergeFrom(value).buildPartial();
         } else {
           source_ = value;
         }
@@ -1012,8 +935,6 @@ public Builder mergeGcsSource(com.google.cloud.translate.v3beta1.GcsSource value
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -1052,8 +973,6 @@ public Builder clearGcsSource() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -1079,8 +998,6 @@ public com.google.cloud.translate.v3beta1.GcsSource.Builder getGcsSourceBuilder(
       return getGcsSourceFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Required. Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -1114,8 +1031,6 @@ public com.google.cloud.translate.v3beta1.GcsSourceOrBuilder getGcsSourceOrBuild
       }
     }
     /**
-     *
-     *
      * 
      * Required. Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -1138,32 +1053,26 @@ public com.google.cloud.translate.v3beta1.GcsSourceOrBuilder getGcsSourceOrBuild
      * .google.cloud.translation.v3beta1.GcsSource gcs_source = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.translate.v3beta1.GcsSource,
-            com.google.cloud.translate.v3beta1.GcsSource.Builder,
-            com.google.cloud.translate.v3beta1.GcsSourceOrBuilder>
+        com.google.cloud.translate.v3beta1.GcsSource, com.google.cloud.translate.v3beta1.GcsSource.Builder, com.google.cloud.translate.v3beta1.GcsSourceOrBuilder> 
         getGcsSourceFieldBuilder() {
       if (gcsSourceBuilder_ == null) {
         if (!(sourceCase_ == 2)) {
           source_ = com.google.cloud.translate.v3beta1.GcsSource.getDefaultInstance();
         }
-        gcsSourceBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.translate.v3beta1.GcsSource,
-                com.google.cloud.translate.v3beta1.GcsSource.Builder,
-                com.google.cloud.translate.v3beta1.GcsSourceOrBuilder>(
+        gcsSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.translate.v3beta1.GcsSource, com.google.cloud.translate.v3beta1.GcsSource.Builder, com.google.cloud.translate.v3beta1.GcsSourceOrBuilder>(
                 (com.google.cloud.translate.v3beta1.GcsSource) source_,
                 getParentForChildren(),
                 isClean());
         source_ = null;
       }
       sourceCase_ = 2;
-      onChanged();
-      ;
+      onChanged();;
       return gcsSourceBuilder_;
     }
-
     @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);
     }
 
@@ -1173,12 +1082,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.InputConfig)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.InputConfig)
   private static final com.google.cloud.translate.v3beta1.InputConfig DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.InputConfig();
   }
@@ -1187,16 +1096,16 @@ public static com.google.cloud.translate.v3beta1.InputConfig getDefaultInstance(
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public InputConfig parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new InputConfig(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public InputConfig parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new InputConfig(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1211,4 +1120,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3beta1.InputConfig getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/InputConfigOrBuilder.java b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/InputConfigOrBuilder.java
similarity index 86%
rename from proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/InputConfigOrBuilder.java
rename to owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/InputConfigOrBuilder.java
index 89c03286..a6d23de8 100644
--- a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/InputConfigOrBuilder.java
+++ b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/InputConfigOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2020 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/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
-public interface InputConfigOrBuilder
-    extends
+public interface InputConfigOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.InputConfig)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Optional. Can be "text/plain" or "text/html".
    * For `.tsv`, "text/html" is used if mime_type is missing.
@@ -34,13 +16,10 @@ public interface InputConfigOrBuilder
    * 
* * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The mimeType. */ java.lang.String getMimeType(); /** - * - * *
    * Optional. Can be "text/plain" or "text/html".
    * For `.tsv`, "text/html" is used if mime_type is missing.
@@ -49,14 +28,12 @@ public interface InputConfigOrBuilder
    * 
* * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for mimeType. */ - com.google.protobuf.ByteString getMimeTypeBytes(); + com.google.protobuf.ByteString + getMimeTypeBytes(); /** - * - * *
    * Required. Google Cloud Storage location for the source input.
    * This can be a single file (for example,
@@ -77,13 +54,10 @@ public interface InputConfigOrBuilder
    * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 2; - * * @return Whether the gcsSource field is set. */ boolean hasGcsSource(); /** - * - * *
    * Required. Google Cloud Storage location for the source input.
    * This can be a single file (for example,
@@ -104,13 +78,10 @@ public interface InputConfigOrBuilder
    * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 2; - * * @return The gcsSource. */ com.google.cloud.translate.v3beta1.GcsSource getGcsSource(); /** - * - * *
    * Required. Google Cloud Storage location for the source input.
    * This can be a single file (for example,
diff --git a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesRequest.java b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesRequest.java
similarity index 75%
rename from proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesRequest.java
rename to owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesRequest.java
index 1ea16f21..6740ef80 100644
--- a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesRequest.java
+++ b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesRequest.java
@@ -1,42 +1,24 @@
-/*
- * Copyright 2020 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/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
 /**
- *
- *
  * 
  * Request message for ListGlossaries.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.ListGlossariesRequest} */ -public final class ListGlossariesRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListGlossariesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.ListGlossariesRequest) ListGlossariesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListGlossariesRequest.newBuilder() to construct. private ListGlossariesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListGlossariesRequest() { parent_ = ""; pageToken_ = ""; @@ -45,15 +27,16 @@ private ListGlossariesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListGlossariesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListGlossariesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,79 +55,69 @@ private ListGlossariesRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: { - pageToken_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + pageSize_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageToken_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + filter_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_ListGlossariesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_ListGlossariesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_ListGlossariesRequest_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_ListGlossariesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.ListGlossariesRequest.class, - com.google.cloud.translate.v3beta1.ListGlossariesRequest.Builder.class); + com.google.cloud.translate.v3beta1.ListGlossariesRequest.class, com.google.cloud.translate.v3beta1.ListGlossariesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The name of the project from which to list all of the glossaries.
    * 
* - * - * 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 @@ -153,31 +126,29 @@ 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 from which to list all of the glossaries.
    * 
* - * - * 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 { @@ -188,15 +159,12 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * Optional. Requested page size. The server may return fewer glossaries than
    * requested. If unspecified, the server picks an appropriate default.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -207,8 +175,6 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * Optional. A token identifying a page of results the server should return.
    * Typically, this is the value of [ListGlossariesResponse.next_page_token]
@@ -217,7 +183,6 @@ public int getPageSize() {
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ @java.lang.Override @@ -226,15 +191,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 token identifying a page of results the server should return.
    * Typically, this is the value of [ListGlossariesResponse.next_page_token]
@@ -243,15 +207,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 { @@ -262,8 +227,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int FILTER_FIELD_NUMBER = 4; private volatile java.lang.Object filter_; /** - * - * *
    * Optional. Filter specifying constraints of a list operation.
    * Specify the constraint by the format of "key=value", where key must be
@@ -284,7 +247,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ @java.lang.Override @@ -293,15 +255,14 @@ public java.lang.String getFilter() { 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(); filter_ = s; return s; } } /** - * - * *
    * Optional. Filter specifying constraints of a list operation.
    * Specify the constraint by the format of "key=value", where key must be
@@ -322,15 +283,16 @@ public java.lang.String getFilter() {
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; 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); filter_ = b; return b; } else { @@ -339,7 +301,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -351,17 +312,18 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + 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_); } if (pageSize_ != 0) { output.writeInt32(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); } - if (!getFilterBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); } unknownFields.writeTo(output); @@ -373,16 +335,17 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { 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 (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); } - if (!getFilterBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); } size += unknownFields.getSerializedSize(); @@ -393,18 +356,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.cloud.translate.v3beta1.ListGlossariesRequest)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.ListGlossariesRequest other = - (com.google.cloud.translate.v3beta1.ListGlossariesRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getFilter().equals(other.getFilter())) return false; + com.google.cloud.translate.v3beta1.ListGlossariesRequest other = (com.google.cloud.translate.v3beta1.ListGlossariesRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -430,127 +396,117 @@ public int hashCode() { } public static com.google.cloud.translate.v3beta1.ListGlossariesRequest 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.cloud.translate.v3beta1.ListGlossariesRequest 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.cloud.translate.v3beta1.ListGlossariesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.ListGlossariesRequest 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.cloud.translate.v3beta1.ListGlossariesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.ListGlossariesRequest 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.cloud.translate.v3beta1.ListGlossariesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.ListGlossariesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.ListGlossariesRequest 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.cloud.translate.v3beta1.ListGlossariesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.ListGlossariesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.ListGlossariesRequest 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.cloud.translate.v3beta1.ListGlossariesRequest 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.cloud.translate.v3beta1.ListGlossariesRequest 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.cloud.translate.v3beta1.ListGlossariesRequest prototype) { + public static Builder newBuilder(com.google.cloud.translate.v3beta1.ListGlossariesRequest 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; } /** - * - * *
    * Request message for ListGlossaries.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.ListGlossariesRequest} */ - 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.translation.v3beta1.ListGlossariesRequest) com.google.cloud.translate.v3beta1.ListGlossariesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_ListGlossariesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_ListGlossariesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_ListGlossariesRequest_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_ListGlossariesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.ListGlossariesRequest.class, - com.google.cloud.translate.v3beta1.ListGlossariesRequest.Builder.class); + com.google.cloud.translate.v3beta1.ListGlossariesRequest.class, com.google.cloud.translate.v3beta1.ListGlossariesRequest.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.ListGlossariesRequest.newBuilder() @@ -558,15 +514,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -582,9 +539,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_ListGlossariesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_ListGlossariesRequest_descriptor; } @java.lang.Override @@ -603,8 +560,7 @@ public com.google.cloud.translate.v3beta1.ListGlossariesRequest build() { @java.lang.Override public com.google.cloud.translate.v3beta1.ListGlossariesRequest buildPartial() { - com.google.cloud.translate.v3beta1.ListGlossariesRequest result = - new com.google.cloud.translate.v3beta1.ListGlossariesRequest(this); + com.google.cloud.translate.v3beta1.ListGlossariesRequest result = new com.google.cloud.translate.v3beta1.ListGlossariesRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -617,39 +573,38 @@ public com.google.cloud.translate.v3beta1.ListGlossariesRequest 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.cloud.translate.v3beta1.ListGlossariesRequest) { - return mergeFrom((com.google.cloud.translate.v3beta1.ListGlossariesRequest) other); + return mergeFrom((com.google.cloud.translate.v3beta1.ListGlossariesRequest)other); } else { super.mergeFrom(other); return this; @@ -657,8 +612,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.ListGlossariesRequest other) { - if (other == com.google.cloud.translate.v3beta1.ListGlossariesRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3beta1.ListGlossariesRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -693,8 +647,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.translate.v3beta1.ListGlossariesRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.translate.v3beta1.ListGlossariesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -706,22 +659,18 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The name of the project from which to list all of the glossaries.
      * 
* - * - * 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; @@ -730,23 +679,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The name of the project from which to list all of the glossaries.
      * 
* - * - * 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 { @@ -754,83 +700,67 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The name of the project from which to list all of the glossaries.
      * 
* - * - * 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) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The name of the project from which to list all of the glossaries.
      * 
* - * - * 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() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The name of the project from which to list all of the glossaries.
      * 
* - * - * 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) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Optional. Requested page size. The server may return fewer glossaries than
      * requested. If unspecified, the server picks an appropriate default.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -838,38 +768,32 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Optional. Requested page size. The server may return fewer glossaries than
      * requested. If unspecified, the server picks an appropriate default.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Requested page size. The server may return fewer glossaries than
      * requested. If unspecified, the server picks an appropriate default.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -877,8 +801,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * Optional. A token identifying a page of results the server should return.
      * Typically, this is the value of [ListGlossariesResponse.next_page_token]
@@ -887,13 +809,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; @@ -902,8 +824,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * Optional. A token identifying a page of results the server should return.
      * Typically, this is the value of [ListGlossariesResponse.next_page_token]
@@ -912,14 +832,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 { @@ -927,8 +848,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Optional. A token identifying a page of results the server should return.
      * Typically, this is the value of [ListGlossariesResponse.next_page_token]
@@ -937,22 +856,20 @@ 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) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * Optional. A token identifying a page of results the server should return.
      * Typically, this is the value of [ListGlossariesResponse.next_page_token]
@@ -961,18 +878,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * Optional. A token identifying a page of results the server should return.
      * Typically, this is the value of [ListGlossariesResponse.next_page_token]
@@ -981,16 +895,16 @@ 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) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; @@ -998,8 +912,6 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * Optional. Filter specifying constraints of a list operation.
      * Specify the constraint by the format of "key=value", where key must be
@@ -1020,13 +932,13 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
      * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; 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(); filter_ = s; return s; @@ -1035,8 +947,6 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Optional. Filter specifying constraints of a list operation.
      * Specify the constraint by the format of "key=value", where key must be
@@ -1057,14 +967,15 @@ public java.lang.String getFilter() {
      * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; 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); filter_ = b; return b; } else { @@ -1072,8 +983,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Optional. Filter specifying constraints of a list operation.
      * Specify the constraint by the format of "key=value", where key must be
@@ -1094,22 +1003,20 @@ public com.google.protobuf.ByteString getFilterBytes() {
      * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { + public Builder setFilter( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Filter specifying constraints of a list operation.
      * Specify the constraint by the format of "key=value", where key must be
@@ -1130,18 +1037,15 @@ public Builder setFilter(java.lang.String value) {
      * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
      * Optional. Filter specifying constraints of a list operation.
      * Specify the constraint by the format of "key=value", where key must be
@@ -1162,23 +1066,23 @@ public Builder clearFilter() {
      * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; 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); } @@ -1188,12 +1092,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.ListGlossariesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.ListGlossariesRequest) private static final com.google.cloud.translate.v3beta1.ListGlossariesRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.ListGlossariesRequest(); } @@ -1202,16 +1106,16 @@ public static com.google.cloud.translate.v3beta1.ListGlossariesRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListGlossariesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListGlossariesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListGlossariesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListGlossariesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1226,4 +1130,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3beta1.ListGlossariesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesRequestOrBuilder.java b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesRequestOrBuilder.java similarity index 79% rename from proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesRequestOrBuilder.java rename to owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesRequestOrBuilder.java index c84335be..2e12d3cd 100644 --- a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesRequestOrBuilder.java +++ b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesRequestOrBuilder.java @@ -1,74 +1,44 @@ -/* - * Copyright 2020 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/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; -public interface ListGlossariesRequestOrBuilder - extends +public interface ListGlossariesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.ListGlossariesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The name of the project from which to list all of the glossaries.
    * 
* - * - * 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 from which to list all of the glossaries.
    * 
* - * - * 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. Requested page size. The server may return fewer glossaries than
    * requested. If unspecified, the server picks an appropriate default.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * Optional. A token identifying a page of results the server should return.
    * Typically, this is the value of [ListGlossariesResponse.next_page_token]
@@ -77,13 +47,10 @@ public interface ListGlossariesRequestOrBuilder
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * Optional. A token identifying a page of results the server should return.
    * Typically, this is the value of [ListGlossariesResponse.next_page_token]
@@ -92,14 +59,12 @@ public interface ListGlossariesRequestOrBuilder
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * Optional. Filter specifying constraints of a list operation.
    * Specify the constraint by the format of "key=value", where key must be
@@ -120,13 +85,10 @@ public interface ListGlossariesRequestOrBuilder
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * Optional. Filter specifying constraints of a list operation.
    * Specify the constraint by the format of "key=value", where key must be
@@ -147,8 +109,8 @@ public interface ListGlossariesRequestOrBuilder
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); } diff --git a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesResponse.java b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesResponse.java similarity index 74% rename from proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesResponse.java rename to owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesResponse.java index b9ccc8b3..7cf90b86 100644 --- a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesResponse.java +++ b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 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/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; /** - * - * *
  * Response message for ListGlossaries.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.ListGlossariesResponse} */ -public final class ListGlossariesResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListGlossariesResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.ListGlossariesResponse) ListGlossariesResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListGlossariesResponse.newBuilder() to construct. private ListGlossariesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListGlossariesResponse() { glossaries_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,15 +26,16 @@ private ListGlossariesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListGlossariesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListGlossariesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,38 +55,35 @@ private ListGlossariesResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - glossaries_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - glossaries_.add( - input.readMessage( - com.google.cloud.translate.v3beta1.Glossary.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + glossaries_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + glossaries_.add( + input.readMessage(com.google.cloud.translate.v3beta1.Glossary.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { glossaries_ = java.util.Collections.unmodifiableList(glossaries_); @@ -112,27 +92,22 @@ private ListGlossariesResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_ListGlossariesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_ListGlossariesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_ListGlossariesResponse_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_ListGlossariesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.ListGlossariesResponse.class, - com.google.cloud.translate.v3beta1.ListGlossariesResponse.Builder.class); + com.google.cloud.translate.v3beta1.ListGlossariesResponse.class, com.google.cloud.translate.v3beta1.ListGlossariesResponse.Builder.class); } public static final int GLOSSARIES_FIELD_NUMBER = 1; private java.util.List glossaries_; /** - * - * *
    * The list of glossaries for a project.
    * 
@@ -144,8 +119,6 @@ public java.util.List getGlossaries return glossaries_; } /** - * - * *
    * The list of glossaries for a project.
    * 
@@ -153,13 +126,11 @@ public java.util.List getGlossaries * repeated .google.cloud.translation.v3beta1.Glossary glossaries = 1; */ @java.lang.Override - public java.util.List + public java.util.List getGlossariesOrBuilderList() { return glossaries_; } /** - * - * *
    * The list of glossaries for a project.
    * 
@@ -171,8 +142,6 @@ public int getGlossariesCount() { return glossaries_.size(); } /** - * - * *
    * The list of glossaries for a project.
    * 
@@ -184,8 +153,6 @@ public com.google.cloud.translate.v3beta1.Glossary getGlossaries(int index) { return glossaries_.get(index); } /** - * - * *
    * The list of glossaries for a project.
    * 
@@ -193,15 +160,14 @@ public com.google.cloud.translate.v3beta1.Glossary getGlossaries(int index) { * repeated .google.cloud.translation.v3beta1.Glossary glossaries = 1; */ @java.lang.Override - public com.google.cloud.translate.v3beta1.GlossaryOrBuilder getGlossariesOrBuilder(int index) { + public com.google.cloud.translate.v3beta1.GlossaryOrBuilder getGlossariesOrBuilder( + int index) { return glossaries_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * A token to retrieve a page of results. Pass this value in the
    * [ListGlossariesRequest.page_token] field in the subsequent call to
@@ -209,7 +175,6 @@ public com.google.cloud.translate.v3beta1.GlossaryOrBuilder getGlossariesOrBuild
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -218,15 +183,14 @@ 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 to retrieve a page of results. Pass this value in the
    * [ListGlossariesRequest.page_token] field in the subsequent call to
@@ -234,15 +198,16 @@ public java.lang.String getNextPageToken() {
    * 
* * 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 { @@ -251,7 +216,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -263,11 +227,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 { for (int i = 0; i < glossaries_.size(); i++) { output.writeMessage(1, glossaries_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } unknownFields.writeTo(output); @@ -280,9 +245,10 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < glossaries_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, glossaries_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, glossaries_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } size += unknownFields.getSerializedSize(); @@ -293,16 +259,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.cloud.translate.v3beta1.ListGlossariesResponse)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.ListGlossariesResponse other = - (com.google.cloud.translate.v3beta1.ListGlossariesResponse) obj; + com.google.cloud.translate.v3beta1.ListGlossariesResponse other = (com.google.cloud.translate.v3beta1.ListGlossariesResponse) obj; - if (!getGlossariesList().equals(other.getGlossariesList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getGlossariesList() + .equals(other.getGlossariesList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -326,127 +293,117 @@ public int hashCode() { } public static com.google.cloud.translate.v3beta1.ListGlossariesResponse 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.cloud.translate.v3beta1.ListGlossariesResponse 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.cloud.translate.v3beta1.ListGlossariesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.ListGlossariesResponse 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.cloud.translate.v3beta1.ListGlossariesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.ListGlossariesResponse 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.cloud.translate.v3beta1.ListGlossariesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.ListGlossariesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.ListGlossariesResponse 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.cloud.translate.v3beta1.ListGlossariesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.ListGlossariesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.ListGlossariesResponse 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.cloud.translate.v3beta1.ListGlossariesResponse 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.cloud.translate.v3beta1.ListGlossariesResponse 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.cloud.translate.v3beta1.ListGlossariesResponse prototype) { + public static Builder newBuilder(com.google.cloud.translate.v3beta1.ListGlossariesResponse 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 message for ListGlossaries.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.ListGlossariesResponse} */ - 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.translation.v3beta1.ListGlossariesResponse) com.google.cloud.translate.v3beta1.ListGlossariesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_ListGlossariesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_ListGlossariesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_ListGlossariesResponse_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_ListGlossariesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.ListGlossariesResponse.class, - com.google.cloud.translate.v3beta1.ListGlossariesResponse.Builder.class); + com.google.cloud.translate.v3beta1.ListGlossariesResponse.class, com.google.cloud.translate.v3beta1.ListGlossariesResponse.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.ListGlossariesResponse.newBuilder() @@ -454,17 +411,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getGlossariesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -480,9 +437,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_ListGlossariesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_ListGlossariesResponse_descriptor; } @java.lang.Override @@ -501,8 +458,7 @@ public com.google.cloud.translate.v3beta1.ListGlossariesResponse build() { @java.lang.Override public com.google.cloud.translate.v3beta1.ListGlossariesResponse buildPartial() { - com.google.cloud.translate.v3beta1.ListGlossariesResponse result = - new com.google.cloud.translate.v3beta1.ListGlossariesResponse(this); + com.google.cloud.translate.v3beta1.ListGlossariesResponse result = new com.google.cloud.translate.v3beta1.ListGlossariesResponse(this); int from_bitField0_ = bitField0_; if (glossariesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -522,39 +478,38 @@ public com.google.cloud.translate.v3beta1.ListGlossariesResponse 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.cloud.translate.v3beta1.ListGlossariesResponse) { - return mergeFrom((com.google.cloud.translate.v3beta1.ListGlossariesResponse) other); + return mergeFrom((com.google.cloud.translate.v3beta1.ListGlossariesResponse)other); } else { super.mergeFrom(other); return this; @@ -562,8 +517,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.ListGlossariesResponse other) { - if (other == com.google.cloud.translate.v3beta1.ListGlossariesResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3beta1.ListGlossariesResponse.getDefaultInstance()) return this; if (glossariesBuilder_ == null) { if (!other.glossaries_.isEmpty()) { if (glossaries_.isEmpty()) { @@ -582,10 +536,9 @@ public Builder mergeFrom(com.google.cloud.translate.v3beta1.ListGlossariesRespon glossariesBuilder_ = null; glossaries_ = other.glossaries_; bitField0_ = (bitField0_ & ~0x00000001); - glossariesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getGlossariesFieldBuilder() - : null; + glossariesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getGlossariesFieldBuilder() : null; } else { glossariesBuilder_.addAllMessages(other.glossaries_); } @@ -614,8 +567,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.translate.v3beta1.ListGlossariesResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.translate.v3beta1.ListGlossariesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -624,29 +576,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List glossaries_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureGlossariesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - glossaries_ = - new java.util.ArrayList(glossaries_); + glossaries_ = new java.util.ArrayList(glossaries_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.translate.v3beta1.Glossary, - com.google.cloud.translate.v3beta1.Glossary.Builder, - com.google.cloud.translate.v3beta1.GlossaryOrBuilder> - glossariesBuilder_; + com.google.cloud.translate.v3beta1.Glossary, com.google.cloud.translate.v3beta1.Glossary.Builder, com.google.cloud.translate.v3beta1.GlossaryOrBuilder> glossariesBuilder_; /** - * - * *
      * The list of glossaries for a project.
      * 
@@ -661,8 +605,6 @@ public java.util.List getGlossaries } } /** - * - * *
      * The list of glossaries for a project.
      * 
@@ -677,8 +619,6 @@ public int getGlossariesCount() { } } /** - * - * *
      * The list of glossaries for a project.
      * 
@@ -693,15 +633,14 @@ public com.google.cloud.translate.v3beta1.Glossary getGlossaries(int index) { } } /** - * - * *
      * The list of glossaries for a project.
      * 
* * repeated .google.cloud.translation.v3beta1.Glossary glossaries = 1; */ - public Builder setGlossaries(int index, com.google.cloud.translate.v3beta1.Glossary value) { + public Builder setGlossaries( + int index, com.google.cloud.translate.v3beta1.Glossary value) { if (glossariesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -715,8 +654,6 @@ public Builder setGlossaries(int index, com.google.cloud.translate.v3beta1.Gloss return this; } /** - * - * *
      * The list of glossaries for a project.
      * 
@@ -735,8 +672,6 @@ public Builder setGlossaries( return this; } /** - * - * *
      * The list of glossaries for a project.
      * 
@@ -757,15 +692,14 @@ public Builder addGlossaries(com.google.cloud.translate.v3beta1.Glossary value) return this; } /** - * - * *
      * The list of glossaries for a project.
      * 
* * repeated .google.cloud.translation.v3beta1.Glossary glossaries = 1; */ - public Builder addGlossaries(int index, com.google.cloud.translate.v3beta1.Glossary value) { + public Builder addGlossaries( + int index, com.google.cloud.translate.v3beta1.Glossary value) { if (glossariesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -779,8 +713,6 @@ public Builder addGlossaries(int index, com.google.cloud.translate.v3beta1.Gloss return this; } /** - * - * *
      * The list of glossaries for a project.
      * 
@@ -799,8 +731,6 @@ public Builder addGlossaries( return this; } /** - * - * *
      * The list of glossaries for a project.
      * 
@@ -819,8 +749,6 @@ public Builder addGlossaries( return this; } /** - * - * *
      * The list of glossaries for a project.
      * 
@@ -831,7 +759,8 @@ public Builder addAllGlossaries( java.lang.Iterable values) { if (glossariesBuilder_ == null) { ensureGlossariesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, glossaries_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, glossaries_); onChanged(); } else { glossariesBuilder_.addAllMessages(values); @@ -839,8 +768,6 @@ public Builder addAllGlossaries( return this; } /** - * - * *
      * The list of glossaries for a project.
      * 
@@ -858,8 +785,6 @@ public Builder clearGlossaries() { return this; } /** - * - * *
      * The list of glossaries for a project.
      * 
@@ -877,44 +802,39 @@ public Builder removeGlossaries(int index) { return this; } /** - * - * *
      * The list of glossaries for a project.
      * 
* * repeated .google.cloud.translation.v3beta1.Glossary glossaries = 1; */ - public com.google.cloud.translate.v3beta1.Glossary.Builder getGlossariesBuilder(int index) { + public com.google.cloud.translate.v3beta1.Glossary.Builder getGlossariesBuilder( + int index) { return getGlossariesFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of glossaries for a project.
      * 
* * repeated .google.cloud.translation.v3beta1.Glossary glossaries = 1; */ - public com.google.cloud.translate.v3beta1.GlossaryOrBuilder getGlossariesOrBuilder(int index) { + public com.google.cloud.translate.v3beta1.GlossaryOrBuilder getGlossariesOrBuilder( + int index) { if (glossariesBuilder_ == null) { - return glossaries_.get(index); - } else { + return glossaries_.get(index); } else { return glossariesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of glossaries for a project.
      * 
* * repeated .google.cloud.translation.v3beta1.Glossary glossaries = 1; */ - public java.util.List - getGlossariesOrBuilderList() { + public java.util.List + getGlossariesOrBuilderList() { if (glossariesBuilder_ != null) { return glossariesBuilder_.getMessageOrBuilderList(); } else { @@ -922,8 +842,6 @@ public com.google.cloud.translate.v3beta1.GlossaryOrBuilder getGlossariesOrBuild } } /** - * - * *
      * The list of glossaries for a project.
      * 
@@ -931,48 +849,42 @@ public com.google.cloud.translate.v3beta1.GlossaryOrBuilder getGlossariesOrBuild * repeated .google.cloud.translation.v3beta1.Glossary glossaries = 1; */ public com.google.cloud.translate.v3beta1.Glossary.Builder addGlossariesBuilder() { - return getGlossariesFieldBuilder() - .addBuilder(com.google.cloud.translate.v3beta1.Glossary.getDefaultInstance()); + return getGlossariesFieldBuilder().addBuilder( + com.google.cloud.translate.v3beta1.Glossary.getDefaultInstance()); } /** - * - * *
      * The list of glossaries for a project.
      * 
* * repeated .google.cloud.translation.v3beta1.Glossary glossaries = 1; */ - public com.google.cloud.translate.v3beta1.Glossary.Builder addGlossariesBuilder(int index) { - return getGlossariesFieldBuilder() - .addBuilder(index, com.google.cloud.translate.v3beta1.Glossary.getDefaultInstance()); + public com.google.cloud.translate.v3beta1.Glossary.Builder addGlossariesBuilder( + int index) { + return getGlossariesFieldBuilder().addBuilder( + index, com.google.cloud.translate.v3beta1.Glossary.getDefaultInstance()); } /** - * - * *
      * The list of glossaries for a project.
      * 
* * repeated .google.cloud.translation.v3beta1.Glossary glossaries = 1; */ - public java.util.List - getGlossariesBuilderList() { + public java.util.List + getGlossariesBuilderList() { return getGlossariesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.translate.v3beta1.Glossary, - com.google.cloud.translate.v3beta1.Glossary.Builder, - com.google.cloud.translate.v3beta1.GlossaryOrBuilder> + com.google.cloud.translate.v3beta1.Glossary, com.google.cloud.translate.v3beta1.Glossary.Builder, com.google.cloud.translate.v3beta1.GlossaryOrBuilder> getGlossariesFieldBuilder() { if (glossariesBuilder_ == null) { - glossariesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.translate.v3beta1.Glossary, - com.google.cloud.translate.v3beta1.Glossary.Builder, - com.google.cloud.translate.v3beta1.GlossaryOrBuilder>( - glossaries_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + glossariesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.translate.v3beta1.Glossary, com.google.cloud.translate.v3beta1.Glossary.Builder, com.google.cloud.translate.v3beta1.GlossaryOrBuilder>( + glossaries_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); glossaries_ = null; } return glossariesBuilder_; @@ -980,8 +892,6 @@ public com.google.cloud.translate.v3beta1.Glossary.Builder addGlossariesBuilder( private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token to retrieve a page of results. Pass this value in the
      * [ListGlossariesRequest.page_token] field in the subsequent call to
@@ -989,13 +899,13 @@ public com.google.cloud.translate.v3beta1.Glossary.Builder addGlossariesBuilder(
      * 
* * 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; @@ -1004,8 +914,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token to retrieve a page of results. Pass this value in the
      * [ListGlossariesRequest.page_token] field in the subsequent call to
@@ -1013,14 +921,15 @@ public java.lang.String getNextPageToken() {
      * 
* * 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 { @@ -1028,8 +937,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token to retrieve a page of results. Pass this value in the
      * [ListGlossariesRequest.page_token] field in the subsequent call to
@@ -1037,22 +944,20 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * A token to retrieve a page of results. Pass this value in the
      * [ListGlossariesRequest.page_token] field in the subsequent call to
@@ -1060,18 +965,15 @@ public Builder setNextPageToken(java.lang.String value) {
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * A token to retrieve a page of results. Pass this value in the
      * [ListGlossariesRequest.page_token] field in the subsequent call to
@@ -1079,23 +981,23 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; 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); } @@ -1105,12 +1007,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.ListGlossariesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.ListGlossariesResponse) private static final com.google.cloud.translate.v3beta1.ListGlossariesResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.ListGlossariesResponse(); } @@ -1119,16 +1021,16 @@ public static com.google.cloud.translate.v3beta1.ListGlossariesResponse getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListGlossariesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListGlossariesResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListGlossariesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListGlossariesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1143,4 +1045,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3beta1.ListGlossariesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesResponseOrBuilder.java b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesResponseOrBuilder.java similarity index 69% rename from proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesResponseOrBuilder.java rename to owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesResponseOrBuilder.java index 8ec989ff..4642bd83 100644 --- a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesResponseOrBuilder.java +++ b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 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/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; -public interface ListGlossariesResponseOrBuilder - extends +public interface ListGlossariesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.ListGlossariesResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of glossaries for a project.
    * 
* * repeated .google.cloud.translation.v3beta1.Glossary glossaries = 1; */ - java.util.List getGlossariesList(); + java.util.List + getGlossariesList(); /** - * - * *
    * The list of glossaries for a project.
    * 
@@ -44,8 +25,6 @@ public interface ListGlossariesResponseOrBuilder */ com.google.cloud.translate.v3beta1.Glossary getGlossaries(int index); /** - * - * *
    * The list of glossaries for a project.
    * 
@@ -54,30 +33,25 @@ public interface ListGlossariesResponseOrBuilder */ int getGlossariesCount(); /** - * - * *
    * The list of glossaries for a project.
    * 
* * repeated .google.cloud.translation.v3beta1.Glossary glossaries = 1; */ - java.util.List + java.util.List getGlossariesOrBuilderList(); /** - * - * *
    * The list of glossaries for a project.
    * 
* * repeated .google.cloud.translation.v3beta1.Glossary glossaries = 1; */ - com.google.cloud.translate.v3beta1.GlossaryOrBuilder getGlossariesOrBuilder(int index); + com.google.cloud.translate.v3beta1.GlossaryOrBuilder getGlossariesOrBuilder( + int index); /** - * - * *
    * A token to retrieve a page of results. Pass this value in the
    * [ListGlossariesRequest.page_token] field in the subsequent call to
@@ -85,13 +59,10 @@ public interface ListGlossariesResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token to retrieve a page of results. Pass this value in the
    * [ListGlossariesRequest.page_token] field in the subsequent call to
@@ -99,8 +70,8 @@ public interface ListGlossariesResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/LocationName.java b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/LocationName.java similarity index 100% rename from proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/LocationName.java rename to owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/LocationName.java diff --git a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/OutputConfig.java b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/OutputConfig.java similarity index 88% rename from proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/OutputConfig.java rename to owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/OutputConfig.java index b0103960..8f327cb0 100644 --- a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/OutputConfig.java +++ b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/OutputConfig.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 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/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; /** - * - * *
  * Output configuration for BatchTranslateText request.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.OutputConfig} */ -public final class OutputConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class OutputConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.OutputConfig) OutputConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use OutputConfig.newBuilder() to construct. private OutputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private OutputConfig() {} + private OutputConfig() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new OutputConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private OutputConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,70 +52,60 @@ private OutputConfig( case 0: done = true; break; - case 10: - { - com.google.cloud.translate.v3beta1.GcsDestination.Builder subBuilder = null; - if (destinationCase_ == 1) { - subBuilder = - ((com.google.cloud.translate.v3beta1.GcsDestination) destination_).toBuilder(); - } - destination_ = - input.readMessage( - com.google.cloud.translate.v3beta1.GcsDestination.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.translate.v3beta1.GcsDestination) destination_); - destination_ = subBuilder.buildPartial(); - } - destinationCase_ = 1; - break; + case 10: { + com.google.cloud.translate.v3beta1.GcsDestination.Builder subBuilder = null; + if (destinationCase_ == 1) { + subBuilder = ((com.google.cloud.translate.v3beta1.GcsDestination) destination_).toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + destination_ = + input.readMessage(com.google.cloud.translate.v3beta1.GcsDestination.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.translate.v3beta1.GcsDestination) destination_); + destination_ = subBuilder.buildPartial(); } + destinationCase_ = 1; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_OutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_OutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_OutputConfig_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_OutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.OutputConfig.class, - com.google.cloud.translate.v3beta1.OutputConfig.Builder.class); + com.google.cloud.translate.v3beta1.OutputConfig.class, com.google.cloud.translate.v3beta1.OutputConfig.Builder.class); } private int destinationCase_ = 0; private java.lang.Object destination_; - public enum DestinationCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_DESTINATION(1), DESTINATION_NOT_SET(0); private final int value; - private DestinationCase(int value) { this.value = value; } @@ -147,28 +121,24 @@ public static DestinationCase valueOf(int value) { public static DestinationCase forNumber(int value) { switch (value) { - case 1: - return GCS_DESTINATION; - case 0: - return DESTINATION_NOT_SET; - default: - return null; + case 1: return GCS_DESTINATION; + case 0: return DESTINATION_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public DestinationCase getDestinationCase() { - return DestinationCase.forNumber(destinationCase_); + public DestinationCase + getDestinationCase() { + return DestinationCase.forNumber( + destinationCase_); } public static final int GCS_DESTINATION_FIELD_NUMBER = 1; /** - * - * *
    * Google Cloud Storage destination for output content.
    * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -232,7 +202,6 @@ public DestinationCase getDestinationCase() {
    * 
* * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1; - * * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -240,8 +209,6 @@ public boolean hasGcsDestination() { return destinationCase_ == 1; } /** - * - * *
    * Google Cloud Storage destination for output content.
    * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -305,19 +272,16 @@ public boolean hasGcsDestination() {
    * 
* * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1; - * * @return The gcsDestination. */ @java.lang.Override public com.google.cloud.translate.v3beta1.GcsDestination getGcsDestination() { if (destinationCase_ == 1) { - return (com.google.cloud.translate.v3beta1.GcsDestination) destination_; + return (com.google.cloud.translate.v3beta1.GcsDestination) destination_; } return com.google.cloud.translate.v3beta1.GcsDestination.getDefaultInstance(); } /** - * - * *
    * Google Cloud Storage destination for output content.
    * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -385,13 +349,12 @@ public com.google.cloud.translate.v3beta1.GcsDestination getGcsDestination() {
   @java.lang.Override
   public com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder getGcsDestinationOrBuilder() {
     if (destinationCase_ == 1) {
-      return (com.google.cloud.translate.v3beta1.GcsDestination) destination_;
+       return (com.google.cloud.translate.v3beta1.GcsDestination) destination_;
     }
     return com.google.cloud.translate.v3beta1.GcsDestination.getDefaultInstance();
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -403,7 +366,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 (destinationCase_ == 1) {
       output.writeMessage(1, (com.google.cloud.translate.v3beta1.GcsDestination) destination_);
     }
@@ -417,9 +381,8 @@ public int getSerializedSize() {
 
     size = 0;
     if (destinationCase_ == 1) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              1, (com.google.cloud.translate.v3beta1.GcsDestination) destination_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, (com.google.cloud.translate.v3beta1.GcsDestination) destination_);
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -429,18 +392,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.cloud.translate.v3beta1.OutputConfig)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3beta1.OutputConfig other =
-        (com.google.cloud.translate.v3beta1.OutputConfig) obj;
+    com.google.cloud.translate.v3beta1.OutputConfig other = (com.google.cloud.translate.v3beta1.OutputConfig) obj;
 
     if (!getDestinationCase().equals(other.getDestinationCase())) return false;
     switch (destinationCase_) {
       case 1:
-        if (!getGcsDestination().equals(other.getGcsDestination())) return false;
+        if (!getGcsDestination()
+            .equals(other.getGcsDestination())) return false;
         break;
       case 0:
       default:
@@ -469,127 +432,118 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.translate.v3beta1.OutputConfig parseFrom(java.nio.ByteBuffer data)
+  public static com.google.cloud.translate.v3beta1.OutputConfig parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3beta1.OutputConfig 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.cloud.translate.v3beta1.OutputConfig parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3beta1.OutputConfig 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.cloud.translate.v3beta1.OutputConfig parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3beta1.OutputConfig 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.cloud.translate.v3beta1.OutputConfig 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.cloud.translate.v3beta1.OutputConfig 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.cloud.translate.v3beta1.OutputConfig parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3beta1.OutputConfig parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3beta1.OutputConfig 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.cloud.translate.v3beta1.OutputConfig 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.cloud.translate.v3beta1.OutputConfig 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.cloud.translate.v3beta1.OutputConfig 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;
   }
   /**
-   *
-   *
    * 
    * Output configuration for BatchTranslateText request.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.OutputConfig} */ - 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.translation.v3beta1.OutputConfig) com.google.cloud.translate.v3beta1.OutputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_OutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_OutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_OutputConfig_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_OutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.OutputConfig.class, - com.google.cloud.translate.v3beta1.OutputConfig.Builder.class); + com.google.cloud.translate.v3beta1.OutputConfig.class, com.google.cloud.translate.v3beta1.OutputConfig.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.OutputConfig.newBuilder() @@ -597,15 +551,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -615,9 +570,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_OutputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_OutputConfig_descriptor; } @java.lang.Override @@ -636,8 +591,7 @@ public com.google.cloud.translate.v3beta1.OutputConfig build() { @java.lang.Override public com.google.cloud.translate.v3beta1.OutputConfig buildPartial() { - com.google.cloud.translate.v3beta1.OutputConfig result = - new com.google.cloud.translate.v3beta1.OutputConfig(this); + com.google.cloud.translate.v3beta1.OutputConfig result = new com.google.cloud.translate.v3beta1.OutputConfig(this); if (destinationCase_ == 1) { if (gcsDestinationBuilder_ == null) { result.destination_ = destination_; @@ -654,39 +608,38 @@ public com.google.cloud.translate.v3beta1.OutputConfig 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.cloud.translate.v3beta1.OutputConfig) { - return mergeFrom((com.google.cloud.translate.v3beta1.OutputConfig) other); + return mergeFrom((com.google.cloud.translate.v3beta1.OutputConfig)other); } else { super.mergeFrom(other); return this; @@ -694,18 +647,15 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.OutputConfig other) { - if (other == com.google.cloud.translate.v3beta1.OutputConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3beta1.OutputConfig.getDefaultInstance()) return this; switch (other.getDestinationCase()) { - case GCS_DESTINATION: - { - mergeGcsDestination(other.getGcsDestination()); - break; - } - case DESTINATION_NOT_SET: - { - break; - } + case GCS_DESTINATION: { + mergeGcsDestination(other.getGcsDestination()); + break; + } + case DESTINATION_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -735,12 +685,12 @@ public Builder mergeFrom( } return this; } - private int destinationCase_ = 0; private java.lang.Object destination_; - - public DestinationCase getDestinationCase() { - return DestinationCase.forNumber(destinationCase_); + public DestinationCase + getDestinationCase() { + return DestinationCase.forNumber( + destinationCase_); } public Builder clearDestination() { @@ -750,14 +700,10 @@ public Builder clearDestination() { return this; } + private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.GcsDestination, - com.google.cloud.translate.v3beta1.GcsDestination.Builder, - com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder> - gcsDestinationBuilder_; + com.google.cloud.translate.v3beta1.GcsDestination, com.google.cloud.translate.v3beta1.GcsDestination.Builder, com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder> gcsDestinationBuilder_; /** - * - * *
      * Google Cloud Storage destination for output content.
      * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -821,7 +767,6 @@ public Builder clearDestination() {
      * 
* * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1; - * * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -829,8 +774,6 @@ public boolean hasGcsDestination() { return destinationCase_ == 1; } /** - * - * *
      * Google Cloud Storage destination for output content.
      * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -894,7 +837,6 @@ public boolean hasGcsDestination() {
      * 
* * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1; - * * @return The gcsDestination. */ @java.lang.Override @@ -912,8 +854,6 @@ public com.google.cloud.translate.v3beta1.GcsDestination getGcsDestination() { } } /** - * - * *
      * Google Cloud Storage destination for output content.
      * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -992,8 +932,6 @@ public Builder setGcsDestination(com.google.cloud.translate.v3beta1.GcsDestinati
       return this;
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage destination for output content.
      * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -1070,8 +1008,6 @@ public Builder setGcsDestination(
       return this;
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage destination for output content.
      * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -1138,14 +1074,10 @@ public Builder setGcsDestination(
      */
     public Builder mergeGcsDestination(com.google.cloud.translate.v3beta1.GcsDestination value) {
       if (gcsDestinationBuilder_ == null) {
-        if (destinationCase_ == 1
-            && destination_
-                != com.google.cloud.translate.v3beta1.GcsDestination.getDefaultInstance()) {
-          destination_ =
-              com.google.cloud.translate.v3beta1.GcsDestination.newBuilder(
-                      (com.google.cloud.translate.v3beta1.GcsDestination) destination_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (destinationCase_ == 1 &&
+            destination_ != com.google.cloud.translate.v3beta1.GcsDestination.getDefaultInstance()) {
+          destination_ = com.google.cloud.translate.v3beta1.GcsDestination.newBuilder((com.google.cloud.translate.v3beta1.GcsDestination) destination_)
+              .mergeFrom(value).buildPartial();
         } else {
           destination_ = value;
         }
@@ -1160,8 +1092,6 @@ public Builder mergeGcsDestination(com.google.cloud.translate.v3beta1.GcsDestina
       return this;
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage destination for output content.
      * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -1243,8 +1173,6 @@ public Builder clearGcsDestination() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage destination for output content.
      * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -1313,8 +1241,6 @@ public com.google.cloud.translate.v3beta1.GcsDestination.Builder getGcsDestinati
       return getGcsDestinationFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage destination for output content.
      * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -1391,8 +1317,6 @@ public com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder getGcsDestinat
       }
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage destination for output content.
      * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -1458,32 +1382,26 @@ public com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder getGcsDestinat
      * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.translate.v3beta1.GcsDestination,
-            com.google.cloud.translate.v3beta1.GcsDestination.Builder,
-            com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder>
+        com.google.cloud.translate.v3beta1.GcsDestination, com.google.cloud.translate.v3beta1.GcsDestination.Builder, com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder> 
         getGcsDestinationFieldBuilder() {
       if (gcsDestinationBuilder_ == null) {
         if (!(destinationCase_ == 1)) {
           destination_ = com.google.cloud.translate.v3beta1.GcsDestination.getDefaultInstance();
         }
-        gcsDestinationBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.translate.v3beta1.GcsDestination,
-                com.google.cloud.translate.v3beta1.GcsDestination.Builder,
-                com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder>(
+        gcsDestinationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.translate.v3beta1.GcsDestination, com.google.cloud.translate.v3beta1.GcsDestination.Builder, com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder>(
                 (com.google.cloud.translate.v3beta1.GcsDestination) destination_,
                 getParentForChildren(),
                 isClean());
         destination_ = null;
       }
       destinationCase_ = 1;
-      onChanged();
-      ;
+      onChanged();;
       return gcsDestinationBuilder_;
     }
-
     @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);
     }
 
@@ -1493,12 +1411,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.OutputConfig)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.OutputConfig)
   private static final com.google.cloud.translate.v3beta1.OutputConfig DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.OutputConfig();
   }
@@ -1507,16 +1425,16 @@ public static com.google.cloud.translate.v3beta1.OutputConfig getDefaultInstance
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public OutputConfig parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new OutputConfig(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public OutputConfig parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new OutputConfig(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1531,4 +1449,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3beta1.OutputConfig getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/OutputConfigOrBuilder.java b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/OutputConfigOrBuilder.java
similarity index 94%
rename from proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/OutputConfigOrBuilder.java
rename to owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/OutputConfigOrBuilder.java
index 5adefd34..f255b88c 100644
--- a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/OutputConfigOrBuilder.java
+++ b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/OutputConfigOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2020 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/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
-public interface OutputConfigOrBuilder
-    extends
+public interface OutputConfigOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.OutputConfig)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Google Cloud Storage destination for output content.
    * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -89,13 +71,10 @@ public interface OutputConfigOrBuilder
    * 
* * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1; - * * @return Whether the gcsDestination field is set. */ boolean hasGcsDestination(); /** - * - * *
    * Google Cloud Storage destination for output content.
    * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -159,13 +138,10 @@ public interface OutputConfigOrBuilder
    * 
* * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1; - * * @return The gcsDestination. */ com.google.cloud.translate.v3beta1.GcsDestination getGcsDestination(); /** - * - * *
    * Google Cloud Storage destination for output content.
    * For every single input file (for example, gs://a/b/c.[extension]), we
diff --git a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguage.java b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguage.java
similarity index 72%
rename from proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguage.java
rename to owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguage.java
index 5870a524..5dc28f7d 100644
--- a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguage.java
+++ b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguage.java
@@ -1,26 +1,9 @@
-/*
- * Copyright 2020 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/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
 /**
- *
- *
  * 
  * A single supported language response corresponds to information related
  * to one supported language.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.translation.v3beta1.SupportedLanguage}
  */
-public final class SupportedLanguage extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class SupportedLanguage extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.SupportedLanguage)
     SupportedLanguageOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use SupportedLanguage.newBuilder() to construct.
   private SupportedLanguage(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private SupportedLanguage() {
     languageCode_ = "";
     displayName_ = "";
@@ -45,15 +27,16 @@ private SupportedLanguage() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new SupportedLanguage();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private SupportedLanguage(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -72,69 +55,63 @@ private SupportedLanguage(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              languageCode_ = s;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            languageCode_ = s;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              displayName_ = s;
-              break;
-            }
-          case 24:
-            {
-              supportSource_ = input.readBool();
-              break;
-            }
-          case 32:
-            {
-              supportTarget_ = input.readBool();
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            displayName_ = s;
+            break;
+          }
+          case 24: {
+
+            supportSource_ = input.readBool();
+            break;
+          }
+          case 32: {
+
+            supportTarget_ = input.readBool();
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.translate.v3beta1.TranslationServiceProto
-        .internal_static_google_cloud_translation_v3beta1_SupportedLanguage_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_SupportedLanguage_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.translate.v3beta1.TranslationServiceProto
-        .internal_static_google_cloud_translation_v3beta1_SupportedLanguage_fieldAccessorTable
+    return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_SupportedLanguage_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.translate.v3beta1.SupportedLanguage.class,
-            com.google.cloud.translate.v3beta1.SupportedLanguage.Builder.class);
+            com.google.cloud.translate.v3beta1.SupportedLanguage.class, com.google.cloud.translate.v3beta1.SupportedLanguage.Builder.class);
   }
 
   public static final int LANGUAGE_CODE_FIELD_NUMBER = 1;
   private volatile java.lang.Object languageCode_;
   /**
-   *
-   *
    * 
    * Supported language code, generally consisting of its ISO 639-1
    * identifier, for example, 'en', 'ja'. In certain cases, BCP-47 codes
@@ -143,7 +120,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string language_code = 1; - * * @return The languageCode. */ @java.lang.Override @@ -152,15 +128,14 @@ 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; } } /** - * - * *
    * Supported language code, generally consisting of its ISO 639-1
    * identifier, for example, 'en', 'ja'. In certain cases, BCP-47 codes
@@ -169,15 +144,16 @@ public java.lang.String getLanguageCode() {
    * 
* * string language_code = 1; - * * @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 { @@ -188,15 +164,12 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { public static final int DISPLAY_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object displayName_; /** - * - * *
    * Human readable name of the language localized in the display language
    * specified in the request.
    * 
* * string display_name = 2; - * * @return The displayName. */ @java.lang.Override @@ -205,30 +178,30 @@ 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; } } /** - * - * *
    * Human readable name of the language localized in the display language
    * specified in the request.
    * 
* * string display_name = 2; - * * @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 { @@ -239,14 +212,11 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { public static final int SUPPORT_SOURCE_FIELD_NUMBER = 3; private boolean supportSource_; /** - * - * *
    * Can be used as source language.
    * 
* * bool support_source = 3; - * * @return The supportSource. */ @java.lang.Override @@ -257,14 +227,11 @@ public boolean getSupportSource() { public static final int SUPPORT_TARGET_FIELD_NUMBER = 4; private boolean supportTarget_; /** - * - * *
    * Can be used as target language.
    * 
* * bool support_target = 4; - * * @return The supportTarget. */ @java.lang.Override @@ -273,7 +240,6 @@ public boolean getSupportTarget() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -285,11 +251,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getLanguageCodeBytes().isEmpty()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, languageCode_); } - if (!getDisplayNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); } if (supportSource_ != false) { @@ -307,17 +274,19 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, languageCode_); } - if (!getDisplayNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); } if (supportSource_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, supportSource_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, supportSource_); } if (supportTarget_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, supportTarget_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, supportTarget_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -327,18 +296,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.cloud.translate.v3beta1.SupportedLanguage)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.SupportedLanguage other = - (com.google.cloud.translate.v3beta1.SupportedLanguage) obj; + com.google.cloud.translate.v3beta1.SupportedLanguage other = (com.google.cloud.translate.v3beta1.SupportedLanguage) obj; - if (!getLanguageCode().equals(other.getLanguageCode())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (getSupportSource() != other.getSupportSource()) return false; - if (getSupportTarget() != other.getSupportTarget()) return false; + if (!getLanguageCode() + .equals(other.getLanguageCode())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; + if (getSupportSource() + != other.getSupportSource()) return false; + if (getSupportTarget() + != other.getSupportTarget()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -355,112 +327,107 @@ public int hashCode() { hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; hash = (53 * hash) + getDisplayName().hashCode(); hash = (37 * hash) + SUPPORT_SOURCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSupportSource()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getSupportSource()); hash = (37 * hash) + SUPPORT_TARGET_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSupportTarget()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getSupportTarget()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.translate.v3beta1.SupportedLanguage 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.cloud.translate.v3beta1.SupportedLanguage 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.cloud.translate.v3beta1.SupportedLanguage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.SupportedLanguage 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.cloud.translate.v3beta1.SupportedLanguage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.SupportedLanguage 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.cloud.translate.v3beta1.SupportedLanguage parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.SupportedLanguage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.SupportedLanguage 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.cloud.translate.v3beta1.SupportedLanguage parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.SupportedLanguage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.SupportedLanguage 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.cloud.translate.v3beta1.SupportedLanguage 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.cloud.translate.v3beta1.SupportedLanguage 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.cloud.translate.v3beta1.SupportedLanguage 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 single supported language response corresponds to information related
    * to one supported language.
@@ -468,23 +435,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.translation.v3beta1.SupportedLanguage}
    */
-  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.translation.v3beta1.SupportedLanguage)
       com.google.cloud.translate.v3beta1.SupportedLanguageOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3beta1_SupportedLanguage_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_SupportedLanguage_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3beta1_SupportedLanguage_fieldAccessorTable
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_SupportedLanguage_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.translate.v3beta1.SupportedLanguage.class,
-              com.google.cloud.translate.v3beta1.SupportedLanguage.Builder.class);
+              com.google.cloud.translate.v3beta1.SupportedLanguage.class, com.google.cloud.translate.v3beta1.SupportedLanguage.Builder.class);
     }
 
     // Construct using com.google.cloud.translate.v3beta1.SupportedLanguage.newBuilder()
@@ -492,15 +457,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -516,9 +482,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3beta1_SupportedLanguage_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_SupportedLanguage_descriptor;
     }
 
     @java.lang.Override
@@ -537,8 +503,7 @@ public com.google.cloud.translate.v3beta1.SupportedLanguage build() {
 
     @java.lang.Override
     public com.google.cloud.translate.v3beta1.SupportedLanguage buildPartial() {
-      com.google.cloud.translate.v3beta1.SupportedLanguage result =
-          new com.google.cloud.translate.v3beta1.SupportedLanguage(this);
+      com.google.cloud.translate.v3beta1.SupportedLanguage result = new com.google.cloud.translate.v3beta1.SupportedLanguage(this);
       result.languageCode_ = languageCode_;
       result.displayName_ = displayName_;
       result.supportSource_ = supportSource_;
@@ -551,39 +516,38 @@ public com.google.cloud.translate.v3beta1.SupportedLanguage 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.cloud.translate.v3beta1.SupportedLanguage) {
-        return mergeFrom((com.google.cloud.translate.v3beta1.SupportedLanguage) other);
+        return mergeFrom((com.google.cloud.translate.v3beta1.SupportedLanguage)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -591,8 +555,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.translate.v3beta1.SupportedLanguage other) {
-      if (other == com.google.cloud.translate.v3beta1.SupportedLanguage.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.translate.v3beta1.SupportedLanguage.getDefaultInstance()) return this;
       if (!other.getLanguageCode().isEmpty()) {
         languageCode_ = other.languageCode_;
         onChanged();
@@ -626,8 +589,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.translate.v3beta1.SupportedLanguage) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.translate.v3beta1.SupportedLanguage) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -639,8 +601,6 @@ public Builder mergeFrom(
 
     private java.lang.Object languageCode_ = "";
     /**
-     *
-     *
      * 
      * Supported language code, generally consisting of its ISO 639-1
      * identifier, for example, 'en', 'ja'. In certain cases, BCP-47 codes
@@ -649,13 +609,13 @@ public Builder mergeFrom(
      * 
* * string language_code = 1; - * * @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; @@ -664,8 +624,6 @@ public java.lang.String getLanguageCode() { } } /** - * - * *
      * Supported language code, generally consisting of its ISO 639-1
      * identifier, for example, 'en', 'ja'. In certain cases, BCP-47 codes
@@ -674,14 +632,15 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 1; - * * @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 { @@ -689,8 +648,6 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } } /** - * - * *
      * Supported language code, generally consisting of its ISO 639-1
      * identifier, for example, 'en', 'ja'. In certain cases, BCP-47 codes
@@ -699,22 +656,20 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() {
      * 
* * string language_code = 1; - * * @param value The languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCode(java.lang.String value) { + public Builder setLanguageCode( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + languageCode_ = value; onChanged(); return this; } /** - * - * *
      * Supported language code, generally consisting of its ISO 639-1
      * identifier, for example, 'en', 'ja'. In certain cases, BCP-47 codes
@@ -723,18 +678,15 @@ public Builder setLanguageCode(java.lang.String value) {
      * 
* * string language_code = 1; - * * @return This builder for chaining. */ public Builder clearLanguageCode() { - + languageCode_ = getDefaultInstance().getLanguageCode(); onChanged(); return this; } /** - * - * *
      * Supported language code, generally consisting of its ISO 639-1
      * identifier, for example, 'en', 'ja'. In certain cases, BCP-47 codes
@@ -743,16 +695,16 @@ public Builder clearLanguageCode() {
      * 
* * string language_code = 1; - * * @param value The bytes for languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { + public Builder setLanguageCodeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + languageCode_ = value; onChanged(); return this; @@ -760,21 +712,19 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { private java.lang.Object displayName_ = ""; /** - * - * *
      * Human readable name of the language localized in the display language
      * specified in the request.
      * 
* * string display_name = 2; - * * @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; @@ -783,22 +733,21 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * Human readable name of the language localized in the display language
      * specified in the request.
      * 
* * string display_name = 2; - * * @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 { @@ -806,79 +755,69 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * Human readable name of the language localized in the display language
      * specified in the request.
      * 
* * string display_name = 2; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { + public Builder setDisplayName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** - * - * *
      * Human readable name of the language localized in the display language
      * specified in the request.
      * 
* * string display_name = 2; - * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** - * - * *
      * Human readable name of the language localized in the display language
      * specified in the request.
      * 
* * string display_name = 2; - * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; } - private boolean supportSource_; + private boolean supportSource_ ; /** - * - * *
      * Can be used as source language.
      * 
* * bool support_source = 3; - * * @return The supportSource. */ @java.lang.Override @@ -886,51 +825,42 @@ public boolean getSupportSource() { return supportSource_; } /** - * - * *
      * Can be used as source language.
      * 
* * bool support_source = 3; - * * @param value The supportSource to set. * @return This builder for chaining. */ public Builder setSupportSource(boolean value) { - + supportSource_ = value; onChanged(); return this; } /** - * - * *
      * Can be used as source language.
      * 
* * bool support_source = 3; - * * @return This builder for chaining. */ public Builder clearSupportSource() { - + supportSource_ = false; onChanged(); return this; } - private boolean supportTarget_; + private boolean supportTarget_ ; /** - * - * *
      * Can be used as target language.
      * 
* * bool support_target = 4; - * * @return The supportTarget. */ @java.lang.Override @@ -938,43 +868,37 @@ public boolean getSupportTarget() { return supportTarget_; } /** - * - * *
      * Can be used as target language.
      * 
* * bool support_target = 4; - * * @param value The supportTarget to set. * @return This builder for chaining. */ public Builder setSupportTarget(boolean value) { - + supportTarget_ = value; onChanged(); return this; } /** - * - * *
      * Can be used as target language.
      * 
* * bool support_target = 4; - * * @return This builder for chaining. */ public Builder clearSupportTarget() { - + supportTarget_ = false; 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); } @@ -984,12 +908,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.SupportedLanguage) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.SupportedLanguage) private static final com.google.cloud.translate.v3beta1.SupportedLanguage DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.SupportedLanguage(); } @@ -998,16 +922,16 @@ public static com.google.cloud.translate.v3beta1.SupportedLanguage getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SupportedLanguage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SupportedLanguage(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SupportedLanguage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SupportedLanguage(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1022,4 +946,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3beta1.SupportedLanguage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguageOrBuilder.java b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguageOrBuilder.java similarity index 69% rename from proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguageOrBuilder.java rename to owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguageOrBuilder.java index 85108989..58290ccf 100644 --- a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguageOrBuilder.java +++ b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguageOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 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/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; -public interface SupportedLanguageOrBuilder - extends +public interface SupportedLanguageOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.SupportedLanguage) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Supported language code, generally consisting of its ISO 639-1
    * identifier, for example, 'en', 'ja'. In certain cases, BCP-47 codes
@@ -34,13 +16,10 @@ public interface SupportedLanguageOrBuilder
    * 
* * string language_code = 1; - * * @return The languageCode. */ java.lang.String getLanguageCode(); /** - * - * *
    * Supported language code, generally consisting of its ISO 639-1
    * identifier, for example, 'en', 'ja'. In certain cases, BCP-47 codes
@@ -49,60 +28,49 @@ public interface SupportedLanguageOrBuilder
    * 
* * string language_code = 1; - * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString getLanguageCodeBytes(); + com.google.protobuf.ByteString + getLanguageCodeBytes(); /** - * - * *
    * Human readable name of the language localized in the display language
    * specified in the request.
    * 
* * string display_name = 2; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
    * Human readable name of the language localized in the display language
    * specified in the request.
    * 
* * string display_name = 2; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
    * Can be used as source language.
    * 
* * bool support_source = 3; - * * @return The supportSource. */ boolean getSupportSource(); /** - * - * *
    * Can be used as target language.
    * 
* * bool support_target = 4; - * * @return The supportTarget. */ boolean getSupportTarget(); diff --git a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguages.java b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguages.java similarity index 76% rename from proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguages.java rename to owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguages.java index a9d81995..f74fc9d7 100644 --- a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguages.java +++ b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguages.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 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/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; /** - * - * *
  * The response message for discovering supported languages.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.SupportedLanguages} */ -public final class SupportedLanguages extends com.google.protobuf.GeneratedMessageV3 - implements +public final class SupportedLanguages extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.SupportedLanguages) SupportedLanguagesOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use SupportedLanguages.newBuilder() to construct. private SupportedLanguages(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SupportedLanguages() { languages_ = 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 SupportedLanguages(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private SupportedLanguages( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,32 +54,29 @@ private SupportedLanguages( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - languages_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - languages_.add( - input.readMessage( - com.google.cloud.translate.v3beta1.SupportedLanguage.parser(), - extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + languages_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + languages_.add( + input.readMessage(com.google.cloud.translate.v3beta1.SupportedLanguage.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { languages_ = java.util.Collections.unmodifiableList(languages_); @@ -105,27 +85,22 @@ private SupportedLanguages( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_SupportedLanguages_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_SupportedLanguages_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_SupportedLanguages_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_SupportedLanguages_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.SupportedLanguages.class, - com.google.cloud.translate.v3beta1.SupportedLanguages.Builder.class); + com.google.cloud.translate.v3beta1.SupportedLanguages.class, com.google.cloud.translate.v3beta1.SupportedLanguages.Builder.class); } public static final int LANGUAGES_FIELD_NUMBER = 1; private java.util.List languages_; /** - * - * *
    * A list of supported language responses. This list contains an entry
    * for each language the Translation API supports.
@@ -138,8 +113,6 @@ public java.util.List getL
     return languages_;
   }
   /**
-   *
-   *
    * 
    * A list of supported language responses. This list contains an entry
    * for each language the Translation API supports.
@@ -148,13 +121,11 @@ public java.util.List getL
    * repeated .google.cloud.translation.v3beta1.SupportedLanguage languages = 1;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getLanguagesOrBuilderList() {
     return languages_;
   }
   /**
-   *
-   *
    * 
    * A list of supported language responses. This list contains an entry
    * for each language the Translation API supports.
@@ -167,8 +138,6 @@ public int getLanguagesCount() {
     return languages_.size();
   }
   /**
-   *
-   *
    * 
    * A list of supported language responses. This list contains an entry
    * for each language the Translation API supports.
@@ -181,8 +150,6 @@ public com.google.cloud.translate.v3beta1.SupportedLanguage getLanguages(int ind
     return languages_.get(index);
   }
   /**
-   *
-   *
    * 
    * A list of supported language responses. This list contains an entry
    * for each language the Translation API supports.
@@ -197,7 +164,6 @@ public com.google.cloud.translate.v3beta1.SupportedLanguageOrBuilder getLanguage
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -209,7 +175,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 < languages_.size(); i++) {
       output.writeMessage(1, languages_.get(i));
     }
@@ -223,7 +190,8 @@ public int getSerializedSize() {
 
     size = 0;
     for (int i = 0; i < languages_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, languages_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, languages_.get(i));
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -233,15 +201,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.cloud.translate.v3beta1.SupportedLanguages)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3beta1.SupportedLanguages other =
-        (com.google.cloud.translate.v3beta1.SupportedLanguages) obj;
+    com.google.cloud.translate.v3beta1.SupportedLanguages other = (com.google.cloud.translate.v3beta1.SupportedLanguages) obj;
 
-    if (!getLanguagesList().equals(other.getLanguagesList())) return false;
+    if (!getLanguagesList()
+        .equals(other.getLanguagesList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -263,127 +231,117 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3beta1.SupportedLanguages 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.cloud.translate.v3beta1.SupportedLanguages 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.cloud.translate.v3beta1.SupportedLanguages parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3beta1.SupportedLanguages 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.cloud.translate.v3beta1.SupportedLanguages parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3beta1.SupportedLanguages 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.cloud.translate.v3beta1.SupportedLanguages parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3beta1.SupportedLanguages parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3beta1.SupportedLanguages 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.cloud.translate.v3beta1.SupportedLanguages parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3beta1.SupportedLanguages parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3beta1.SupportedLanguages 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.cloud.translate.v3beta1.SupportedLanguages 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.cloud.translate.v3beta1.SupportedLanguages 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.cloud.translate.v3beta1.SupportedLanguages prototype) {
+  public static Builder newBuilder(com.google.cloud.translate.v3beta1.SupportedLanguages 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 message for discovering supported languages.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.SupportedLanguages} */ - 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.translation.v3beta1.SupportedLanguages) com.google.cloud.translate.v3beta1.SupportedLanguagesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_SupportedLanguages_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_SupportedLanguages_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_SupportedLanguages_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_SupportedLanguages_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.SupportedLanguages.class, - com.google.cloud.translate.v3beta1.SupportedLanguages.Builder.class); + com.google.cloud.translate.v3beta1.SupportedLanguages.class, com.google.cloud.translate.v3beta1.SupportedLanguages.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.SupportedLanguages.newBuilder() @@ -391,17 +349,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getLanguagesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -415,9 +373,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_SupportedLanguages_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_SupportedLanguages_descriptor; } @java.lang.Override @@ -436,8 +394,7 @@ public com.google.cloud.translate.v3beta1.SupportedLanguages build() { @java.lang.Override public com.google.cloud.translate.v3beta1.SupportedLanguages buildPartial() { - com.google.cloud.translate.v3beta1.SupportedLanguages result = - new com.google.cloud.translate.v3beta1.SupportedLanguages(this); + com.google.cloud.translate.v3beta1.SupportedLanguages result = new com.google.cloud.translate.v3beta1.SupportedLanguages(this); int from_bitField0_ = bitField0_; if (languagesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -456,39 +413,38 @@ public com.google.cloud.translate.v3beta1.SupportedLanguages 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.cloud.translate.v3beta1.SupportedLanguages) { - return mergeFrom((com.google.cloud.translate.v3beta1.SupportedLanguages) other); + return mergeFrom((com.google.cloud.translate.v3beta1.SupportedLanguages)other); } else { super.mergeFrom(other); return this; @@ -496,8 +452,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.SupportedLanguages other) { - if (other == com.google.cloud.translate.v3beta1.SupportedLanguages.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3beta1.SupportedLanguages.getDefaultInstance()) return this; if (languagesBuilder_ == null) { if (!other.languages_.isEmpty()) { if (languages_.isEmpty()) { @@ -516,10 +471,9 @@ public Builder mergeFrom(com.google.cloud.translate.v3beta1.SupportedLanguages o languagesBuilder_ = null; languages_ = other.languages_; bitField0_ = (bitField0_ & ~0x00000001); - languagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getLanguagesFieldBuilder() - : null; + languagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getLanguagesFieldBuilder() : null; } else { languagesBuilder_.addAllMessages(other.languages_); } @@ -544,8 +498,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.translate.v3beta1.SupportedLanguages) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.translate.v3beta1.SupportedLanguages) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -554,30 +507,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List languages_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureLanguagesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - languages_ = - new java.util.ArrayList( - languages_); + languages_ = new java.util.ArrayList(languages_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.translate.v3beta1.SupportedLanguage, - com.google.cloud.translate.v3beta1.SupportedLanguage.Builder, - com.google.cloud.translate.v3beta1.SupportedLanguageOrBuilder> - languagesBuilder_; + com.google.cloud.translate.v3beta1.SupportedLanguage, com.google.cloud.translate.v3beta1.SupportedLanguage.Builder, com.google.cloud.translate.v3beta1.SupportedLanguageOrBuilder> languagesBuilder_; /** - * - * *
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -593,8 +537,6 @@ public java.util.List getL
       }
     }
     /**
-     *
-     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -610,8 +552,6 @@ public int getLanguagesCount() {
       }
     }
     /**
-     *
-     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -627,8 +567,6 @@ public com.google.cloud.translate.v3beta1.SupportedLanguage getLanguages(int ind
       }
     }
     /**
-     *
-     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -651,8 +589,6 @@ public Builder setLanguages(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -672,8 +608,6 @@ public Builder setLanguages(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -695,8 +629,6 @@ public Builder addLanguages(com.google.cloud.translate.v3beta1.SupportedLanguage
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -719,8 +651,6 @@ public Builder addLanguages(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -740,8 +670,6 @@ public Builder addLanguages(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -761,8 +689,6 @@ public Builder addLanguages(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -774,7 +700,8 @@ public Builder addAllLanguages(
         java.lang.Iterable values) {
       if (languagesBuilder_ == null) {
         ensureLanguagesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, languages_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, languages_);
         onChanged();
       } else {
         languagesBuilder_.addAllMessages(values);
@@ -782,8 +709,6 @@ public Builder addAllLanguages(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -802,8 +727,6 @@ public Builder clearLanguages() {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -822,8 +745,6 @@ public Builder removeLanguages(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -836,8 +757,6 @@ public com.google.cloud.translate.v3beta1.SupportedLanguage.Builder getLanguages
       return getLanguagesFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -848,14 +767,11 @@ public com.google.cloud.translate.v3beta1.SupportedLanguage.Builder getLanguages
     public com.google.cloud.translate.v3beta1.SupportedLanguageOrBuilder getLanguagesOrBuilder(
         int index) {
       if (languagesBuilder_ == null) {
-        return languages_.get(index);
-      } else {
+        return languages_.get(index);  } else {
         return languagesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -863,8 +779,8 @@ public com.google.cloud.translate.v3beta1.SupportedLanguageOrBuilder getLanguage
      *
      * repeated .google.cloud.translation.v3beta1.SupportedLanguage languages = 1;
      */
-    public java.util.List
-        getLanguagesOrBuilderList() {
+    public java.util.List 
+         getLanguagesOrBuilderList() {
       if (languagesBuilder_ != null) {
         return languagesBuilder_.getMessageOrBuilderList();
       } else {
@@ -872,8 +788,6 @@ public com.google.cloud.translate.v3beta1.SupportedLanguageOrBuilder getLanguage
       }
     }
     /**
-     *
-     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -882,12 +796,10 @@ public com.google.cloud.translate.v3beta1.SupportedLanguageOrBuilder getLanguage
      * repeated .google.cloud.translation.v3beta1.SupportedLanguage languages = 1;
      */
     public com.google.cloud.translate.v3beta1.SupportedLanguage.Builder addLanguagesBuilder() {
-      return getLanguagesFieldBuilder()
-          .addBuilder(com.google.cloud.translate.v3beta1.SupportedLanguage.getDefaultInstance());
+      return getLanguagesFieldBuilder().addBuilder(
+          com.google.cloud.translate.v3beta1.SupportedLanguage.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -897,13 +809,10 @@ public com.google.cloud.translate.v3beta1.SupportedLanguage.Builder addLanguages
      */
     public com.google.cloud.translate.v3beta1.SupportedLanguage.Builder addLanguagesBuilder(
         int index) {
-      return getLanguagesFieldBuilder()
-          .addBuilder(
-              index, com.google.cloud.translate.v3beta1.SupportedLanguage.getDefaultInstance());
+      return getLanguagesFieldBuilder().addBuilder(
+          index, com.google.cloud.translate.v3beta1.SupportedLanguage.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -911,30 +820,27 @@ public com.google.cloud.translate.v3beta1.SupportedLanguage.Builder addLanguages
      *
      * repeated .google.cloud.translation.v3beta1.SupportedLanguage languages = 1;
      */
-    public java.util.List
-        getLanguagesBuilderList() {
+    public java.util.List 
+         getLanguagesBuilderList() {
       return getLanguagesFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.translate.v3beta1.SupportedLanguage,
-            com.google.cloud.translate.v3beta1.SupportedLanguage.Builder,
-            com.google.cloud.translate.v3beta1.SupportedLanguageOrBuilder>
+        com.google.cloud.translate.v3beta1.SupportedLanguage, com.google.cloud.translate.v3beta1.SupportedLanguage.Builder, com.google.cloud.translate.v3beta1.SupportedLanguageOrBuilder> 
         getLanguagesFieldBuilder() {
       if (languagesBuilder_ == null) {
-        languagesBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.translate.v3beta1.SupportedLanguage,
-                com.google.cloud.translate.v3beta1.SupportedLanguage.Builder,
-                com.google.cloud.translate.v3beta1.SupportedLanguageOrBuilder>(
-                languages_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        languagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.translate.v3beta1.SupportedLanguage, com.google.cloud.translate.v3beta1.SupportedLanguage.Builder, com.google.cloud.translate.v3beta1.SupportedLanguageOrBuilder>(
+                languages_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         languages_ = null;
       }
       return languagesBuilder_;
     }
-
     @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);
     }
 
@@ -944,12 +850,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.SupportedLanguages)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.SupportedLanguages)
   private static final com.google.cloud.translate.v3beta1.SupportedLanguages DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.SupportedLanguages();
   }
@@ -958,16 +864,16 @@ public static com.google.cloud.translate.v3beta1.SupportedLanguages getDefaultIn
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public SupportedLanguages parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new SupportedLanguages(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public SupportedLanguages parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new SupportedLanguages(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -982,4 +888,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3beta1.SupportedLanguages getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguagesOrBuilder.java b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguagesOrBuilder.java
similarity index 71%
rename from proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguagesOrBuilder.java
rename to owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguagesOrBuilder.java
index 6b54044a..e457d1ad 100644
--- a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguagesOrBuilder.java
+++ b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguagesOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2020 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/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
-public interface SupportedLanguagesOrBuilder
-    extends
+public interface SupportedLanguagesOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.SupportedLanguages)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * A list of supported language responses. This list contains an entry
    * for each language the Translation API supports.
@@ -33,10 +15,9 @@ public interface SupportedLanguagesOrBuilder
    *
    * repeated .google.cloud.translation.v3beta1.SupportedLanguage languages = 1;
    */
-  java.util.List getLanguagesList();
+  java.util.List 
+      getLanguagesList();
   /**
-   *
-   *
    * 
    * A list of supported language responses. This list contains an entry
    * for each language the Translation API supports.
@@ -46,8 +27,6 @@ public interface SupportedLanguagesOrBuilder
    */
   com.google.cloud.translate.v3beta1.SupportedLanguage getLanguages(int index);
   /**
-   *
-   *
    * 
    * A list of supported language responses. This list contains an entry
    * for each language the Translation API supports.
@@ -57,8 +36,6 @@ public interface SupportedLanguagesOrBuilder
    */
   int getLanguagesCount();
   /**
-   *
-   *
    * 
    * A list of supported language responses. This list contains an entry
    * for each language the Translation API supports.
@@ -66,11 +43,9 @@ public interface SupportedLanguagesOrBuilder
    *
    * repeated .google.cloud.translation.v3beta1.SupportedLanguage languages = 1;
    */
-  java.util.List
+  java.util.List 
       getLanguagesOrBuilderList();
   /**
-   *
-   *
    * 
    * A list of supported language responses. This list contains an entry
    * for each language the Translation API supports.
@@ -78,5 +53,6 @@ public interface SupportedLanguagesOrBuilder
    *
    * repeated .google.cloud.translation.v3beta1.SupportedLanguage languages = 1;
    */
-  com.google.cloud.translate.v3beta1.SupportedLanguageOrBuilder getLanguagesOrBuilder(int index);
+  com.google.cloud.translate.v3beta1.SupportedLanguageOrBuilder getLanguagesOrBuilder(
+      int index);
 }
diff --git a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentRequest.java b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentRequest.java
similarity index 69%
rename from proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentRequest.java
rename to owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentRequest.java
index 97c24659..74722afb 100644
--- a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentRequest.java
+++ b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentRequest.java
@@ -1,42 +1,24 @@
-/*
- * Copyright 2020 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/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
 /**
- *
- *
  * 
  * A document translation request.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.TranslateDocumentRequest} */ -public final class TranslateDocumentRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class TranslateDocumentRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.TranslateDocumentRequest) TranslateDocumentRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use TranslateDocumentRequest.newBuilder() to construct. private TranslateDocumentRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TranslateDocumentRequest() { parent_ = ""; sourceLanguageCode_ = ""; @@ -46,15 +28,16 @@ private TranslateDocumentRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TranslateDocumentRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private TranslateDocumentRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -74,149 +57,129 @@ private TranslateDocumentRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - sourceLanguageCode_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + sourceLanguageCode_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - targetLanguageCode_ = s; - break; + targetLanguageCode_ = s; + break; + } + case 34: { + com.google.cloud.translate.v3beta1.DocumentInputConfig.Builder subBuilder = null; + if (documentInputConfig_ != null) { + subBuilder = documentInputConfig_.toBuilder(); + } + documentInputConfig_ = input.readMessage(com.google.cloud.translate.v3beta1.DocumentInputConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(documentInputConfig_); + documentInputConfig_ = subBuilder.buildPartial(); } - case 34: - { - com.google.cloud.translate.v3beta1.DocumentInputConfig.Builder subBuilder = null; - if (documentInputConfig_ != null) { - subBuilder = documentInputConfig_.toBuilder(); - } - documentInputConfig_ = - input.readMessage( - com.google.cloud.translate.v3beta1.DocumentInputConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(documentInputConfig_); - documentInputConfig_ = subBuilder.buildPartial(); - } - - break; + + break; + } + case 42: { + com.google.cloud.translate.v3beta1.DocumentOutputConfig.Builder subBuilder = null; + if (documentOutputConfig_ != null) { + subBuilder = documentOutputConfig_.toBuilder(); } - case 42: - { - com.google.cloud.translate.v3beta1.DocumentOutputConfig.Builder subBuilder = null; - if (documentOutputConfig_ != null) { - subBuilder = documentOutputConfig_.toBuilder(); - } - documentOutputConfig_ = - input.readMessage( - com.google.cloud.translate.v3beta1.DocumentOutputConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(documentOutputConfig_); - documentOutputConfig_ = subBuilder.buildPartial(); - } - - break; + documentOutputConfig_ = input.readMessage(com.google.cloud.translate.v3beta1.DocumentOutputConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(documentOutputConfig_); + documentOutputConfig_ = subBuilder.buildPartial(); } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - model_ = s; - break; + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + model_ = s; + break; + } + case 58: { + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder subBuilder = null; + if (glossaryConfig_ != null) { + subBuilder = glossaryConfig_.toBuilder(); } - case 58: - { - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder subBuilder = - null; - if (glossaryConfig_ != null) { - subBuilder = glossaryConfig_.toBuilder(); - } - glossaryConfig_ = - input.readMessage( - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(glossaryConfig_); - glossaryConfig_ = subBuilder.buildPartial(); - } - - break; + glossaryConfig_ = input.readMessage(com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(glossaryConfig_); + glossaryConfig_ = subBuilder.buildPartial(); } - case 66: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - labels_ = - com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); - break; + + break; + } + case 66: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put( + labels__.getKey(), labels__.getValue()); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_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 8: 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.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.TranslateDocumentRequest.class, - com.google.cloud.translate.v3beta1.TranslateDocumentRequest.Builder.class); + com.google.cloud.translate.v3beta1.TranslateDocumentRequest.class, com.google.cloud.translate.v3beta1.TranslateDocumentRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. Location to make a regional call.
    * Format: `projects/{project-number-or-id}/locations/{location-id}`.
@@ -228,7 +191,6 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The parent. */ @java.lang.Override @@ -237,15 +199,14 @@ 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. Location to make a regional call.
    * Format: `projects/{project-number-or-id}/locations/{location-id}`.
@@ -257,15 +218,16 @@ public java.lang.String getParent() {
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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 { @@ -276,8 +238,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int SOURCE_LANGUAGE_CODE_FIELD_NUMBER = 2; private volatile java.lang.Object sourceLanguageCode_; /** - * - * *
    * Optional. The BCP-47 language code of the input document if known, for
    * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -288,7 +248,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The sourceLanguageCode. */ @java.lang.Override @@ -297,15 +256,14 @@ public java.lang.String getSourceLanguageCode() { 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(); sourceLanguageCode_ = s; return s; } } /** - * - * *
    * Optional. The BCP-47 language code of the input document if known, for
    * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -316,15 +274,16 @@ public java.lang.String getSourceLanguageCode() {
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for sourceLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { + public com.google.protobuf.ByteString + getSourceLanguageCodeBytes() { java.lang.Object ref = sourceLanguageCode_; 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); sourceLanguageCode_ = b; return b; } else { @@ -335,15 +294,12 @@ public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { public static final int TARGET_LANGUAGE_CODE_FIELD_NUMBER = 3; private volatile java.lang.Object targetLanguageCode_; /** - * - * *
    * Required. The BCP-47 language code to use for translation of the input
    * document, set to one of the language codes listed in Language Support.
    * 
* * string target_language_code = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The targetLanguageCode. */ @java.lang.Override @@ -352,30 +308,30 @@ public java.lang.String getTargetLanguageCode() { 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(); targetLanguageCode_ = s; return s; } } /** - * - * *
    * Required. The BCP-47 language code to use for translation of the input
    * document, set to one of the language codes listed in Language Support.
    * 
* * string target_language_code = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for targetLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { + public com.google.protobuf.ByteString + getTargetLanguageCodeBytes() { java.lang.Object ref = targetLanguageCode_; 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); targetLanguageCode_ = b; return b; } else { @@ -386,16 +342,11 @@ public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { public static final int DOCUMENT_INPUT_CONFIG_FIELD_NUMBER = 4; private com.google.cloud.translate.v3beta1.DocumentInputConfig documentInputConfig_; /** - * - * *
    * Required. Input configurations.
    * 
* - * - * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the documentInputConfig field is set. */ @java.lang.Override @@ -403,46 +354,32 @@ public boolean hasDocumentInputConfig() { return documentInputConfig_ != null; } /** - * - * *
    * Required. Input configurations.
    * 
* - * - * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; * @return The documentInputConfig. */ @java.lang.Override public com.google.cloud.translate.v3beta1.DocumentInputConfig getDocumentInputConfig() { - return documentInputConfig_ == null - ? com.google.cloud.translate.v3beta1.DocumentInputConfig.getDefaultInstance() - : documentInputConfig_; + return documentInputConfig_ == null ? com.google.cloud.translate.v3beta1.DocumentInputConfig.getDefaultInstance() : documentInputConfig_; } /** - * - * *
    * Required. Input configurations.
    * 
* - * - * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.translate.v3beta1.DocumentInputConfigOrBuilder - getDocumentInputConfigOrBuilder() { + public com.google.cloud.translate.v3beta1.DocumentInputConfigOrBuilder getDocumentInputConfigOrBuilder() { return getDocumentInputConfig(); } public static final int DOCUMENT_OUTPUT_CONFIG_FIELD_NUMBER = 5; private com.google.cloud.translate.v3beta1.DocumentOutputConfig documentOutputConfig_; /** - * - * *
    * Optional. Output configurations.
    * Defines if the output file should be stored within Cloud Storage as well
@@ -451,10 +388,7 @@ public com.google.cloud.translate.v3beta1.DocumentInputConfig getDocumentInputCo
    * the same as the input file's mime type.
    * 
* - * - * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the documentOutputConfig field is set. */ @java.lang.Override @@ -462,8 +396,6 @@ public boolean hasDocumentOutputConfig() { return documentOutputConfig_ != null; } /** - * - * *
    * Optional. Output configurations.
    * Defines if the output file should be stored within Cloud Storage as well
@@ -472,21 +404,14 @@ public boolean hasDocumentOutputConfig() {
    * the same as the input file's mime type.
    * 
* - * - * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The documentOutputConfig. */ @java.lang.Override public com.google.cloud.translate.v3beta1.DocumentOutputConfig getDocumentOutputConfig() { - return documentOutputConfig_ == null - ? com.google.cloud.translate.v3beta1.DocumentOutputConfig.getDefaultInstance() - : documentOutputConfig_; + return documentOutputConfig_ == null ? com.google.cloud.translate.v3beta1.DocumentOutputConfig.getDefaultInstance() : documentOutputConfig_; } /** - * - * *
    * Optional. Output configurations.
    * Defines if the output file should be stored within Cloud Storage as well
@@ -495,21 +420,16 @@ public com.google.cloud.translate.v3beta1.DocumentOutputConfig getDocumentOutput
    * the same as the input file's mime type.
    * 
* - * - * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.translate.v3beta1.DocumentOutputConfigOrBuilder - getDocumentOutputConfigOrBuilder() { + public com.google.cloud.translate.v3beta1.DocumentOutputConfigOrBuilder getDocumentOutputConfigOrBuilder() { return getDocumentOutputConfig(); } public static final int MODEL_FIELD_NUMBER = 6; private volatile java.lang.Object model_; /** - * - * *
    * Optional. The `model` type requested for this translation.
    * The format depends on model type:
@@ -522,7 +442,6 @@ public com.google.cloud.translate.v3beta1.DocumentOutputConfig getDocumentOutput
    * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The model. */ @java.lang.Override @@ -531,15 +450,14 @@ public java.lang.String getModel() { 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(); model_ = s; return s; } } /** - * - * *
    * Optional. The `model` type requested for this translation.
    * The format depends on model type:
@@ -552,15 +470,16 @@ public java.lang.String getModel() {
    * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for model. */ @java.lang.Override - public com.google.protobuf.ByteString getModelBytes() { + public com.google.protobuf.ByteString + getModelBytes() { java.lang.Object ref = model_; 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); model_ = b; return b; } else { @@ -571,18 +490,13 @@ public com.google.protobuf.ByteString getModelBytes() { public static final int GLOSSARY_CONFIG_FIELD_NUMBER = 7; private com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig glossaryConfig_; /** - * - * *
    * Optional. Glossary to be applied. The glossary must be within the same
    * region (have the same location-id) as the model, otherwise an
    * INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the glossaryConfig field is set. */ @java.lang.Override @@ -590,63 +504,52 @@ public boolean hasGlossaryConfig() { return glossaryConfig_ != null; } /** - * - * *
    * Optional. Glossary to be applied. The glossary must be within the same
    * region (have the same location-id) as the model, otherwise an
    * INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The glossaryConfig. */ @java.lang.Override public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossaryConfig() { - return glossaryConfig_ == null - ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() - : glossaryConfig_; + return glossaryConfig_ == null ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; } /** - * - * *
    * Optional. Glossary to be applied. The glossary must be within the same
    * region (have the same location-id) as the model, otherwise an
    * INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder - getGlossaryConfigOrBuilder() { + public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder getGlossaryConfigOrBuilder() { return getGlossaryConfig(); } public static final int LABELS_FIELD_NUMBER = 8; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_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.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - - 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_; } @@ -655,8 +558,6 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Optional. The labels with user-defined metadata for the request.
    * Label keys and values can be no longer than 63 characters (Unicode
@@ -669,22 +570,22 @@ public int getLabelsCount() {
    *
    * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    */
+
   @java.lang.Override
-  public boolean containsLabels(java.lang.String key) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
+  public boolean containsLabels(
+      java.lang.String key) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
     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. The labels with user-defined metadata for the request.
    * Label keys and values can be no longer than 63 characters (Unicode
@@ -698,12 +599,11 @@ public java.util.Map getLabels() {
    * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
+
   public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    * Label keys and values can be no longer than 63 characters (Unicode
@@ -717,16 +617,16 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
-    java.util.Map map = internalGetLabels().getMap();
+
+  public java.lang.String getLabelsOrDefault(
+      java.lang.String key,
+      java.lang.String defaultValue) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    * Label keys and values can be no longer than 63 characters (Unicode
@@ -740,11 +640,12 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin
    * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
-    java.util.Map map = internalGetLabels().getMap();
+
+  public java.lang.String getLabelsOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -752,7 +653,6 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -764,14 +664,15 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
-    if (!getParentBytes().isEmpty()) {
+  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_);
     }
-    if (!getSourceLanguageCodeBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceLanguageCode_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 2, sourceLanguageCode_);
     }
-    if (!getTargetLanguageCodeBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetLanguageCode_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 3, targetLanguageCode_);
     }
     if (documentInputConfig_ != null) {
@@ -780,14 +681,18 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
     if (documentOutputConfig_ != null) {
       output.writeMessage(5, getDocumentOutputConfig());
     }
-    if (!getModelBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(model_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 6, model_);
     }
     if (glossaryConfig_ != null) {
       output.writeMessage(7, getGlossaryConfig());
     }
-    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
-        output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 8);
+    com.google.protobuf.GeneratedMessageV3
+      .serializeStringMapTo(
+        output,
+        internalGetLabels(),
+        LabelsDefaultEntryHolder.defaultEntry,
+        8);
     unknownFields.writeTo(output);
   }
 
@@ -797,37 +702,39 @@ public int getSerializedSize() {
     if (size != -1) return size;
 
     size = 0;
-    if (!getParentBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_);
     }
-    if (!getSourceLanguageCodeBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceLanguageCode_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, sourceLanguageCode_);
     }
-    if (!getTargetLanguageCodeBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetLanguageCode_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, targetLanguageCode_);
     }
     if (documentInputConfig_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getDocumentInputConfig());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(4, getDocumentInputConfig());
     }
     if (documentOutputConfig_ != null) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(5, getDocumentOutputConfig());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(5, getDocumentOutputConfig());
     }
-    if (!getModelBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(model_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, model_);
     }
     if (glossaryConfig_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getGlossaryConfig());
-    }
-    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(8, labels__);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(7, getGlossaryConfig());
+    }
+    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(8, labels__);
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -837,31 +744,38 @@ 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.cloud.translate.v3beta1.TranslateDocumentRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3beta1.TranslateDocumentRequest other =
-        (com.google.cloud.translate.v3beta1.TranslateDocumentRequest) obj;
+    com.google.cloud.translate.v3beta1.TranslateDocumentRequest other = (com.google.cloud.translate.v3beta1.TranslateDocumentRequest) obj;
 
-    if (!getParent().equals(other.getParent())) return false;
-    if (!getSourceLanguageCode().equals(other.getSourceLanguageCode())) return false;
-    if (!getTargetLanguageCode().equals(other.getTargetLanguageCode())) return false;
+    if (!getParent()
+        .equals(other.getParent())) return false;
+    if (!getSourceLanguageCode()
+        .equals(other.getSourceLanguageCode())) return false;
+    if (!getTargetLanguageCode()
+        .equals(other.getTargetLanguageCode())) return false;
     if (hasDocumentInputConfig() != other.hasDocumentInputConfig()) return false;
     if (hasDocumentInputConfig()) {
-      if (!getDocumentInputConfig().equals(other.getDocumentInputConfig())) return false;
+      if (!getDocumentInputConfig()
+          .equals(other.getDocumentInputConfig())) return false;
     }
     if (hasDocumentOutputConfig() != other.hasDocumentOutputConfig()) return false;
     if (hasDocumentOutputConfig()) {
-      if (!getDocumentOutputConfig().equals(other.getDocumentOutputConfig())) return false;
+      if (!getDocumentOutputConfig()
+          .equals(other.getDocumentOutputConfig())) return false;
     }
-    if (!getModel().equals(other.getModel())) return false;
+    if (!getModel()
+        .equals(other.getModel())) return false;
     if (hasGlossaryConfig() != other.hasGlossaryConfig()) return false;
     if (hasGlossaryConfig()) {
-      if (!getGlossaryConfig().equals(other.getGlossaryConfig())) return false;
+      if (!getGlossaryConfig()
+          .equals(other.getGlossaryConfig())) return false;
     }
-    if (!internalGetLabels().equals(other.internalGetLabels())) return false;
+    if (!internalGetLabels().equals(
+        other.internalGetLabels())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -903,147 +817,139 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3beta1.TranslateDocumentRequest 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.cloud.translate.v3beta1.TranslateDocumentRequest 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.cloud.translate.v3beta1.TranslateDocumentRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3beta1.TranslateDocumentRequest 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.cloud.translate.v3beta1.TranslateDocumentRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3beta1.TranslateDocumentRequest 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.cloud.translate.v3beta1.TranslateDocumentRequest parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3beta1.TranslateDocumentRequest parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3beta1.TranslateDocumentRequest 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.cloud.translate.v3beta1.TranslateDocumentRequest parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3beta1.TranslateDocumentRequest parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3beta1.TranslateDocumentRequest 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.cloud.translate.v3beta1.TranslateDocumentRequest 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.cloud.translate.v3beta1.TranslateDocumentRequest 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.cloud.translate.v3beta1.TranslateDocumentRequest prototype) {
+  public static Builder newBuilder(com.google.cloud.translate.v3beta1.TranslateDocumentRequest 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 document translation request.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.TranslateDocumentRequest} */ - 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.translation.v3beta1.TranslateDocumentRequest) com.google.cloud.translate.v3beta1.TranslateDocumentRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 8: 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 8: 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.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.TranslateDocumentRequest.class, - com.google.cloud.translate.v3beta1.TranslateDocumentRequest.Builder.class); + com.google.cloud.translate.v3beta1.TranslateDocumentRequest.class, com.google.cloud.translate.v3beta1.TranslateDocumentRequest.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.TranslateDocumentRequest.newBuilder() @@ -1051,15 +957,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1094,9 +1001,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_descriptor; } @java.lang.Override @@ -1115,8 +1022,7 @@ public com.google.cloud.translate.v3beta1.TranslateDocumentRequest build() { @java.lang.Override public com.google.cloud.translate.v3beta1.TranslateDocumentRequest buildPartial() { - com.google.cloud.translate.v3beta1.TranslateDocumentRequest result = - new com.google.cloud.translate.v3beta1.TranslateDocumentRequest(this); + com.google.cloud.translate.v3beta1.TranslateDocumentRequest result = new com.google.cloud.translate.v3beta1.TranslateDocumentRequest(this); int from_bitField0_ = bitField0_; result.parent_ = parent_; result.sourceLanguageCode_ = sourceLanguageCode_; @@ -1147,39 +1053,38 @@ public com.google.cloud.translate.v3beta1.TranslateDocumentRequest 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.cloud.translate.v3beta1.TranslateDocumentRequest) { - return mergeFrom((com.google.cloud.translate.v3beta1.TranslateDocumentRequest) other); + return mergeFrom((com.google.cloud.translate.v3beta1.TranslateDocumentRequest)other); } else { super.mergeFrom(other); return this; @@ -1187,8 +1092,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.TranslateDocumentRequest other) { - if (other == com.google.cloud.translate.v3beta1.TranslateDocumentRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3beta1.TranslateDocumentRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -1214,7 +1118,8 @@ public Builder mergeFrom(com.google.cloud.translate.v3beta1.TranslateDocumentReq if (other.hasGlossaryConfig()) { mergeGlossaryConfig(other.getGlossaryConfig()); } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -1234,8 +1139,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.translate.v3beta1.TranslateDocumentRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.translate.v3beta1.TranslateDocumentRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1244,13 +1148,10 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Location to make a regional call.
      * Format: `projects/{project-number-or-id}/locations/{location-id}`.
@@ -1262,13 +1163,13 @@ public Builder mergeFrom(
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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; @@ -1277,8 +1178,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Location to make a regional call.
      * Format: `projects/{project-number-or-id}/locations/{location-id}`.
@@ -1290,14 +1189,15 @@ public java.lang.String getParent() {
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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 { @@ -1305,8 +1205,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Location to make a regional call.
      * Format: `projects/{project-number-or-id}/locations/{location-id}`.
@@ -1318,22 +1216,20 @@ public com.google.protobuf.ByteString getParentBytes() {
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. Location to make a regional call.
      * Format: `projects/{project-number-or-id}/locations/{location-id}`.
@@ -1345,18 +1241,15 @@ public Builder setParent(java.lang.String value) {
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. Location to make a regional call.
      * Format: `projects/{project-number-or-id}/locations/{location-id}`.
@@ -1368,16 +1261,16 @@ public Builder clearParent() {
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -1385,8 +1278,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object sourceLanguageCode_ = ""; /** - * - * *
      * Optional. The BCP-47 language code of the input document if known, for
      * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -1397,13 +1288,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The sourceLanguageCode. */ public java.lang.String getSourceLanguageCode() { java.lang.Object ref = sourceLanguageCode_; 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(); sourceLanguageCode_ = s; return s; @@ -1412,8 +1303,6 @@ public java.lang.String getSourceLanguageCode() { } } /** - * - * *
      * Optional. The BCP-47 language code of the input document if known, for
      * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -1424,14 +1313,15 @@ public java.lang.String getSourceLanguageCode() {
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for sourceLanguageCode. */ - public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { + public com.google.protobuf.ByteString + getSourceLanguageCodeBytes() { java.lang.Object ref = sourceLanguageCode_; 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); sourceLanguageCode_ = b; return b; } else { @@ -1439,8 +1329,6 @@ public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { } } /** - * - * *
      * Optional. The BCP-47 language code of the input document if known, for
      * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -1451,22 +1339,20 @@ public com.google.protobuf.ByteString getSourceLanguageCodeBytes() {
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCode(java.lang.String value) { + public Builder setSourceLanguageCode( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + sourceLanguageCode_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The BCP-47 language code of the input document if known, for
      * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -1477,18 +1363,15 @@ public Builder setSourceLanguageCode(java.lang.String value) {
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearSourceLanguageCode() { - + sourceLanguageCode_ = getDefaultInstance().getSourceLanguageCode(); onChanged(); return this; } /** - * - * *
      * Optional. The BCP-47 language code of the input document if known, for
      * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -1499,16 +1382,16 @@ public Builder clearSourceLanguageCode() {
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCodeBytes(com.google.protobuf.ByteString value) { + public Builder setSourceLanguageCodeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceLanguageCode_ = value; onChanged(); return this; @@ -1516,21 +1399,19 @@ public Builder setSourceLanguageCodeBytes(com.google.protobuf.ByteString value) private java.lang.Object targetLanguageCode_ = ""; /** - * - * *
      * Required. The BCP-47 language code to use for translation of the input
      * document, set to one of the language codes listed in Language Support.
      * 
* * string target_language_code = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The targetLanguageCode. */ public java.lang.String getTargetLanguageCode() { java.lang.Object ref = targetLanguageCode_; 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(); targetLanguageCode_ = s; return s; @@ -1539,22 +1420,21 @@ public java.lang.String getTargetLanguageCode() { } } /** - * - * *
      * Required. The BCP-47 language code to use for translation of the input
      * document, set to one of the language codes listed in Language Support.
      * 
* * string target_language_code = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for targetLanguageCode. */ - public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { + public com.google.protobuf.ByteString + getTargetLanguageCodeBytes() { java.lang.Object ref = targetLanguageCode_; 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); targetLanguageCode_ = b; return b; } else { @@ -1562,64 +1442,57 @@ public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { } } /** - * - * *
      * Required. The BCP-47 language code to use for translation of the input
      * document, set to one of the language codes listed in Language Support.
      * 
* * string target_language_code = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The targetLanguageCode to set. * @return This builder for chaining. */ - public Builder setTargetLanguageCode(java.lang.String value) { + public Builder setTargetLanguageCode( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + targetLanguageCode_ = value; onChanged(); return this; } /** - * - * *
      * Required. The BCP-47 language code to use for translation of the input
      * document, set to one of the language codes listed in Language Support.
      * 
* * string target_language_code = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearTargetLanguageCode() { - + targetLanguageCode_ = getDefaultInstance().getTargetLanguageCode(); onChanged(); return this; } /** - * - * *
      * Required. The BCP-47 language code to use for translation of the input
      * document, set to one of the language codes listed in Language Support.
      * 
* * string target_language_code = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for targetLanguageCode to set. * @return This builder for chaining. */ - public Builder setTargetLanguageCodeBytes(com.google.protobuf.ByteString value) { + public Builder setTargetLanguageCodeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + targetLanguageCode_ = value; onChanged(); return this; @@ -1627,61 +1500,41 @@ public Builder setTargetLanguageCodeBytes(com.google.protobuf.ByteString value) private com.google.cloud.translate.v3beta1.DocumentInputConfig documentInputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.DocumentInputConfig, - com.google.cloud.translate.v3beta1.DocumentInputConfig.Builder, - com.google.cloud.translate.v3beta1.DocumentInputConfigOrBuilder> - documentInputConfigBuilder_; + com.google.cloud.translate.v3beta1.DocumentInputConfig, com.google.cloud.translate.v3beta1.DocumentInputConfig.Builder, com.google.cloud.translate.v3beta1.DocumentInputConfigOrBuilder> documentInputConfigBuilder_; /** - * - * *
      * Required. Input configurations.
      * 
* - * - * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the documentInputConfig field is set. */ public boolean hasDocumentInputConfig() { return documentInputConfigBuilder_ != null || documentInputConfig_ != null; } /** - * - * *
      * Required. Input configurations.
      * 
* - * - * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; * @return The documentInputConfig. */ public com.google.cloud.translate.v3beta1.DocumentInputConfig getDocumentInputConfig() { if (documentInputConfigBuilder_ == null) { - return documentInputConfig_ == null - ? com.google.cloud.translate.v3beta1.DocumentInputConfig.getDefaultInstance() - : documentInputConfig_; + return documentInputConfig_ == null ? com.google.cloud.translate.v3beta1.DocumentInputConfig.getDefaultInstance() : documentInputConfig_; } else { return documentInputConfigBuilder_.getMessage(); } } /** - * - * *
      * Required. Input configurations.
      * 
* - * - * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setDocumentInputConfig( - com.google.cloud.translate.v3beta1.DocumentInputConfig value) { + public Builder setDocumentInputConfig(com.google.cloud.translate.v3beta1.DocumentInputConfig value) { if (documentInputConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1695,15 +1548,11 @@ public Builder setDocumentInputConfig( return this; } /** - * - * *
      * Required. Input configurations.
      * 
* - * - * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setDocumentInputConfig( com.google.cloud.translate.v3beta1.DocumentInputConfig.Builder builderForValue) { @@ -1717,25 +1566,17 @@ public Builder setDocumentInputConfig( return this; } /** - * - * *
      * Required. Input configurations.
      * 
* - * - * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeDocumentInputConfig( - com.google.cloud.translate.v3beta1.DocumentInputConfig value) { + public Builder mergeDocumentInputConfig(com.google.cloud.translate.v3beta1.DocumentInputConfig value) { if (documentInputConfigBuilder_ == null) { if (documentInputConfig_ != null) { documentInputConfig_ = - com.google.cloud.translate.v3beta1.DocumentInputConfig.newBuilder( - documentInputConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.translate.v3beta1.DocumentInputConfig.newBuilder(documentInputConfig_).mergeFrom(value).buildPartial(); } else { documentInputConfig_ = value; } @@ -1747,15 +1588,11 @@ public Builder mergeDocumentInputConfig( return this; } /** - * - * *
      * Required. Input configurations.
      * 
* - * - * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearDocumentInputConfig() { if (documentInputConfigBuilder_ == null) { @@ -1769,66 +1606,48 @@ public Builder clearDocumentInputConfig() { return this; } /** - * - * *
      * Required. Input configurations.
      * 
* - * - * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.translate.v3beta1.DocumentInputConfig.Builder - getDocumentInputConfigBuilder() { - + public com.google.cloud.translate.v3beta1.DocumentInputConfig.Builder getDocumentInputConfigBuilder() { + onChanged(); return getDocumentInputConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Input configurations.
      * 
* - * - * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.translate.v3beta1.DocumentInputConfigOrBuilder - getDocumentInputConfigOrBuilder() { + public com.google.cloud.translate.v3beta1.DocumentInputConfigOrBuilder getDocumentInputConfigOrBuilder() { if (documentInputConfigBuilder_ != null) { return documentInputConfigBuilder_.getMessageOrBuilder(); } else { - return documentInputConfig_ == null - ? com.google.cloud.translate.v3beta1.DocumentInputConfig.getDefaultInstance() - : documentInputConfig_; + return documentInputConfig_ == null ? + com.google.cloud.translate.v3beta1.DocumentInputConfig.getDefaultInstance() : documentInputConfig_; } } /** - * - * *
      * Required. Input configurations.
      * 
* - * - * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.DocumentInputConfig, - com.google.cloud.translate.v3beta1.DocumentInputConfig.Builder, - com.google.cloud.translate.v3beta1.DocumentInputConfigOrBuilder> + com.google.cloud.translate.v3beta1.DocumentInputConfig, com.google.cloud.translate.v3beta1.DocumentInputConfig.Builder, com.google.cloud.translate.v3beta1.DocumentInputConfigOrBuilder> getDocumentInputConfigFieldBuilder() { if (documentInputConfigBuilder_ == null) { - documentInputConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.DocumentInputConfig, - com.google.cloud.translate.v3beta1.DocumentInputConfig.Builder, - com.google.cloud.translate.v3beta1.DocumentInputConfigOrBuilder>( - getDocumentInputConfig(), getParentForChildren(), isClean()); + documentInputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3beta1.DocumentInputConfig, com.google.cloud.translate.v3beta1.DocumentInputConfig.Builder, com.google.cloud.translate.v3beta1.DocumentInputConfigOrBuilder>( + getDocumentInputConfig(), + getParentForChildren(), + isClean()); documentInputConfig_ = null; } return documentInputConfigBuilder_; @@ -1836,13 +1655,8 @@ public Builder clearDocumentInputConfig() { private com.google.cloud.translate.v3beta1.DocumentOutputConfig documentOutputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.DocumentOutputConfig, - com.google.cloud.translate.v3beta1.DocumentOutputConfig.Builder, - com.google.cloud.translate.v3beta1.DocumentOutputConfigOrBuilder> - documentOutputConfigBuilder_; + com.google.cloud.translate.v3beta1.DocumentOutputConfig, com.google.cloud.translate.v3beta1.DocumentOutputConfig.Builder, com.google.cloud.translate.v3beta1.DocumentOutputConfigOrBuilder> documentOutputConfigBuilder_; /** - * - * *
      * Optional. Output configurations.
      * Defines if the output file should be stored within Cloud Storage as well
@@ -1851,18 +1665,13 @@ public Builder clearDocumentInputConfig() {
      * the same as the input file's mime type.
      * 
* - * - * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the documentOutputConfig field is set. */ public boolean hasDocumentOutputConfig() { return documentOutputConfigBuilder_ != null || documentOutputConfig_ != null; } /** - * - * *
      * Optional. Output configurations.
      * Defines if the output file should be stored within Cloud Storage as well
@@ -1871,24 +1680,17 @@ public boolean hasDocumentOutputConfig() {
      * the same as the input file's mime type.
      * 
* - * - * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The documentOutputConfig. */ public com.google.cloud.translate.v3beta1.DocumentOutputConfig getDocumentOutputConfig() { if (documentOutputConfigBuilder_ == null) { - return documentOutputConfig_ == null - ? com.google.cloud.translate.v3beta1.DocumentOutputConfig.getDefaultInstance() - : documentOutputConfig_; + return documentOutputConfig_ == null ? com.google.cloud.translate.v3beta1.DocumentOutputConfig.getDefaultInstance() : documentOutputConfig_; } else { return documentOutputConfigBuilder_.getMessage(); } } /** - * - * *
      * Optional. Output configurations.
      * Defines if the output file should be stored within Cloud Storage as well
@@ -1897,12 +1699,9 @@ public com.google.cloud.translate.v3beta1.DocumentOutputConfig getDocumentOutput
      * the same as the input file's mime type.
      * 
* - * - * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setDocumentOutputConfig( - com.google.cloud.translate.v3beta1.DocumentOutputConfig value) { + public Builder setDocumentOutputConfig(com.google.cloud.translate.v3beta1.DocumentOutputConfig value) { if (documentOutputConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1916,8 +1715,6 @@ public Builder setDocumentOutputConfig( return this; } /** - * - * *
      * Optional. Output configurations.
      * Defines if the output file should be stored within Cloud Storage as well
@@ -1926,9 +1723,7 @@ public Builder setDocumentOutputConfig(
      * the same as the input file's mime type.
      * 
* - * - * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setDocumentOutputConfig( com.google.cloud.translate.v3beta1.DocumentOutputConfig.Builder builderForValue) { @@ -1942,8 +1737,6 @@ public Builder setDocumentOutputConfig( return this; } /** - * - * *
      * Optional. Output configurations.
      * Defines if the output file should be stored within Cloud Storage as well
@@ -1952,19 +1745,13 @@ public Builder setDocumentOutputConfig(
      * the same as the input file's mime type.
      * 
* - * - * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergeDocumentOutputConfig( - com.google.cloud.translate.v3beta1.DocumentOutputConfig value) { + public Builder mergeDocumentOutputConfig(com.google.cloud.translate.v3beta1.DocumentOutputConfig value) { if (documentOutputConfigBuilder_ == null) { if (documentOutputConfig_ != null) { documentOutputConfig_ = - com.google.cloud.translate.v3beta1.DocumentOutputConfig.newBuilder( - documentOutputConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.translate.v3beta1.DocumentOutputConfig.newBuilder(documentOutputConfig_).mergeFrom(value).buildPartial(); } else { documentOutputConfig_ = value; } @@ -1976,8 +1763,6 @@ public Builder mergeDocumentOutputConfig( return this; } /** - * - * *
      * Optional. Output configurations.
      * Defines if the output file should be stored within Cloud Storage as well
@@ -1986,9 +1771,7 @@ public Builder mergeDocumentOutputConfig(
      * the same as the input file's mime type.
      * 
* - * - * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearDocumentOutputConfig() { if (documentOutputConfigBuilder_ == null) { @@ -2002,8 +1785,6 @@ public Builder clearDocumentOutputConfig() { return this; } /** - * - * *
      * Optional. Output configurations.
      * Defines if the output file should be stored within Cloud Storage as well
@@ -2012,19 +1793,14 @@ public Builder clearDocumentOutputConfig() {
      * the same as the input file's mime type.
      * 
* - * - * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.translate.v3beta1.DocumentOutputConfig.Builder - getDocumentOutputConfigBuilder() { - + public com.google.cloud.translate.v3beta1.DocumentOutputConfig.Builder getDocumentOutputConfigBuilder() { + onChanged(); return getDocumentOutputConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Output configurations.
      * Defines if the output file should be stored within Cloud Storage as well
@@ -2033,23 +1809,17 @@ public Builder clearDocumentOutputConfig() {
      * the same as the input file's mime type.
      * 
* - * - * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.translate.v3beta1.DocumentOutputConfigOrBuilder - getDocumentOutputConfigOrBuilder() { + public com.google.cloud.translate.v3beta1.DocumentOutputConfigOrBuilder getDocumentOutputConfigOrBuilder() { if (documentOutputConfigBuilder_ != null) { return documentOutputConfigBuilder_.getMessageOrBuilder(); } else { - return documentOutputConfig_ == null - ? com.google.cloud.translate.v3beta1.DocumentOutputConfig.getDefaultInstance() - : documentOutputConfig_; + return documentOutputConfig_ == null ? + com.google.cloud.translate.v3beta1.DocumentOutputConfig.getDefaultInstance() : documentOutputConfig_; } } /** - * - * *
      * Optional. Output configurations.
      * Defines if the output file should be stored within Cloud Storage as well
@@ -2058,22 +1828,17 @@ public Builder clearDocumentOutputConfig() {
      * the same as the input file's mime type.
      * 
* - * - * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.DocumentOutputConfig, - com.google.cloud.translate.v3beta1.DocumentOutputConfig.Builder, - com.google.cloud.translate.v3beta1.DocumentOutputConfigOrBuilder> + com.google.cloud.translate.v3beta1.DocumentOutputConfig, com.google.cloud.translate.v3beta1.DocumentOutputConfig.Builder, com.google.cloud.translate.v3beta1.DocumentOutputConfigOrBuilder> getDocumentOutputConfigFieldBuilder() { if (documentOutputConfigBuilder_ == null) { - documentOutputConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.DocumentOutputConfig, - com.google.cloud.translate.v3beta1.DocumentOutputConfig.Builder, - com.google.cloud.translate.v3beta1.DocumentOutputConfigOrBuilder>( - getDocumentOutputConfig(), getParentForChildren(), isClean()); + documentOutputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3beta1.DocumentOutputConfig, com.google.cloud.translate.v3beta1.DocumentOutputConfig.Builder, com.google.cloud.translate.v3beta1.DocumentOutputConfigOrBuilder>( + getDocumentOutputConfig(), + getParentForChildren(), + isClean()); documentOutputConfig_ = null; } return documentOutputConfigBuilder_; @@ -2081,8 +1846,6 @@ public Builder clearDocumentOutputConfig() { private java.lang.Object model_ = ""; /** - * - * *
      * Optional. The `model` type requested for this translation.
      * The format depends on model type:
@@ -2095,13 +1858,13 @@ public Builder clearDocumentOutputConfig() {
      * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; 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(); model_ = s; return s; @@ -2110,8 +1873,6 @@ public java.lang.String getModel() { } } /** - * - * *
      * Optional. The `model` type requested for this translation.
      * The format depends on model type:
@@ -2124,14 +1885,15 @@ public java.lang.String getModel() {
      * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for model. */ - public com.google.protobuf.ByteString getModelBytes() { + public com.google.protobuf.ByteString + getModelBytes() { java.lang.Object ref = model_; 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); model_ = b; return b; } else { @@ -2139,8 +1901,6 @@ public com.google.protobuf.ByteString getModelBytes() { } } /** - * - * *
      * Optional. The `model` type requested for this translation.
      * The format depends on model type:
@@ -2153,22 +1913,20 @@ public com.google.protobuf.ByteString getModelBytes() {
      * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The model to set. * @return This builder for chaining. */ - public Builder setModel(java.lang.String value) { + public Builder setModel( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + model_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The `model` type requested for this translation.
      * The format depends on model type:
@@ -2181,18 +1939,15 @@ public Builder setModel(java.lang.String value) {
      * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearModel() { - + model_ = getDefaultInstance().getModel(); onChanged(); return this; } /** - * - * *
      * Optional. The `model` type requested for this translation.
      * The format depends on model type:
@@ -2205,16 +1960,16 @@ public Builder clearModel() {
      * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for model to set. * @return This builder for chaining. */ - public Builder setModelBytes(com.google.protobuf.ByteString value) { + public Builder setModelBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + model_ = value; onChanged(); return this; @@ -2222,67 +1977,47 @@ public Builder setModelBytes(com.google.protobuf.ByteString value) { private com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig glossaryConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder> - glossaryConfigBuilder_; + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder> glossaryConfigBuilder_; /** - * - * *
      * Optional. Glossary to be applied. The glossary must be within the same
      * region (have the same location-id) as the model, otherwise an
      * INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the glossaryConfig field is set. */ public boolean hasGlossaryConfig() { return glossaryConfigBuilder_ != null || glossaryConfig_ != null; } /** - * - * *
      * Optional. Glossary to be applied. The glossary must be within the same
      * region (have the same location-id) as the model, otherwise an
      * INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The glossaryConfig. */ public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossaryConfig() { if (glossaryConfigBuilder_ == null) { - return glossaryConfig_ == null - ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() - : glossaryConfig_; + return glossaryConfig_ == null ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; } else { return glossaryConfigBuilder_.getMessage(); } } /** - * - * *
      * Optional. Glossary to be applied. The glossary must be within the same
      * region (have the same location-id) as the model, otherwise an
      * INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setGlossaryConfig( - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig value) { + public Builder setGlossaryConfig(com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig value) { if (glossaryConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2296,17 +2031,13 @@ public Builder setGlossaryConfig( return this; } /** - * - * *
      * Optional. Glossary to be applied. The glossary must be within the same
      * region (have the same location-id) as the model, otherwise an
      * INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setGlossaryConfig( com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder builderForValue) { @@ -2320,27 +2051,19 @@ public Builder setGlossaryConfig( return this; } /** - * - * *
      * Optional. Glossary to be applied. The glossary must be within the same
      * region (have the same location-id) as the model, otherwise an
      * INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergeGlossaryConfig( - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig value) { + public Builder mergeGlossaryConfig(com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig value) { if (glossaryConfigBuilder_ == null) { if (glossaryConfig_ != null) { glossaryConfig_ = - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.newBuilder( - glossaryConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.newBuilder(glossaryConfig_).mergeFrom(value).buildPartial(); } else { glossaryConfig_ = value; } @@ -2352,17 +2075,13 @@ public Builder mergeGlossaryConfig( return this; } /** - * - * *
      * Optional. Glossary to be applied. The glossary must be within the same
      * region (have the same location-id) as the model, otherwise an
      * INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearGlossaryConfig() { if (glossaryConfigBuilder_ == null) { @@ -2376,92 +2095,75 @@ public Builder clearGlossaryConfig() { return this; } /** - * - * *
      * Optional. Glossary to be applied. The glossary must be within the same
      * region (have the same location-id) as the model, otherwise an
      * INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder - getGlossaryConfigBuilder() { - + public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder getGlossaryConfigBuilder() { + onChanged(); return getGlossaryConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Glossary to be applied. The glossary must be within the same
      * region (have the same location-id) as the model, otherwise an
      * INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder - getGlossaryConfigOrBuilder() { + public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder getGlossaryConfigOrBuilder() { if (glossaryConfigBuilder_ != null) { return glossaryConfigBuilder_.getMessageOrBuilder(); } else { - return glossaryConfig_ == null - ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() - : glossaryConfig_; + return glossaryConfig_ == null ? + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; } } /** - * - * *
      * Optional. Glossary to be applied. The glossary must be within the same
      * region (have the same location-id) as the model, otherwise an
      * INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder> + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder> getGlossaryConfigFieldBuilder() { if (glossaryConfigBuilder_ == null) { - glossaryConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder>( - getGlossaryConfig(), getParentForChildren(), isClean()); + glossaryConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder>( + getGlossaryConfig(), + getParentForChildren(), + isClean()); glossaryConfig_ = null; } return glossaryConfigBuilder_; } - 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() { - onChanged(); - ; + internalGetMutableLabels() { + onChanged();; 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(); @@ -2473,8 +2175,6 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Optional. The labels with user-defined metadata for the request.
      * Label keys and values can be no longer than 63 characters (Unicode
@@ -2487,22 +2187,22 @@ public int getLabelsCount() {
      *
      * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      */
+
     @java.lang.Override
-    public boolean containsLabels(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
+    public boolean containsLabels(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
       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. The labels with user-defined metadata for the request.
      * Label keys and values can be no longer than 63 characters (Unicode
@@ -2516,12 +2216,11 @@ public java.util.Map getLabels() {
      * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
+
     public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      * Label keys and values can be no longer than 63 characters (Unicode
@@ -2535,17 +2234,16 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
+
     public java.lang.String getLabelsOrDefault(
-        java.lang.String key, java.lang.String defaultValue) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      java.util.Map map = internalGetLabels().getMap();
+        java.lang.String key,
+        java.lang.String defaultValue) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      * Label keys and values can be no longer than 63 characters (Unicode
@@ -2559,11 +2257,12 @@ public java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public java.lang.String getLabelsOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      java.util.Map map = internalGetLabels().getMap();
+
+    public java.lang.String getLabelsOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -2571,12 +2270,11 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
     }
 
     public Builder clearLabels() {
-      internalGetMutableLabels().getMutableMap().clear();
+      internalGetMutableLabels().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      * Label keys and values can be no longer than 63 characters (Unicode
@@ -2589,21 +2287,23 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder removeLabels(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      internalGetMutableLabels().getMutableMap().remove(key);
+
+    public Builder removeLabels(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      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() {
       return internalGetMutableLabels().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      * Label keys and values can be no longer than 63 characters (Unicode
@@ -2616,19 +2316,16 @@ public java.util.Map getMutableLabels() {
      *
      * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putLabels(java.lang.String key, java.lang.String value) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      if (value == null) {
-        throw new java.lang.NullPointerException();
-      }
-      internalGetMutableLabels().getMutableMap().put(key, value);
+    public Builder putLabels(
+        java.lang.String key,
+        java.lang.String value) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      if (value == null) { throw new java.lang.NullPointerException(); }
+      internalGetMutableLabels().getMutableMap()
+          .put(key, value);
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      * Label keys and values can be no longer than 63 characters (Unicode
@@ -2641,13 +2338,16 @@ public Builder putLabels(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> labels = 8 [(.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);
       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);
     }
 
@@ -2657,12 +2357,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.TranslateDocumentRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.TranslateDocumentRequest)
   private static final com.google.cloud.translate.v3beta1.TranslateDocumentRequest DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.TranslateDocumentRequest();
   }
@@ -2671,16 +2371,16 @@ public static com.google.cloud.translate.v3beta1.TranslateDocumentRequest getDef
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public TranslateDocumentRequest parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new TranslateDocumentRequest(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public TranslateDocumentRequest parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new TranslateDocumentRequest(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2695,4 +2395,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3beta1.TranslateDocumentRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentRequestOrBuilder.java b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentRequestOrBuilder.java
similarity index 77%
rename from proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentRequestOrBuilder.java
rename to owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentRequestOrBuilder.java
index 1a457709..8946e752 100644
--- a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentRequestOrBuilder.java
+++ b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentRequestOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2020 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/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
-public interface TranslateDocumentRequestOrBuilder
-    extends
+public interface TranslateDocumentRequestOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.TranslateDocumentRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. Location to make a regional call.
    * Format: `projects/{project-number-or-id}/locations/{location-id}`.
@@ -37,13 +19,10 @@ public interface TranslateDocumentRequestOrBuilder
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. Location to make a regional call.
    * Format: `projects/{project-number-or-id}/locations/{location-id}`.
@@ -55,14 +34,12 @@ public interface TranslateDocumentRequestOrBuilder
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Optional. The BCP-47 language code of the input document if known, for
    * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -73,13 +50,10 @@ public interface TranslateDocumentRequestOrBuilder
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The sourceLanguageCode. */ java.lang.String getSourceLanguageCode(); /** - * - * *
    * Optional. The BCP-47 language code of the input document if known, for
    * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -90,82 +64,61 @@ public interface TranslateDocumentRequestOrBuilder
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for sourceLanguageCode. */ - com.google.protobuf.ByteString getSourceLanguageCodeBytes(); + com.google.protobuf.ByteString + getSourceLanguageCodeBytes(); /** - * - * *
    * Required. The BCP-47 language code to use for translation of the input
    * document, set to one of the language codes listed in Language Support.
    * 
* * string target_language_code = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The targetLanguageCode. */ java.lang.String getTargetLanguageCode(); /** - * - * *
    * Required. The BCP-47 language code to use for translation of the input
    * document, set to one of the language codes listed in Language Support.
    * 
* * string target_language_code = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for targetLanguageCode. */ - com.google.protobuf.ByteString getTargetLanguageCodeBytes(); + com.google.protobuf.ByteString + getTargetLanguageCodeBytes(); /** - * - * *
    * Required. Input configurations.
    * 
* - * - * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the documentInputConfig field is set. */ boolean hasDocumentInputConfig(); /** - * - * *
    * Required. Input configurations.
    * 
* - * - * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; * @return The documentInputConfig. */ com.google.cloud.translate.v3beta1.DocumentInputConfig getDocumentInputConfig(); /** - * - * *
    * Required. Input configurations.
    * 
* - * - * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.translate.v3beta1.DocumentInputConfigOrBuilder getDocumentInputConfigOrBuilder(); /** - * - * *
    * Optional. Output configurations.
    * Defines if the output file should be stored within Cloud Storage as well
@@ -174,16 +127,11 @@ public interface TranslateDocumentRequestOrBuilder
    * the same as the input file's mime type.
    * 
* - * - * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the documentOutputConfig field is set. */ boolean hasDocumentOutputConfig(); /** - * - * *
    * Optional. Output configurations.
    * Defines if the output file should be stored within Cloud Storage as well
@@ -192,16 +140,11 @@ public interface TranslateDocumentRequestOrBuilder
    * the same as the input file's mime type.
    * 
* - * - * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The documentOutputConfig. */ com.google.cloud.translate.v3beta1.DocumentOutputConfig getDocumentOutputConfig(); /** - * - * *
    * Optional. Output configurations.
    * Defines if the output file should be stored within Cloud Storage as well
@@ -210,16 +153,11 @@ public interface TranslateDocumentRequestOrBuilder
    * the same as the input file's mime type.
    * 
* - * - * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.cloud.translate.v3beta1.DocumentOutputConfigOrBuilder - getDocumentOutputConfigOrBuilder(); + com.google.cloud.translate.v3beta1.DocumentOutputConfigOrBuilder getDocumentOutputConfigOrBuilder(); /** - * - * *
    * Optional. The `model` type requested for this translation.
    * The format depends on model type:
@@ -232,13 +170,10 @@ public interface TranslateDocumentRequestOrBuilder
    * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The model. */ java.lang.String getModel(); /** - * - * *
    * Optional. The `model` type requested for this translation.
    * The format depends on model type:
@@ -251,62 +186,45 @@ public interface TranslateDocumentRequestOrBuilder
    * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for model. */ - com.google.protobuf.ByteString getModelBytes(); + com.google.protobuf.ByteString + getModelBytes(); /** - * - * *
    * Optional. Glossary to be applied. The glossary must be within the same
    * region (have the same location-id) as the model, otherwise an
    * INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the glossaryConfig field is set. */ boolean hasGlossaryConfig(); /** - * - * *
    * Optional. Glossary to be applied. The glossary must be within the same
    * region (have the same location-id) as the model, otherwise an
    * INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The glossaryConfig. */ com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossaryConfig(); /** - * - * *
    * Optional. Glossary to be applied. The glossary must be within the same
    * region (have the same location-id) as the model, otherwise an
    * INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder - getGlossaryConfigOrBuilder(); + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder getGlossaryConfigOrBuilder(); /** - * - * *
    * Optional. The labels with user-defined metadata for the request.
    * Label keys and values can be no longer than 63 characters (Unicode
@@ -321,8 +239,6 @@ public interface TranslateDocumentRequestOrBuilder
    */
   int getLabelsCount();
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    * Label keys and values can be no longer than 63 characters (Unicode
@@ -335,13 +251,15 @@ public interface TranslateDocumentRequestOrBuilder
    *
    * map<string, string> labels = 8 [(.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. The labels with user-defined metadata for the request.
    * Label keys and values can be no longer than 63 characters (Unicode
@@ -354,10 +272,9 @@ public interface TranslateDocumentRequestOrBuilder
    *
    * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.util.Map getLabelsMap();
+  java.util.Map
+  getLabelsMap();
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    * Label keys and values can be no longer than 63 characters (Unicode
@@ -370,10 +287,11 @@ public interface TranslateDocumentRequestOrBuilder
    *
    * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue);
+
+  java.lang.String getLabelsOrDefault(
+      java.lang.String key,
+      java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    * Label keys and values can be no longer than 63 characters (Unicode
@@ -386,5 +304,7 @@ public interface TranslateDocumentRequestOrBuilder
    *
    * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.lang.String getLabelsOrThrow(java.lang.String key);
+
+  java.lang.String getLabelsOrThrow(
+      java.lang.String key);
 }
diff --git a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentResponse.java b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentResponse.java
similarity index 68%
rename from proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentResponse.java
rename to owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentResponse.java
index 135971d6..eab04874 100644
--- a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentResponse.java
+++ b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentResponse.java
@@ -1,57 +1,40 @@
-/*
- * Copyright 2020 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/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
 /**
- *
- *
  * 
  * A translated document response message.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.TranslateDocumentResponse} */ -public final class TranslateDocumentResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class TranslateDocumentResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.TranslateDocumentResponse) TranslateDocumentResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use TranslateDocumentResponse.newBuilder() to construct. private TranslateDocumentResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TranslateDocumentResponse() { model_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TranslateDocumentResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private TranslateDocumentResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,110 +53,91 @@ private TranslateDocumentResponse( case 0: done = true; break; - case 10: - { - com.google.cloud.translate.v3beta1.DocumentTranslation.Builder subBuilder = null; - if (documentTranslation_ != null) { - subBuilder = documentTranslation_.toBuilder(); - } - documentTranslation_ = - input.readMessage( - com.google.cloud.translate.v3beta1.DocumentTranslation.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(documentTranslation_); - documentTranslation_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.translate.v3beta1.DocumentTranslation.Builder subBuilder = null; + if (documentTranslation_ != null) { + subBuilder = documentTranslation_.toBuilder(); } - case 18: - { - com.google.cloud.translate.v3beta1.DocumentTranslation.Builder subBuilder = null; - if (glossaryDocumentTranslation_ != null) { - subBuilder = glossaryDocumentTranslation_.toBuilder(); - } - glossaryDocumentTranslation_ = - input.readMessage( - com.google.cloud.translate.v3beta1.DocumentTranslation.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(glossaryDocumentTranslation_); - glossaryDocumentTranslation_ = subBuilder.buildPartial(); - } - - break; + documentTranslation_ = input.readMessage(com.google.cloud.translate.v3beta1.DocumentTranslation.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(documentTranslation_); + documentTranslation_ = subBuilder.buildPartial(); } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - model_ = s; - break; + break; + } + case 18: { + com.google.cloud.translate.v3beta1.DocumentTranslation.Builder subBuilder = null; + if (glossaryDocumentTranslation_ != null) { + subBuilder = glossaryDocumentTranslation_.toBuilder(); + } + glossaryDocumentTranslation_ = input.readMessage(com.google.cloud.translate.v3beta1.DocumentTranslation.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(glossaryDocumentTranslation_); + glossaryDocumentTranslation_ = subBuilder.buildPartial(); } - case 34: - { - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder subBuilder = - null; - if (glossaryConfig_ != null) { - subBuilder = glossaryConfig_.toBuilder(); - } - glossaryConfig_ = - input.readMessage( - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(glossaryConfig_); - glossaryConfig_ = subBuilder.buildPartial(); - } - break; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + model_ = s; + break; + } + case 34: { + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder subBuilder = null; + if (glossaryConfig_ != null) { + subBuilder = glossaryConfig_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + glossaryConfig_ = input.readMessage(com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(glossaryConfig_); + glossaryConfig_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_TranslateDocumentResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateDocumentResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_TranslateDocumentResponse_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateDocumentResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.TranslateDocumentResponse.class, - com.google.cloud.translate.v3beta1.TranslateDocumentResponse.Builder.class); + com.google.cloud.translate.v3beta1.TranslateDocumentResponse.class, com.google.cloud.translate.v3beta1.TranslateDocumentResponse.Builder.class); } public static final int DOCUMENT_TRANSLATION_FIELD_NUMBER = 1; private com.google.cloud.translate.v3beta1.DocumentTranslation documentTranslation_; /** - * - * *
    * Translated document.
    * 
* * .google.cloud.translation.v3beta1.DocumentTranslation document_translation = 1; - * * @return Whether the documentTranslation field is set. */ @java.lang.Override @@ -181,25 +145,18 @@ public boolean hasDocumentTranslation() { return documentTranslation_ != null; } /** - * - * *
    * Translated document.
    * 
* * .google.cloud.translation.v3beta1.DocumentTranslation document_translation = 1; - * * @return The documentTranslation. */ @java.lang.Override public com.google.cloud.translate.v3beta1.DocumentTranslation getDocumentTranslation() { - return documentTranslation_ == null - ? com.google.cloud.translate.v3beta1.DocumentTranslation.getDefaultInstance() - : documentTranslation_; + return documentTranslation_ == null ? com.google.cloud.translate.v3beta1.DocumentTranslation.getDefaultInstance() : documentTranslation_; } /** - * - * *
    * Translated document.
    * 
@@ -207,25 +164,20 @@ public com.google.cloud.translate.v3beta1.DocumentTranslation getDocumentTransla * .google.cloud.translation.v3beta1.DocumentTranslation document_translation = 1; */ @java.lang.Override - public com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder - getDocumentTranslationOrBuilder() { + public com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder getDocumentTranslationOrBuilder() { return getDocumentTranslation(); } public static final int GLOSSARY_DOCUMENT_TRANSLATION_FIELD_NUMBER = 2; private com.google.cloud.translate.v3beta1.DocumentTranslation glossaryDocumentTranslation_; /** - * - * *
    * The document's translation output if a glossary is provided in the request.
    * This can be the same as [TranslateDocumentResponse.document_translation]
    * if no glossary terms apply.
    * 
* - * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; - * - * + * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; * @return Whether the glossaryDocumentTranslation field is set. */ @java.lang.Override @@ -233,48 +185,36 @@ public boolean hasGlossaryDocumentTranslation() { return glossaryDocumentTranslation_ != null; } /** - * - * *
    * The document's translation output if a glossary is provided in the request.
    * This can be the same as [TranslateDocumentResponse.document_translation]
    * if no glossary terms apply.
    * 
* - * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; - * - * + * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; * @return The glossaryDocumentTranslation. */ @java.lang.Override public com.google.cloud.translate.v3beta1.DocumentTranslation getGlossaryDocumentTranslation() { - return glossaryDocumentTranslation_ == null - ? com.google.cloud.translate.v3beta1.DocumentTranslation.getDefaultInstance() - : glossaryDocumentTranslation_; + return glossaryDocumentTranslation_ == null ? com.google.cloud.translate.v3beta1.DocumentTranslation.getDefaultInstance() : glossaryDocumentTranslation_; } /** - * - * *
    * The document's translation output if a glossary is provided in the request.
    * This can be the same as [TranslateDocumentResponse.document_translation]
    * if no glossary terms apply.
    * 
* - * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; - * + * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; */ @java.lang.Override - public com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder - getGlossaryDocumentTranslationOrBuilder() { + public com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder getGlossaryDocumentTranslationOrBuilder() { return getGlossaryDocumentTranslation(); } public static final int MODEL_FIELD_NUMBER = 3; private volatile java.lang.Object model_; /** - * - * *
    * Only present when 'model' is present in the request.
    * 'model' is normalized to have a project number.
@@ -286,7 +226,6 @@ public com.google.cloud.translate.v3beta1.DocumentTranslation getGlossaryDocumen
    * 
* * string model = 3; - * * @return The model. */ @java.lang.Override @@ -295,15 +234,14 @@ public java.lang.String getModel() { 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(); model_ = s; return s; } } /** - * - * *
    * Only present when 'model' is present in the request.
    * 'model' is normalized to have a project number.
@@ -315,15 +253,16 @@ public java.lang.String getModel() {
    * 
* * string model = 3; - * * @return The bytes for model. */ @java.lang.Override - public com.google.protobuf.ByteString getModelBytes() { + public com.google.protobuf.ByteString + getModelBytes() { java.lang.Object ref = model_; 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); model_ = b; return b; } else { @@ -334,14 +273,11 @@ public com.google.protobuf.ByteString getModelBytes() { public static final int GLOSSARY_CONFIG_FIELD_NUMBER = 4; private com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig glossaryConfig_; /** - * - * *
    * The `glossary_config` used for this translation.
    * 
* * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; - * * @return Whether the glossaryConfig field is set. */ @java.lang.Override @@ -349,25 +285,18 @@ public boolean hasGlossaryConfig() { return glossaryConfig_ != null; } /** - * - * *
    * The `glossary_config` used for this translation.
    * 
* * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; - * * @return The glossaryConfig. */ @java.lang.Override public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossaryConfig() { - return glossaryConfig_ == null - ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() - : glossaryConfig_; + return glossaryConfig_ == null ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; } /** - * - * *
    * The `glossary_config` used for this translation.
    * 
@@ -375,13 +304,11 @@ public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossar * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; */ @java.lang.Override - public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder - getGlossaryConfigOrBuilder() { + public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder getGlossaryConfigOrBuilder() { return getGlossaryConfig(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -393,14 +320,15 @@ 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 (documentTranslation_ != null) { output.writeMessage(1, getDocumentTranslation()); } if (glossaryDocumentTranslation_ != null) { output.writeMessage(2, getGlossaryDocumentTranslation()); } - if (!getModelBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(model_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, model_); } if (glossaryConfig_ != null) { @@ -416,18 +344,19 @@ public int getSerializedSize() { size = 0; if (documentTranslation_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDocumentTranslation()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getDocumentTranslation()); } if (glossaryDocumentTranslation_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, getGlossaryDocumentTranslation()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getGlossaryDocumentTranslation()); } - if (!getModelBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(model_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, model_); } if (glossaryConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getGlossaryConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getGlossaryConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -437,27 +366,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.cloud.translate.v3beta1.TranslateDocumentResponse)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.TranslateDocumentResponse other = - (com.google.cloud.translate.v3beta1.TranslateDocumentResponse) obj; + com.google.cloud.translate.v3beta1.TranslateDocumentResponse other = (com.google.cloud.translate.v3beta1.TranslateDocumentResponse) obj; if (hasDocumentTranslation() != other.hasDocumentTranslation()) return false; if (hasDocumentTranslation()) { - if (!getDocumentTranslation().equals(other.getDocumentTranslation())) return false; + if (!getDocumentTranslation() + .equals(other.getDocumentTranslation())) return false; } if (hasGlossaryDocumentTranslation() != other.hasGlossaryDocumentTranslation()) return false; if (hasGlossaryDocumentTranslation()) { - if (!getGlossaryDocumentTranslation().equals(other.getGlossaryDocumentTranslation())) - return false; + if (!getGlossaryDocumentTranslation() + .equals(other.getGlossaryDocumentTranslation())) return false; } - if (!getModel().equals(other.getModel())) return false; + if (!getModel() + .equals(other.getModel())) return false; if (hasGlossaryConfig() != other.hasGlossaryConfig()) return false; if (hasGlossaryConfig()) { - if (!getGlossaryConfig().equals(other.getGlossaryConfig())) return false; + if (!getGlossaryConfig() + .equals(other.getGlossaryConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -490,127 +421,117 @@ public int hashCode() { } public static com.google.cloud.translate.v3beta1.TranslateDocumentResponse 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.cloud.translate.v3beta1.TranslateDocumentResponse 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.cloud.translate.v3beta1.TranslateDocumentResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.TranslateDocumentResponse 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.cloud.translate.v3beta1.TranslateDocumentResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.TranslateDocumentResponse 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.cloud.translate.v3beta1.TranslateDocumentResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.TranslateDocumentResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.TranslateDocumentResponse 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.cloud.translate.v3beta1.TranslateDocumentResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.TranslateDocumentResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.TranslateDocumentResponse 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.cloud.translate.v3beta1.TranslateDocumentResponse 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.cloud.translate.v3beta1.TranslateDocumentResponse 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.cloud.translate.v3beta1.TranslateDocumentResponse prototype) { + public static Builder newBuilder(com.google.cloud.translate.v3beta1.TranslateDocumentResponse 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 translated document response message.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.TranslateDocumentResponse} */ - 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.translation.v3beta1.TranslateDocumentResponse) com.google.cloud.translate.v3beta1.TranslateDocumentResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_TranslateDocumentResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateDocumentResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_TranslateDocumentResponse_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateDocumentResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.TranslateDocumentResponse.class, - com.google.cloud.translate.v3beta1.TranslateDocumentResponse.Builder.class); + com.google.cloud.translate.v3beta1.TranslateDocumentResponse.class, com.google.cloud.translate.v3beta1.TranslateDocumentResponse.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.TranslateDocumentResponse.newBuilder() @@ -618,15 +539,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -654,14 +576,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_TranslateDocumentResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateDocumentResponse_descriptor; } @java.lang.Override - public com.google.cloud.translate.v3beta1.TranslateDocumentResponse - getDefaultInstanceForType() { + public com.google.cloud.translate.v3beta1.TranslateDocumentResponse getDefaultInstanceForType() { return com.google.cloud.translate.v3beta1.TranslateDocumentResponse.getDefaultInstance(); } @@ -676,8 +597,7 @@ public com.google.cloud.translate.v3beta1.TranslateDocumentResponse build() { @java.lang.Override public com.google.cloud.translate.v3beta1.TranslateDocumentResponse buildPartial() { - com.google.cloud.translate.v3beta1.TranslateDocumentResponse result = - new com.google.cloud.translate.v3beta1.TranslateDocumentResponse(this); + com.google.cloud.translate.v3beta1.TranslateDocumentResponse result = new com.google.cloud.translate.v3beta1.TranslateDocumentResponse(this); if (documentTranslationBuilder_ == null) { result.documentTranslation_ = documentTranslation_; } else { @@ -702,39 +622,38 @@ public com.google.cloud.translate.v3beta1.TranslateDocumentResponse 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.cloud.translate.v3beta1.TranslateDocumentResponse) { - return mergeFrom((com.google.cloud.translate.v3beta1.TranslateDocumentResponse) other); + return mergeFrom((com.google.cloud.translate.v3beta1.TranslateDocumentResponse)other); } else { super.mergeFrom(other); return this; @@ -742,9 +661,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.TranslateDocumentResponse other) { - if (other - == com.google.cloud.translate.v3beta1.TranslateDocumentResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3beta1.TranslateDocumentResponse.getDefaultInstance()) return this; if (other.hasDocumentTranslation()) { mergeDocumentTranslation(other.getDocumentTranslation()); } @@ -777,8 +694,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.translate.v3beta1.TranslateDocumentResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.translate.v3beta1.TranslateDocumentResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -790,55 +706,41 @@ public Builder mergeFrom( private com.google.cloud.translate.v3beta1.DocumentTranslation documentTranslation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.DocumentTranslation, - com.google.cloud.translate.v3beta1.DocumentTranslation.Builder, - com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder> - documentTranslationBuilder_; + com.google.cloud.translate.v3beta1.DocumentTranslation, com.google.cloud.translate.v3beta1.DocumentTranslation.Builder, com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder> documentTranslationBuilder_; /** - * - * *
      * Translated document.
      * 
* * .google.cloud.translation.v3beta1.DocumentTranslation document_translation = 1; - * * @return Whether the documentTranslation field is set. */ public boolean hasDocumentTranslation() { return documentTranslationBuilder_ != null || documentTranslation_ != null; } /** - * - * *
      * Translated document.
      * 
* * .google.cloud.translation.v3beta1.DocumentTranslation document_translation = 1; - * * @return The documentTranslation. */ public com.google.cloud.translate.v3beta1.DocumentTranslation getDocumentTranslation() { if (documentTranslationBuilder_ == null) { - return documentTranslation_ == null - ? com.google.cloud.translate.v3beta1.DocumentTranslation.getDefaultInstance() - : documentTranslation_; + return documentTranslation_ == null ? com.google.cloud.translate.v3beta1.DocumentTranslation.getDefaultInstance() : documentTranslation_; } else { return documentTranslationBuilder_.getMessage(); } } /** - * - * *
      * Translated document.
      * 
* * .google.cloud.translation.v3beta1.DocumentTranslation document_translation = 1; */ - public Builder setDocumentTranslation( - com.google.cloud.translate.v3beta1.DocumentTranslation value) { + public Builder setDocumentTranslation(com.google.cloud.translate.v3beta1.DocumentTranslation value) { if (documentTranslationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -852,8 +754,6 @@ public Builder setDocumentTranslation( return this; } /** - * - * *
      * Translated document.
      * 
@@ -872,23 +772,17 @@ public Builder setDocumentTranslation( return this; } /** - * - * *
      * Translated document.
      * 
* * .google.cloud.translation.v3beta1.DocumentTranslation document_translation = 1; */ - public Builder mergeDocumentTranslation( - com.google.cloud.translate.v3beta1.DocumentTranslation value) { + public Builder mergeDocumentTranslation(com.google.cloud.translate.v3beta1.DocumentTranslation value) { if (documentTranslationBuilder_ == null) { if (documentTranslation_ != null) { documentTranslation_ = - com.google.cloud.translate.v3beta1.DocumentTranslation.newBuilder( - documentTranslation_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.translate.v3beta1.DocumentTranslation.newBuilder(documentTranslation_).mergeFrom(value).buildPartial(); } else { documentTranslation_ = value; } @@ -900,8 +794,6 @@ public Builder mergeDocumentTranslation( return this; } /** - * - * *
      * Translated document.
      * 
@@ -920,42 +812,33 @@ public Builder clearDocumentTranslation() { return this; } /** - * - * *
      * Translated document.
      * 
* * .google.cloud.translation.v3beta1.DocumentTranslation document_translation = 1; */ - public com.google.cloud.translate.v3beta1.DocumentTranslation.Builder - getDocumentTranslationBuilder() { - + public com.google.cloud.translate.v3beta1.DocumentTranslation.Builder getDocumentTranslationBuilder() { + onChanged(); return getDocumentTranslationFieldBuilder().getBuilder(); } /** - * - * *
      * Translated document.
      * 
* * .google.cloud.translation.v3beta1.DocumentTranslation document_translation = 1; */ - public com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder - getDocumentTranslationOrBuilder() { + public com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder getDocumentTranslationOrBuilder() { if (documentTranslationBuilder_ != null) { return documentTranslationBuilder_.getMessageOrBuilder(); } else { - return documentTranslation_ == null - ? com.google.cloud.translate.v3beta1.DocumentTranslation.getDefaultInstance() - : documentTranslation_; + return documentTranslation_ == null ? + com.google.cloud.translate.v3beta1.DocumentTranslation.getDefaultInstance() : documentTranslation_; } } /** - * - * *
      * Translated document.
      * 
@@ -963,17 +846,14 @@ public Builder clearDocumentTranslation() { * .google.cloud.translation.v3beta1.DocumentTranslation document_translation = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.DocumentTranslation, - com.google.cloud.translate.v3beta1.DocumentTranslation.Builder, - com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder> + com.google.cloud.translate.v3beta1.DocumentTranslation, com.google.cloud.translate.v3beta1.DocumentTranslation.Builder, com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder> getDocumentTranslationFieldBuilder() { if (documentTranslationBuilder_ == null) { - documentTranslationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.DocumentTranslation, - com.google.cloud.translate.v3beta1.DocumentTranslation.Builder, - com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder>( - getDocumentTranslation(), getParentForChildren(), isClean()); + documentTranslationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3beta1.DocumentTranslation, com.google.cloud.translate.v3beta1.DocumentTranslation.Builder, com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder>( + getDocumentTranslation(), + getParentForChildren(), + isClean()); documentTranslation_ = null; } return documentTranslationBuilder_; @@ -981,67 +861,47 @@ public Builder clearDocumentTranslation() { private com.google.cloud.translate.v3beta1.DocumentTranslation glossaryDocumentTranslation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.DocumentTranslation, - com.google.cloud.translate.v3beta1.DocumentTranslation.Builder, - com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder> - glossaryDocumentTranslationBuilder_; + com.google.cloud.translate.v3beta1.DocumentTranslation, com.google.cloud.translate.v3beta1.DocumentTranslation.Builder, com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder> glossaryDocumentTranslationBuilder_; /** - * - * *
      * The document's translation output if a glossary is provided in the request.
      * This can be the same as [TranslateDocumentResponse.document_translation]
      * if no glossary terms apply.
      * 
* - * - * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; - * - * + * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; * @return Whether the glossaryDocumentTranslation field is set. */ public boolean hasGlossaryDocumentTranslation() { return glossaryDocumentTranslationBuilder_ != null || glossaryDocumentTranslation_ != null; } /** - * - * *
      * The document's translation output if a glossary is provided in the request.
      * This can be the same as [TranslateDocumentResponse.document_translation]
      * if no glossary terms apply.
      * 
* - * - * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; - * - * + * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; * @return The glossaryDocumentTranslation. */ public com.google.cloud.translate.v3beta1.DocumentTranslation getGlossaryDocumentTranslation() { if (glossaryDocumentTranslationBuilder_ == null) { - return glossaryDocumentTranslation_ == null - ? com.google.cloud.translate.v3beta1.DocumentTranslation.getDefaultInstance() - : glossaryDocumentTranslation_; + return glossaryDocumentTranslation_ == null ? com.google.cloud.translate.v3beta1.DocumentTranslation.getDefaultInstance() : glossaryDocumentTranslation_; } else { return glossaryDocumentTranslationBuilder_.getMessage(); } } /** - * - * *
      * The document's translation output if a glossary is provided in the request.
      * This can be the same as [TranslateDocumentResponse.document_translation]
      * if no glossary terms apply.
      * 
* - * - * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; - * + * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; */ - public Builder setGlossaryDocumentTranslation( - com.google.cloud.translate.v3beta1.DocumentTranslation value) { + public Builder setGlossaryDocumentTranslation(com.google.cloud.translate.v3beta1.DocumentTranslation value) { if (glossaryDocumentTranslationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1055,17 +915,13 @@ public Builder setGlossaryDocumentTranslation( return this; } /** - * - * *
      * The document's translation output if a glossary is provided in the request.
      * This can be the same as [TranslateDocumentResponse.document_translation]
      * if no glossary terms apply.
      * 
* - * - * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; - * + * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; */ public Builder setGlossaryDocumentTranslation( com.google.cloud.translate.v3beta1.DocumentTranslation.Builder builderForValue) { @@ -1079,27 +935,19 @@ public Builder setGlossaryDocumentTranslation( return this; } /** - * - * *
      * The document's translation output if a glossary is provided in the request.
      * This can be the same as [TranslateDocumentResponse.document_translation]
      * if no glossary terms apply.
      * 
* - * - * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; - * + * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; */ - public Builder mergeGlossaryDocumentTranslation( - com.google.cloud.translate.v3beta1.DocumentTranslation value) { + public Builder mergeGlossaryDocumentTranslation(com.google.cloud.translate.v3beta1.DocumentTranslation value) { if (glossaryDocumentTranslationBuilder_ == null) { if (glossaryDocumentTranslation_ != null) { glossaryDocumentTranslation_ = - com.google.cloud.translate.v3beta1.DocumentTranslation.newBuilder( - glossaryDocumentTranslation_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.translate.v3beta1.DocumentTranslation.newBuilder(glossaryDocumentTranslation_).mergeFrom(value).buildPartial(); } else { glossaryDocumentTranslation_ = value; } @@ -1111,17 +959,13 @@ public Builder mergeGlossaryDocumentTranslation( return this; } /** - * - * *
      * The document's translation output if a glossary is provided in the request.
      * This can be the same as [TranslateDocumentResponse.document_translation]
      * if no glossary terms apply.
      * 
* - * - * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; - * + * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; */ public Builder clearGlossaryDocumentTranslation() { if (glossaryDocumentTranslationBuilder_ == null) { @@ -1135,72 +979,54 @@ public Builder clearGlossaryDocumentTranslation() { return this; } /** - * - * *
      * The document's translation output if a glossary is provided in the request.
      * This can be the same as [TranslateDocumentResponse.document_translation]
      * if no glossary terms apply.
      * 
* - * - * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; - * + * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; */ - public com.google.cloud.translate.v3beta1.DocumentTranslation.Builder - getGlossaryDocumentTranslationBuilder() { - + public com.google.cloud.translate.v3beta1.DocumentTranslation.Builder getGlossaryDocumentTranslationBuilder() { + onChanged(); return getGlossaryDocumentTranslationFieldBuilder().getBuilder(); } /** - * - * *
      * The document's translation output if a glossary is provided in the request.
      * This can be the same as [TranslateDocumentResponse.document_translation]
      * if no glossary terms apply.
      * 
* - * - * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; - * + * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; */ - public com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder - getGlossaryDocumentTranslationOrBuilder() { + public com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder getGlossaryDocumentTranslationOrBuilder() { if (glossaryDocumentTranslationBuilder_ != null) { return glossaryDocumentTranslationBuilder_.getMessageOrBuilder(); } else { - return glossaryDocumentTranslation_ == null - ? com.google.cloud.translate.v3beta1.DocumentTranslation.getDefaultInstance() - : glossaryDocumentTranslation_; + return glossaryDocumentTranslation_ == null ? + com.google.cloud.translate.v3beta1.DocumentTranslation.getDefaultInstance() : glossaryDocumentTranslation_; } } /** - * - * *
      * The document's translation output if a glossary is provided in the request.
      * This can be the same as [TranslateDocumentResponse.document_translation]
      * if no glossary terms apply.
      * 
* - * - * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; - * + * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.DocumentTranslation, - com.google.cloud.translate.v3beta1.DocumentTranslation.Builder, - com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder> + com.google.cloud.translate.v3beta1.DocumentTranslation, com.google.cloud.translate.v3beta1.DocumentTranslation.Builder, com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder> getGlossaryDocumentTranslationFieldBuilder() { if (glossaryDocumentTranslationBuilder_ == null) { - glossaryDocumentTranslationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.DocumentTranslation, - com.google.cloud.translate.v3beta1.DocumentTranslation.Builder, - com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder>( - getGlossaryDocumentTranslation(), getParentForChildren(), isClean()); + glossaryDocumentTranslationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3beta1.DocumentTranslation, com.google.cloud.translate.v3beta1.DocumentTranslation.Builder, com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder>( + getGlossaryDocumentTranslation(), + getParentForChildren(), + isClean()); glossaryDocumentTranslation_ = null; } return glossaryDocumentTranslationBuilder_; @@ -1208,8 +1034,6 @@ public Builder clearGlossaryDocumentTranslation() { private java.lang.Object model_ = ""; /** - * - * *
      * Only present when 'model' is present in the request.
      * 'model' is normalized to have a project number.
@@ -1221,13 +1045,13 @@ public Builder clearGlossaryDocumentTranslation() {
      * 
* * string model = 3; - * * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; 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(); model_ = s; return s; @@ -1236,8 +1060,6 @@ public java.lang.String getModel() { } } /** - * - * *
      * Only present when 'model' is present in the request.
      * 'model' is normalized to have a project number.
@@ -1249,14 +1071,15 @@ public java.lang.String getModel() {
      * 
* * string model = 3; - * * @return The bytes for model. */ - public com.google.protobuf.ByteString getModelBytes() { + public com.google.protobuf.ByteString + getModelBytes() { java.lang.Object ref = model_; 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); model_ = b; return b; } else { @@ -1264,8 +1087,6 @@ public com.google.protobuf.ByteString getModelBytes() { } } /** - * - * *
      * Only present when 'model' is present in the request.
      * 'model' is normalized to have a project number.
@@ -1277,22 +1098,20 @@ public com.google.protobuf.ByteString getModelBytes() {
      * 
* * string model = 3; - * * @param value The model to set. * @return This builder for chaining. */ - public Builder setModel(java.lang.String value) { + public Builder setModel( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + model_ = value; onChanged(); return this; } /** - * - * *
      * Only present when 'model' is present in the request.
      * 'model' is normalized to have a project number.
@@ -1304,18 +1123,15 @@ public Builder setModel(java.lang.String value) {
      * 
* * string model = 3; - * * @return This builder for chaining. */ public Builder clearModel() { - + model_ = getDefaultInstance().getModel(); onChanged(); return this; } /** - * - * *
      * Only present when 'model' is present in the request.
      * 'model' is normalized to have a project number.
@@ -1327,16 +1143,16 @@ public Builder clearModel() {
      * 
* * string model = 3; - * * @param value The bytes for model to set. * @return This builder for chaining. */ - public Builder setModelBytes(com.google.protobuf.ByteString value) { + public Builder setModelBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + model_ = value; onChanged(); return this; @@ -1344,58 +1160,41 @@ public Builder setModelBytes(com.google.protobuf.ByteString value) { private com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig glossaryConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder> - glossaryConfigBuilder_; + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder> glossaryConfigBuilder_; /** - * - * *
      * The `glossary_config` used for this translation.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; - * - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; * @return Whether the glossaryConfig field is set. */ public boolean hasGlossaryConfig() { return glossaryConfigBuilder_ != null || glossaryConfig_ != null; } /** - * - * *
      * The `glossary_config` used for this translation.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; - * - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; * @return The glossaryConfig. */ public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossaryConfig() { if (glossaryConfigBuilder_ == null) { - return glossaryConfig_ == null - ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() - : glossaryConfig_; + return glossaryConfig_ == null ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; } else { return glossaryConfigBuilder_.getMessage(); } } /** - * - * *
      * The `glossary_config` used for this translation.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; */ - public Builder setGlossaryConfig( - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig value) { + public Builder setGlossaryConfig(com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig value) { if (glossaryConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1409,14 +1208,11 @@ public Builder setGlossaryConfig( return this; } /** - * - * *
      * The `glossary_config` used for this translation.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; */ public Builder setGlossaryConfig( com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder builderForValue) { @@ -1430,24 +1226,17 @@ public Builder setGlossaryConfig( return this; } /** - * - * *
      * The `glossary_config` used for this translation.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; */ - public Builder mergeGlossaryConfig( - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig value) { + public Builder mergeGlossaryConfig(com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig value) { if (glossaryConfigBuilder_ == null) { if (glossaryConfig_ != null) { glossaryConfig_ = - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.newBuilder( - glossaryConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.newBuilder(glossaryConfig_).mergeFrom(value).buildPartial(); } else { glossaryConfig_ = value; } @@ -1459,14 +1248,11 @@ public Builder mergeGlossaryConfig( return this; } /** - * - * *
      * The `glossary_config` used for this translation.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; */ public Builder clearGlossaryConfig() { if (glossaryConfigBuilder_ == null) { @@ -1480,70 +1266,55 @@ public Builder clearGlossaryConfig() { return this; } /** - * - * *
      * The `glossary_config` used for this translation.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; */ - public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder - getGlossaryConfigBuilder() { - + public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder getGlossaryConfigBuilder() { + onChanged(); return getGlossaryConfigFieldBuilder().getBuilder(); } /** - * - * *
      * The `glossary_config` used for this translation.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; */ - public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder - getGlossaryConfigOrBuilder() { + public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder getGlossaryConfigOrBuilder() { if (glossaryConfigBuilder_ != null) { return glossaryConfigBuilder_.getMessageOrBuilder(); } else { - return glossaryConfig_ == null - ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() - : glossaryConfig_; + return glossaryConfig_ == null ? + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; } } /** - * - * *
      * The `glossary_config` used for this translation.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder> + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder> getGlossaryConfigFieldBuilder() { if (glossaryConfigBuilder_ == null) { - glossaryConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder>( - getGlossaryConfig(), getParentForChildren(), isClean()); + glossaryConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder>( + getGlossaryConfig(), + getParentForChildren(), + isClean()); glossaryConfig_ = null; } return glossaryConfigBuilder_; } - @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); } @@ -1553,13 +1324,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.TranslateDocumentResponse) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.TranslateDocumentResponse) - private static final com.google.cloud.translate.v3beta1.TranslateDocumentResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.translate.v3beta1.TranslateDocumentResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.TranslateDocumentResponse(); } @@ -1568,16 +1338,16 @@ public static com.google.cloud.translate.v3beta1.TranslateDocumentResponse getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TranslateDocumentResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TranslateDocumentResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TranslateDocumentResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TranslateDocumentResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1592,4 +1362,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.translate.v3beta1.TranslateDocumentResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentResponseOrBuilder.java b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentResponseOrBuilder.java similarity index 79% rename from proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentResponseOrBuilder.java rename to owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentResponseOrBuilder.java index d16d44e2..126c7cec 100644 --- a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentResponseOrBuilder.java +++ b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentResponseOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 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/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; -public interface TranslateDocumentResponseOrBuilder - extends +public interface TranslateDocumentResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.TranslateDocumentResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Translated document.
    * 
* * .google.cloud.translation.v3beta1.DocumentTranslation document_translation = 1; - * * @return Whether the documentTranslation field is set. */ boolean hasDocumentTranslation(); /** - * - * *
    * Translated document.
    * 
* * .google.cloud.translation.v3beta1.DocumentTranslation document_translation = 1; - * * @return The documentTranslation. */ com.google.cloud.translate.v3beta1.DocumentTranslation getDocumentTranslation(); /** - * - * *
    * Translated document.
    * 
@@ -59,53 +35,39 @@ public interface TranslateDocumentResponseOrBuilder com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder getDocumentTranslationOrBuilder(); /** - * - * *
    * The document's translation output if a glossary is provided in the request.
    * This can be the same as [TranslateDocumentResponse.document_translation]
    * if no glossary terms apply.
    * 
* - * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; - * - * + * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; * @return Whether the glossaryDocumentTranslation field is set. */ boolean hasGlossaryDocumentTranslation(); /** - * - * *
    * The document's translation output if a glossary is provided in the request.
    * This can be the same as [TranslateDocumentResponse.document_translation]
    * if no glossary terms apply.
    * 
* - * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; - * - * + * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; * @return The glossaryDocumentTranslation. */ com.google.cloud.translate.v3beta1.DocumentTranslation getGlossaryDocumentTranslation(); /** - * - * *
    * The document's translation output if a glossary is provided in the request.
    * This can be the same as [TranslateDocumentResponse.document_translation]
    * if no glossary terms apply.
    * 
* - * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; - * + * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; */ - com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder - getGlossaryDocumentTranslationOrBuilder(); + com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder getGlossaryDocumentTranslationOrBuilder(); /** - * - * *
    * Only present when 'model' is present in the request.
    * 'model' is normalized to have a project number.
@@ -117,13 +79,10 @@ public interface TranslateDocumentResponseOrBuilder
    * 
* * string model = 3; - * * @return The model. */ java.lang.String getModel(); /** - * - * *
    * Only present when 'model' is present in the request.
    * 'model' is normalized to have a project number.
@@ -135,44 +94,35 @@ public interface TranslateDocumentResponseOrBuilder
    * 
* * string model = 3; - * * @return The bytes for model. */ - com.google.protobuf.ByteString getModelBytes(); + com.google.protobuf.ByteString + getModelBytes(); /** - * - * *
    * The `glossary_config` used for this translation.
    * 
* * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; - * * @return Whether the glossaryConfig field is set. */ boolean hasGlossaryConfig(); /** - * - * *
    * The `glossary_config` used for this translation.
    * 
* * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; - * * @return The glossaryConfig. */ com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossaryConfig(); /** - * - * *
    * The `glossary_config` used for this translation.
    * 
* * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; */ - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder - getGlossaryConfigOrBuilder(); + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder getGlossaryConfigOrBuilder(); } diff --git a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextGlossaryConfig.java b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextGlossaryConfig.java similarity index 69% rename from proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextGlossaryConfig.java rename to owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextGlossaryConfig.java index 5c1e954f..9ded7a1b 100644 --- a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextGlossaryConfig.java +++ b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextGlossaryConfig.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 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/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; /** - * - * *
  * Configures which glossary should be used for a specific target language,
  * and defines options for applying that glossary.
@@ -28,31 +11,31 @@
  *
  * Protobuf type {@code google.cloud.translation.v3beta1.TranslateTextGlossaryConfig}
  */
-public final class TranslateTextGlossaryConfig extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class TranslateTextGlossaryConfig extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.TranslateTextGlossaryConfig)
     TranslateTextGlossaryConfigOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use TranslateTextGlossaryConfig.newBuilder() to construct.
   private TranslateTextGlossaryConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private TranslateTextGlossaryConfig() {
     glossary_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new TranslateTextGlossaryConfig();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private TranslateTextGlossaryConfig(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -71,64 +54,58 @@ private TranslateTextGlossaryConfig(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              glossary_ = s;
-              break;
-            }
-          case 16:
-            {
-              ignoreCase_ = input.readBool();
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            glossary_ = s;
+            break;
+          }
+          case 16: {
+
+            ignoreCase_ = input.readBool();
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.translate.v3beta1.TranslationServiceProto
-        .internal_static_google_cloud_translation_v3beta1_TranslateTextGlossaryConfig_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateTextGlossaryConfig_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.translate.v3beta1.TranslationServiceProto
-        .internal_static_google_cloud_translation_v3beta1_TranslateTextGlossaryConfig_fieldAccessorTable
+    return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateTextGlossaryConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.class,
-            com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder.class);
+            com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.class, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder.class);
   }
 
   public static final int GLOSSARY_FIELD_NUMBER = 1;
   private volatile java.lang.Object glossary_;
   /**
-   *
-   *
    * 
    * Required. Specifies the glossary used for this translation. Use
    * this format: projects/*/locations/*/glossaries/*
    * 
* * string glossary = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The glossary. */ @java.lang.Override @@ -137,30 +114,30 @@ public java.lang.String getGlossary() { 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(); glossary_ = s; return s; } } /** - * - * *
    * Required. Specifies the glossary used for this translation. Use
    * this format: projects/*/locations/*/glossaries/*
    * 
* * string glossary = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for glossary. */ @java.lang.Override - public com.google.protobuf.ByteString getGlossaryBytes() { + public com.google.protobuf.ByteString + getGlossaryBytes() { java.lang.Object ref = glossary_; 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); glossary_ = b; return b; } else { @@ -171,15 +148,12 @@ public com.google.protobuf.ByteString getGlossaryBytes() { public static final int IGNORE_CASE_FIELD_NUMBER = 2; private boolean ignoreCase_; /** - * - * *
    * Optional. Indicates match is case-insensitive.
    * Default value is false if missing.
    * 
* * bool ignore_case = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The ignoreCase. */ @java.lang.Override @@ -188,7 +162,6 @@ public boolean getIgnoreCase() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -200,8 +173,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getGlossaryBytes().isEmpty()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(glossary_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, glossary_); } if (ignoreCase_ != false) { @@ -216,11 +190,12 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getGlossaryBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(glossary_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, glossary_); } if (ignoreCase_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, ignoreCase_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, ignoreCase_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -230,16 +205,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.cloud.translate.v3beta1.TranslateTextGlossaryConfig)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig other = - (com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig) obj; + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig other = (com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig) obj; - if (!getGlossary().equals(other.getGlossary())) return false; - if (getIgnoreCase() != other.getIgnoreCase()) return false; + if (!getGlossary() + .equals(other.getGlossary())) return false; + if (getIgnoreCase() + != other.getIgnoreCase()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -254,111 +230,104 @@ public int hashCode() { hash = (37 * hash) + GLOSSARY_FIELD_NUMBER; hash = (53 * hash) + getGlossary().hashCode(); hash = (37 * hash) + IGNORE_CASE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIgnoreCase()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIgnoreCase()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig 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.cloud.translate.v3beta1.TranslateTextGlossaryConfig 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.cloud.translate.v3beta1.TranslateTextGlossaryConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig 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.cloud.translate.v3beta1.TranslateTextGlossaryConfig parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig 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.cloud.translate.v3beta1.TranslateTextGlossaryConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig 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.cloud.translate.v3beta1.TranslateTextGlossaryConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig 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.cloud.translate.v3beta1.TranslateTextGlossaryConfig 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.cloud.translate.v3beta1.TranslateTextGlossaryConfig 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.cloud.translate.v3beta1.TranslateTextGlossaryConfig prototype) { + public static Builder newBuilder(com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig 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; } /** - * - * *
    * Configures which glossary should be used for a specific target language,
    * and defines options for applying that glossary.
@@ -366,23 +335,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.translation.v3beta1.TranslateTextGlossaryConfig}
    */
-  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.translation.v3beta1.TranslateTextGlossaryConfig)
       com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3beta1_TranslateTextGlossaryConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateTextGlossaryConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3beta1_TranslateTextGlossaryConfig_fieldAccessorTable
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateTextGlossaryConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.class,
-              com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder.class);
+              com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.class, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.newBuilder()
@@ -390,15 +357,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -410,14 +378,13 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3beta1_TranslateTextGlossaryConfig_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateTextGlossaryConfig_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig
-        getDefaultInstanceForType() {
+    public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getDefaultInstanceForType() {
       return com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance();
     }
 
@@ -432,8 +399,7 @@ public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig build() {
 
     @java.lang.Override
     public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig buildPartial() {
-      com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig result =
-          new com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig(this);
+      com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig result = new com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig(this);
       result.glossary_ = glossary_;
       result.ignoreCase_ = ignoreCase_;
       onBuilt();
@@ -444,39 +410,38 @@ public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig buildParti
     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.cloud.translate.v3beta1.TranslateTextGlossaryConfig) {
-        return mergeFrom((com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig) other);
+        return mergeFrom((com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -484,9 +449,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig other) {
-      if (other
-          == com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance()) return this;
       if (!other.getGlossary().isEmpty()) {
         glossary_ = other.glossary_;
         onChanged();
@@ -513,9 +476,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig)
-                e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -527,21 +488,19 @@ public Builder mergeFrom(
 
     private java.lang.Object glossary_ = "";
     /**
-     *
-     *
      * 
      * Required. Specifies the glossary used for this translation. Use
      * this format: projects/*/locations/*/glossaries/*
      * 
* * string glossary = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The glossary. */ public java.lang.String getGlossary() { java.lang.Object ref = glossary_; 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(); glossary_ = s; return s; @@ -550,22 +509,21 @@ public java.lang.String getGlossary() { } } /** - * - * *
      * Required. Specifies the glossary used for this translation. Use
      * this format: projects/*/locations/*/glossaries/*
      * 
* * string glossary = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for glossary. */ - public com.google.protobuf.ByteString getGlossaryBytes() { + public com.google.protobuf.ByteString + getGlossaryBytes() { java.lang.Object ref = glossary_; 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); glossary_ = b; return b; } else { @@ -573,80 +531,70 @@ public com.google.protobuf.ByteString getGlossaryBytes() { } } /** - * - * *
      * Required. Specifies the glossary used for this translation. Use
      * this format: projects/*/locations/*/glossaries/*
      * 
* * string glossary = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The glossary to set. * @return This builder for chaining. */ - public Builder setGlossary(java.lang.String value) { + public Builder setGlossary( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + glossary_ = value; onChanged(); return this; } /** - * - * *
      * Required. Specifies the glossary used for this translation. Use
      * this format: projects/*/locations/*/glossaries/*
      * 
* * string glossary = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearGlossary() { - + glossary_ = getDefaultInstance().getGlossary(); onChanged(); return this; } /** - * - * *
      * Required. Specifies the glossary used for this translation. Use
      * this format: projects/*/locations/*/glossaries/*
      * 
* * string glossary = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for glossary to set. * @return This builder for chaining. */ - public Builder setGlossaryBytes(com.google.protobuf.ByteString value) { + public Builder setGlossaryBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + glossary_ = value; onChanged(); return this; } - private boolean ignoreCase_; + private boolean ignoreCase_ ; /** - * - * *
      * Optional. Indicates match is case-insensitive.
      * Default value is false if missing.
      * 
* * bool ignore_case = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The ignoreCase. */ @java.lang.Override @@ -654,45 +602,39 @@ public boolean getIgnoreCase() { return ignoreCase_; } /** - * - * *
      * Optional. Indicates match is case-insensitive.
      * Default value is false if missing.
      * 
* * bool ignore_case = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The ignoreCase to set. * @return This builder for chaining. */ public Builder setIgnoreCase(boolean value) { - + ignoreCase_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Indicates match is case-insensitive.
      * Default value is false if missing.
      * 
* * bool ignore_case = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearIgnoreCase() { - + ignoreCase_ = false; 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,32 +644,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.TranslateTextGlossaryConfig) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.TranslateTextGlossaryConfig) - private static final com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig - DEFAULT_INSTANCE; - + private static final com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig(); } - public static com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig - getDefaultInstance() { + public static com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TranslateTextGlossaryConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TranslateTextGlossaryConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TranslateTextGlossaryConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TranslateTextGlossaryConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -739,8 +679,9 @@ public com.google.protobuf.Parser getParserForType( } @java.lang.Override - public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig - getDefaultInstanceForType() { + public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextGlossaryConfigOrBuilder.java b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextGlossaryConfigOrBuilder.java similarity index 61% rename from proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextGlossaryConfigOrBuilder.java rename to owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextGlossaryConfigOrBuilder.java index 3a4c8b1d..e89e7805 100644 --- a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextGlossaryConfigOrBuilder.java +++ b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextGlossaryConfigOrBuilder.java @@ -1,65 +1,41 @@ -/* - * Copyright 2020 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/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; -public interface TranslateTextGlossaryConfigOrBuilder - extends +public interface TranslateTextGlossaryConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.TranslateTextGlossaryConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Specifies the glossary used for this translation. Use
    * this format: projects/*/locations/*/glossaries/*
    * 
* * string glossary = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The glossary. */ java.lang.String getGlossary(); /** - * - * *
    * Required. Specifies the glossary used for this translation. Use
    * this format: projects/*/locations/*/glossaries/*
    * 
* * string glossary = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for glossary. */ - com.google.protobuf.ByteString getGlossaryBytes(); + com.google.protobuf.ByteString + getGlossaryBytes(); /** - * - * *
    * Optional. Indicates match is case-insensitive.
    * Default value is false if missing.
    * 
* * bool ignore_case = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The ignoreCase. */ boolean getIgnoreCase(); diff --git a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextRequest.java b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextRequest.java similarity index 72% rename from proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextRequest.java rename to owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextRequest.java index c4422246..fd4732dc 100644 --- a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextRequest.java +++ b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 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/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; /** - * - * *
  * The request message for synchronous translation.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.TranslateTextRequest} */ -public final class TranslateTextRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class TranslateTextRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.TranslateTextRequest) TranslateTextRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use TranslateTextRequest.newBuilder() to construct. private TranslateTextRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TranslateTextRequest() { contents_ = com.google.protobuf.LazyStringArrayList.EMPTY; mimeType_ = ""; @@ -48,15 +30,16 @@ private TranslateTextRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TranslateTextRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private TranslateTextRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -76,95 +59,85 @@ private TranslateTextRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - contents_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - contents_.add(s); - break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + contents_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + contents_.add(s); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - mimeType_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + mimeType_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); - sourceLanguageCode_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); + sourceLanguageCode_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); - targetLanguageCode_ = s; - break; - } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); + targetLanguageCode_ = s; + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); - model_ = s; - break; + model_ = s; + break; + } + case 58: { + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder subBuilder = null; + if (glossaryConfig_ != null) { + subBuilder = glossaryConfig_.toBuilder(); } - case 58: - { - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder subBuilder = - null; - if (glossaryConfig_ != null) { - subBuilder = glossaryConfig_.toBuilder(); - } - glossaryConfig_ = - input.readMessage( - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(glossaryConfig_); - glossaryConfig_ = subBuilder.buildPartial(); - } - - break; + glossaryConfig_ = input.readMessage(com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(glossaryConfig_); + glossaryConfig_ = subBuilder.buildPartial(); } - case 66: - { - java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 82: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - labels_ = - com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000002; - } - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); - break; + break; + } + case 66: { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 82: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000002; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put( + labels__.getKey(), labels__.getValue()); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { contents_ = contents_.getUnmodifiableView(); @@ -173,38 +146,34 @@ private TranslateTextRequest( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_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 10: 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.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.TranslateTextRequest.class, - com.google.cloud.translate.v3beta1.TranslateTextRequest.Builder.class); + com.google.cloud.translate.v3beta1.TranslateTextRequest.class, com.google.cloud.translate.v3beta1.TranslateTextRequest.Builder.class); } public static final int CONTENTS_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList contents_; /** - * - * *
    * Required. The content of the input in string format.
    * We recommend the total content be less than 30k codepoints. The max length
@@ -213,15 +182,13 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
    * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return A list containing the contents. */ - public com.google.protobuf.ProtocolStringList getContentsList() { + public com.google.protobuf.ProtocolStringList + getContentsList() { return contents_; } /** - * - * *
    * Required. The content of the input in string format.
    * We recommend the total content be less than 30k codepoints. The max length
@@ -230,15 +197,12 @@ public com.google.protobuf.ProtocolStringList getContentsList() {
    * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The count of contents. */ public int getContentsCount() { return contents_.size(); } /** - * - * *
    * Required. The content of the input in string format.
    * We recommend the total content be less than 30k codepoints. The max length
@@ -247,7 +211,6 @@ public int getContentsCount() {
    * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the element to return. * @return The contents at the given index. */ @@ -255,8 +218,6 @@ public java.lang.String getContents(int index) { return contents_.get(index); } /** - * - * *
    * Required. The content of the input in string format.
    * We recommend the total content be less than 30k codepoints. The max length
@@ -265,26 +226,23 @@ public java.lang.String getContents(int index) {
    * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the value to return. * @return The bytes of the contents at the given index. */ - public com.google.protobuf.ByteString getContentsBytes(int index) { + public com.google.protobuf.ByteString + getContentsBytes(int index) { return contents_.getByteString(index); } public static final int MIME_TYPE_FIELD_NUMBER = 3; private volatile java.lang.Object mimeType_; /** - * - * *
    * Optional. The format of the source text, for example, "text/html",
    *  "text/plain". If left blank, the MIME type defaults to "text/html".
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The mimeType. */ @java.lang.Override @@ -293,30 +251,30 @@ public java.lang.String getMimeType() { 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(); mimeType_ = s; return s; } } /** - * - * *
    * Optional. The format of the source text, for example, "text/html",
    *  "text/plain". If left blank, the MIME type defaults to "text/html".
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for mimeType. */ @java.lang.Override - public com.google.protobuf.ByteString getMimeTypeBytes() { + public com.google.protobuf.ByteString + getMimeTypeBytes() { java.lang.Object ref = mimeType_; 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); mimeType_ = b; return b; } else { @@ -327,8 +285,6 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { public static final int SOURCE_LANGUAGE_CODE_FIELD_NUMBER = 4; private volatile java.lang.Object sourceLanguageCode_; /** - * - * *
    * Optional. The BCP-47 language code of the input text if
    * known, for example, "en-US" or "sr-Latn". Supported language codes are
@@ -338,7 +294,6 @@ public com.google.protobuf.ByteString getMimeTypeBytes() {
    * 
* * string source_language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The sourceLanguageCode. */ @java.lang.Override @@ -347,15 +302,14 @@ public java.lang.String getSourceLanguageCode() { 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(); sourceLanguageCode_ = s; return s; } } /** - * - * *
    * Optional. The BCP-47 language code of the input text if
    * known, for example, "en-US" or "sr-Latn". Supported language codes are
@@ -365,15 +319,16 @@ public java.lang.String getSourceLanguageCode() {
    * 
* * string source_language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for sourceLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { + public com.google.protobuf.ByteString + getSourceLanguageCodeBytes() { java.lang.Object ref = sourceLanguageCode_; 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); sourceLanguageCode_ = b; return b; } else { @@ -384,15 +339,12 @@ public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { public static final int TARGET_LANGUAGE_CODE_FIELD_NUMBER = 5; private volatile java.lang.Object targetLanguageCode_; /** - * - * *
    * Required. The BCP-47 language code to use for translation of the input
    * text, set to one of the language codes listed in Language Support.
    * 
* * string target_language_code = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The targetLanguageCode. */ @java.lang.Override @@ -401,30 +353,30 @@ public java.lang.String getTargetLanguageCode() { 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(); targetLanguageCode_ = s; return s; } } /** - * - * *
    * Required. The BCP-47 language code to use for translation of the input
    * text, set to one of the language codes listed in Language Support.
    * 
* * string target_language_code = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for targetLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { + public com.google.protobuf.ByteString + getTargetLanguageCodeBytes() { java.lang.Object ref = targetLanguageCode_; 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); targetLanguageCode_ = b; return b; } else { @@ -435,8 +387,6 @@ public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { public static final int PARENT_FIELD_NUMBER = 8; private volatile java.lang.Object parent_; /** - * - * *
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -450,10 +400,7 @@ public com.google.protobuf.ByteString getTargetLanguageCodeBytes() {
    * location-id), otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -462,15 +409,14 @@ 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. Project or location to make a call. Must refer to a caller's
    * project.
@@ -484,18 +430,17 @@ public java.lang.String getParent() {
    * location-id), otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 8 [(.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 { @@ -506,8 +451,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int MODEL_FIELD_NUMBER = 6; private volatile java.lang.Object model_; /** - * - * *
    * Optional. The `model` type requested for this translation.
    * The format depends on model type:
@@ -522,7 +465,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The model. */ @java.lang.Override @@ -531,15 +473,14 @@ public java.lang.String getModel() { 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(); model_ = s; return s; } } /** - * - * *
    * Optional. The `model` type requested for this translation.
    * The format depends on model type:
@@ -554,15 +495,16 @@ public java.lang.String getModel() {
    * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for model. */ @java.lang.Override - public com.google.protobuf.ByteString getModelBytes() { + public com.google.protobuf.ByteString + getModelBytes() { java.lang.Object ref = model_; 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); model_ = b; return b; } else { @@ -573,18 +515,13 @@ public com.google.protobuf.ByteString getModelBytes() { public static final int GLOSSARY_CONFIG_FIELD_NUMBER = 7; private com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig glossaryConfig_; /** - * - * *
    * Optional. Glossary to be applied. The glossary must be
    * within the same region (have the same location-id) as the model, otherwise
    * an INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the glossaryConfig field is set. */ @java.lang.Override @@ -592,63 +529,52 @@ public boolean hasGlossaryConfig() { return glossaryConfig_ != null; } /** - * - * *
    * Optional. Glossary to be applied. The glossary must be
    * within the same region (have the same location-id) as the model, otherwise
    * an INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The glossaryConfig. */ @java.lang.Override public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossaryConfig() { - return glossaryConfig_ == null - ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() - : glossaryConfig_; + return glossaryConfig_ == null ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; } /** - * - * *
    * Optional. Glossary to be applied. The glossary must be
    * within the same region (have the same location-id) as the model, otherwise
    * an INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder - getGlossaryConfigOrBuilder() { + public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder getGlossaryConfigOrBuilder() { return getGlossaryConfig(); } public static final int LABELS_FIELD_NUMBER = 10; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_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.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - - 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_; } @@ -657,8 +583,6 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Optional. The labels with user-defined metadata for the request.
    * Label keys and values can be no longer than 63 characters
@@ -670,22 +594,22 @@ public int getLabelsCount() {
    *
    * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
    */
+
   @java.lang.Override
-  public boolean containsLabels(java.lang.String key) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
+  public boolean containsLabels(
+      java.lang.String key) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
     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. The labels with user-defined metadata for the request.
    * Label keys and values can be no longer than 63 characters
@@ -698,12 +622,11 @@ public java.util.Map getLabels() {
    * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
+
   public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    * Label keys and values can be no longer than 63 characters
@@ -716,16 +639,16 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
-    java.util.Map map = internalGetLabels().getMap();
+
+  public java.lang.String getLabelsOrDefault(
+      java.lang.String key,
+      java.lang.String defaultValue) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    * Label keys and values can be no longer than 63 characters
@@ -738,11 +661,12 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin
    * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
-    java.util.Map map = internalGetLabels().getMap();
+
+  public java.lang.String getLabelsOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -750,7 +674,6 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -762,30 +685,35 @@ 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 < contents_.size(); i++) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, contents_.getRaw(i));
     }
-    if (!getMimeTypeBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mimeType_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 3, mimeType_);
     }
-    if (!getSourceLanguageCodeBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceLanguageCode_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 4, sourceLanguageCode_);
     }
-    if (!getTargetLanguageCodeBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetLanguageCode_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 5, targetLanguageCode_);
     }
-    if (!getModelBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(model_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 6, model_);
     }
     if (glossaryConfig_ != null) {
       output.writeMessage(7, getGlossaryConfig());
     }
-    if (!getParentBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 8, parent_);
     }
-    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
-        output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 10);
+    com.google.protobuf.GeneratedMessageV3
+      .serializeStringMapTo(
+        output,
+        internalGetLabels(),
+        LabelsDefaultEntryHolder.defaultEntry,
+        10);
     unknownFields.writeTo(output);
   }
 
@@ -803,33 +731,34 @@ public int getSerializedSize() {
       size += dataSize;
       size += 1 * getContentsList().size();
     }
-    if (!getMimeTypeBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mimeType_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, mimeType_);
     }
-    if (!getSourceLanguageCodeBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceLanguageCode_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, sourceLanguageCode_);
     }
-    if (!getTargetLanguageCodeBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetLanguageCode_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, targetLanguageCode_);
     }
-    if (!getModelBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(model_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, model_);
     }
     if (glossaryConfig_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getGlossaryConfig());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(7, getGlossaryConfig());
     }
-    if (!getParentBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, parent_);
     }
-    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(10, labels__);
+    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(10, labels__);
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -839,25 +768,32 @@ 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.cloud.translate.v3beta1.TranslateTextRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3beta1.TranslateTextRequest other =
-        (com.google.cloud.translate.v3beta1.TranslateTextRequest) obj;
-
-    if (!getContentsList().equals(other.getContentsList())) return false;
-    if (!getMimeType().equals(other.getMimeType())) return false;
-    if (!getSourceLanguageCode().equals(other.getSourceLanguageCode())) return false;
-    if (!getTargetLanguageCode().equals(other.getTargetLanguageCode())) return false;
-    if (!getParent().equals(other.getParent())) return false;
-    if (!getModel().equals(other.getModel())) return false;
+    com.google.cloud.translate.v3beta1.TranslateTextRequest other = (com.google.cloud.translate.v3beta1.TranslateTextRequest) obj;
+
+    if (!getContentsList()
+        .equals(other.getContentsList())) return false;
+    if (!getMimeType()
+        .equals(other.getMimeType())) return false;
+    if (!getSourceLanguageCode()
+        .equals(other.getSourceLanguageCode())) return false;
+    if (!getTargetLanguageCode()
+        .equals(other.getTargetLanguageCode())) return false;
+    if (!getParent()
+        .equals(other.getParent())) return false;
+    if (!getModel()
+        .equals(other.getModel())) return false;
     if (hasGlossaryConfig() != other.hasGlossaryConfig()) return false;
     if (hasGlossaryConfig()) {
-      if (!getGlossaryConfig().equals(other.getGlossaryConfig())) return false;
+      if (!getGlossaryConfig()
+          .equals(other.getGlossaryConfig())) return false;
     }
-    if (!internalGetLabels().equals(other.internalGetLabels())) return false;
+    if (!internalGetLabels().equals(
+        other.internalGetLabels())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -897,147 +833,139 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3beta1.TranslateTextRequest 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.cloud.translate.v3beta1.TranslateTextRequest 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.cloud.translate.v3beta1.TranslateTextRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3beta1.TranslateTextRequest 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.cloud.translate.v3beta1.TranslateTextRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3beta1.TranslateTextRequest 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.cloud.translate.v3beta1.TranslateTextRequest parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3beta1.TranslateTextRequest parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3beta1.TranslateTextRequest 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.cloud.translate.v3beta1.TranslateTextRequest parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3beta1.TranslateTextRequest parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3beta1.TranslateTextRequest 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.cloud.translate.v3beta1.TranslateTextRequest 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.cloud.translate.v3beta1.TranslateTextRequest 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.cloud.translate.v3beta1.TranslateTextRequest prototype) {
+  public static Builder newBuilder(com.google.cloud.translate.v3beta1.TranslateTextRequest 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 for synchronous translation.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.TranslateTextRequest} */ - 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.translation.v3beta1.TranslateTextRequest) com.google.cloud.translate.v3beta1.TranslateTextRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 10: 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 10: 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.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.TranslateTextRequest.class, - com.google.cloud.translate.v3beta1.TranslateTextRequest.Builder.class); + com.google.cloud.translate.v3beta1.TranslateTextRequest.class, com.google.cloud.translate.v3beta1.TranslateTextRequest.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.TranslateTextRequest.newBuilder() @@ -1045,15 +973,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1080,9 +1009,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_descriptor; } @java.lang.Override @@ -1101,8 +1030,7 @@ public com.google.cloud.translate.v3beta1.TranslateTextRequest build() { @java.lang.Override public com.google.cloud.translate.v3beta1.TranslateTextRequest buildPartial() { - com.google.cloud.translate.v3beta1.TranslateTextRequest result = - new com.google.cloud.translate.v3beta1.TranslateTextRequest(this); + com.google.cloud.translate.v3beta1.TranslateTextRequest result = new com.google.cloud.translate.v3beta1.TranslateTextRequest(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { contents_ = contents_.getUnmodifiableView(); @@ -1129,39 +1057,38 @@ public com.google.cloud.translate.v3beta1.TranslateTextRequest 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.cloud.translate.v3beta1.TranslateTextRequest) { - return mergeFrom((com.google.cloud.translate.v3beta1.TranslateTextRequest) other); + return mergeFrom((com.google.cloud.translate.v3beta1.TranslateTextRequest)other); } else { super.mergeFrom(other); return this; @@ -1169,8 +1096,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.TranslateTextRequest other) { - if (other == com.google.cloud.translate.v3beta1.TranslateTextRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3beta1.TranslateTextRequest.getDefaultInstance()) return this; if (!other.contents_.isEmpty()) { if (contents_.isEmpty()) { contents_ = other.contents_; @@ -1204,7 +1130,8 @@ public Builder mergeFrom(com.google.cloud.translate.v3beta1.TranslateTextRequest if (other.hasGlossaryConfig()) { mergeGlossaryConfig(other.getGlossaryConfig()); } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -1224,8 +1151,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.translate.v3beta1.TranslateTextRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.translate.v3beta1.TranslateTextRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1234,21 +1160,16 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private com.google.protobuf.LazyStringList contents_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList contents_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureContentsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { contents_ = new com.google.protobuf.LazyStringArrayList(contents_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * Required. The content of the input in string format.
      * We recommend the total content be less than 30k codepoints. The max length
@@ -1257,15 +1178,13 @@ private void ensureContentsIsMutable() {
      * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return A list containing the contents. */ - public com.google.protobuf.ProtocolStringList getContentsList() { + public com.google.protobuf.ProtocolStringList + getContentsList() { return contents_.getUnmodifiableView(); } /** - * - * *
      * Required. The content of the input in string format.
      * We recommend the total content be less than 30k codepoints. The max length
@@ -1274,15 +1193,12 @@ public com.google.protobuf.ProtocolStringList getContentsList() {
      * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The count of contents. */ public int getContentsCount() { return contents_.size(); } /** - * - * *
      * Required. The content of the input in string format.
      * We recommend the total content be less than 30k codepoints. The max length
@@ -1291,7 +1207,6 @@ public int getContentsCount() {
      * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the element to return. * @return The contents at the given index. */ @@ -1299,8 +1214,6 @@ public java.lang.String getContents(int index) { return contents_.get(index); } /** - * - * *
      * Required. The content of the input in string format.
      * We recommend the total content be less than 30k codepoints. The max length
@@ -1309,16 +1222,14 @@ public java.lang.String getContents(int index) {
      * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the value to return. * @return The bytes of the contents at the given index. */ - public com.google.protobuf.ByteString getContentsBytes(int index) { + public com.google.protobuf.ByteString + getContentsBytes(int index) { return contents_.getByteString(index); } /** - * - * *
      * Required. The content of the input in string format.
      * We recommend the total content be less than 30k codepoints. The max length
@@ -1327,23 +1238,21 @@ public com.google.protobuf.ByteString getContentsBytes(int index) {
      * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index to set the value at. * @param value The contents to set. * @return This builder for chaining. */ - public Builder setContents(int index, java.lang.String value) { + public Builder setContents( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureContentsIsMutable(); + throw new NullPointerException(); + } + ensureContentsIsMutable(); contents_.set(index, value); onChanged(); return this; } /** - * - * *
      * Required. The content of the input in string format.
      * We recommend the total content be less than 30k codepoints. The max length
@@ -1352,22 +1261,20 @@ public Builder setContents(int index, java.lang.String value) {
      * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The contents to add. * @return This builder for chaining. */ - public Builder addContents(java.lang.String value) { + public Builder addContents( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureContentsIsMutable(); + throw new NullPointerException(); + } + ensureContentsIsMutable(); contents_.add(value); onChanged(); return this; } /** - * - * *
      * Required. The content of the input in string format.
      * We recommend the total content be less than 30k codepoints. The max length
@@ -1376,19 +1283,18 @@ public Builder addContents(java.lang.String value) {
      * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param values The contents to add. * @return This builder for chaining. */ - public Builder addAllContents(java.lang.Iterable values) { + public Builder addAllContents( + java.lang.Iterable values) { ensureContentsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, contents_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, contents_); onChanged(); return this; } /** - * - * *
      * Required. The content of the input in string format.
      * We recommend the total content be less than 30k codepoints. The max length
@@ -1397,7 +1303,6 @@ public Builder addAllContents(java.lang.Iterable values) {
      * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearContents() { @@ -1407,8 +1312,6 @@ public Builder clearContents() { return this; } /** - * - * *
      * Required. The content of the input in string format.
      * We recommend the total content be less than 30k codepoints. The max length
@@ -1417,15 +1320,15 @@ public Builder clearContents() {
      * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes of the contents to add. * @return This builder for chaining. */ - public Builder addContentsBytes(com.google.protobuf.ByteString value) { + public Builder addContentsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureContentsIsMutable(); contents_.add(value); onChanged(); @@ -1434,21 +1337,19 @@ public Builder addContentsBytes(com.google.protobuf.ByteString value) { private java.lang.Object mimeType_ = ""; /** - * - * *
      * Optional. The format of the source text, for example, "text/html",
      *  "text/plain". If left blank, the MIME type defaults to "text/html".
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The mimeType. */ public java.lang.String getMimeType() { java.lang.Object ref = mimeType_; 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(); mimeType_ = s; return s; @@ -1457,22 +1358,21 @@ public java.lang.String getMimeType() { } } /** - * - * *
      * Optional. The format of the source text, for example, "text/html",
      *  "text/plain". If left blank, the MIME type defaults to "text/html".
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for mimeType. */ - public com.google.protobuf.ByteString getMimeTypeBytes() { + public com.google.protobuf.ByteString + getMimeTypeBytes() { java.lang.Object ref = mimeType_; 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); mimeType_ = b; return b; } else { @@ -1480,64 +1380,57 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { } } /** - * - * *
      * Optional. The format of the source text, for example, "text/html",
      *  "text/plain". If left blank, the MIME type defaults to "text/html".
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The mimeType to set. * @return This builder for chaining. */ - public Builder setMimeType(java.lang.String value) { + public Builder setMimeType( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + mimeType_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The format of the source text, for example, "text/html",
      *  "text/plain". If left blank, the MIME type defaults to "text/html".
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearMimeType() { - + mimeType_ = getDefaultInstance().getMimeType(); onChanged(); return this; } /** - * - * *
      * Optional. The format of the source text, for example, "text/html",
      *  "text/plain". If left blank, the MIME type defaults to "text/html".
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for mimeType to set. * @return This builder for chaining. */ - public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { + public Builder setMimeTypeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mimeType_ = value; onChanged(); return this; @@ -1545,8 +1438,6 @@ public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { private java.lang.Object sourceLanguageCode_ = ""; /** - * - * *
      * Optional. The BCP-47 language code of the input text if
      * known, for example, "en-US" or "sr-Latn". Supported language codes are
@@ -1556,13 +1447,13 @@ public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) {
      * 
* * string source_language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The sourceLanguageCode. */ public java.lang.String getSourceLanguageCode() { java.lang.Object ref = sourceLanguageCode_; 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(); sourceLanguageCode_ = s; return s; @@ -1571,8 +1462,6 @@ public java.lang.String getSourceLanguageCode() { } } /** - * - * *
      * Optional. The BCP-47 language code of the input text if
      * known, for example, "en-US" or "sr-Latn". Supported language codes are
@@ -1582,14 +1471,15 @@ public java.lang.String getSourceLanguageCode() {
      * 
* * string source_language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for sourceLanguageCode. */ - public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { + public com.google.protobuf.ByteString + getSourceLanguageCodeBytes() { java.lang.Object ref = sourceLanguageCode_; 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); sourceLanguageCode_ = b; return b; } else { @@ -1597,8 +1487,6 @@ public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { } } /** - * - * *
      * Optional. The BCP-47 language code of the input text if
      * known, for example, "en-US" or "sr-Latn". Supported language codes are
@@ -1608,22 +1496,20 @@ public com.google.protobuf.ByteString getSourceLanguageCodeBytes() {
      * 
* * string source_language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCode(java.lang.String value) { + public Builder setSourceLanguageCode( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + sourceLanguageCode_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The BCP-47 language code of the input text if
      * known, for example, "en-US" or "sr-Latn". Supported language codes are
@@ -1633,18 +1519,15 @@ public Builder setSourceLanguageCode(java.lang.String value) {
      * 
* * string source_language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearSourceLanguageCode() { - + sourceLanguageCode_ = getDefaultInstance().getSourceLanguageCode(); onChanged(); return this; } /** - * - * *
      * Optional. The BCP-47 language code of the input text if
      * known, for example, "en-US" or "sr-Latn". Supported language codes are
@@ -1654,16 +1537,16 @@ public Builder clearSourceLanguageCode() {
      * 
* * string source_language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCodeBytes(com.google.protobuf.ByteString value) { + public Builder setSourceLanguageCodeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceLanguageCode_ = value; onChanged(); return this; @@ -1671,21 +1554,19 @@ public Builder setSourceLanguageCodeBytes(com.google.protobuf.ByteString value) private java.lang.Object targetLanguageCode_ = ""; /** - * - * *
      * Required. The BCP-47 language code to use for translation of the input
      * text, set to one of the language codes listed in Language Support.
      * 
* * string target_language_code = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The targetLanguageCode. */ public java.lang.String getTargetLanguageCode() { java.lang.Object ref = targetLanguageCode_; 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(); targetLanguageCode_ = s; return s; @@ -1694,22 +1575,21 @@ public java.lang.String getTargetLanguageCode() { } } /** - * - * *
      * Required. The BCP-47 language code to use for translation of the input
      * text, set to one of the language codes listed in Language Support.
      * 
* * string target_language_code = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for targetLanguageCode. */ - public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { + public com.google.protobuf.ByteString + getTargetLanguageCodeBytes() { java.lang.Object ref = targetLanguageCode_; 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); targetLanguageCode_ = b; return b; } else { @@ -1717,64 +1597,57 @@ public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { } } /** - * - * *
      * Required. The BCP-47 language code to use for translation of the input
      * text, set to one of the language codes listed in Language Support.
      * 
* * string target_language_code = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The targetLanguageCode to set. * @return This builder for chaining. */ - public Builder setTargetLanguageCode(java.lang.String value) { + public Builder setTargetLanguageCode( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + targetLanguageCode_ = value; onChanged(); return this; } /** - * - * *
      * Required. The BCP-47 language code to use for translation of the input
      * text, set to one of the language codes listed in Language Support.
      * 
* * string target_language_code = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearTargetLanguageCode() { - + targetLanguageCode_ = getDefaultInstance().getTargetLanguageCode(); onChanged(); return this; } /** - * - * *
      * Required. The BCP-47 language code to use for translation of the input
      * text, set to one of the language codes listed in Language Support.
      * 
* * string target_language_code = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for targetLanguageCode to set. * @return This builder for chaining. */ - public Builder setTargetLanguageCodeBytes(com.google.protobuf.ByteString value) { + public Builder setTargetLanguageCodeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + targetLanguageCode_ = value; onChanged(); return this; @@ -1782,8 +1655,6 @@ public Builder setTargetLanguageCodeBytes(com.google.protobuf.ByteString value) private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -1797,16 +1668,14 @@ public Builder setTargetLanguageCodeBytes(com.google.protobuf.ByteString value)
      * location-id), otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 8 [(.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; @@ -1815,8 +1684,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -1830,17 +1697,16 @@ public java.lang.String getParent() {
      * location-id), otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 8 [(.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 { @@ -1848,8 +1714,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -1863,25 +1727,21 @@ public com.google.protobuf.ByteString getParentBytes() {
      * location-id), otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 8 [(.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) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -1895,21 +1755,16 @@ public Builder setParent(java.lang.String value) {
      * location-id), otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -1923,19 +1778,17 @@ public Builder clearParent() {
      * location-id), otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 8 [(.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) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -1943,8 +1796,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object model_ = ""; /** - * - * *
      * Optional. The `model` type requested for this translation.
      * The format depends on model type:
@@ -1959,13 +1810,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; 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(); model_ = s; return s; @@ -1974,8 +1825,6 @@ public java.lang.String getModel() { } } /** - * - * *
      * Optional. The `model` type requested for this translation.
      * The format depends on model type:
@@ -1990,14 +1839,15 @@ public java.lang.String getModel() {
      * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for model. */ - public com.google.protobuf.ByteString getModelBytes() { + public com.google.protobuf.ByteString + getModelBytes() { java.lang.Object ref = model_; 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); model_ = b; return b; } else { @@ -2005,8 +1855,6 @@ public com.google.protobuf.ByteString getModelBytes() { } } /** - * - * *
      * Optional. The `model` type requested for this translation.
      * The format depends on model type:
@@ -2021,22 +1869,20 @@ public com.google.protobuf.ByteString getModelBytes() {
      * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The model to set. * @return This builder for chaining. */ - public Builder setModel(java.lang.String value) { + public Builder setModel( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + model_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The `model` type requested for this translation.
      * The format depends on model type:
@@ -2051,18 +1897,15 @@ public Builder setModel(java.lang.String value) {
      * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearModel() { - + model_ = getDefaultInstance().getModel(); onChanged(); return this; } /** - * - * *
      * Optional. The `model` type requested for this translation.
      * The format depends on model type:
@@ -2077,16 +1920,16 @@ public Builder clearModel() {
      * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for model to set. * @return This builder for chaining. */ - public Builder setModelBytes(com.google.protobuf.ByteString value) { + public Builder setModelBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + model_ = value; onChanged(); return this; @@ -2094,67 +1937,47 @@ public Builder setModelBytes(com.google.protobuf.ByteString value) { private com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig glossaryConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder> - glossaryConfigBuilder_; + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder> glossaryConfigBuilder_; /** - * - * *
      * Optional. Glossary to be applied. The glossary must be
      * within the same region (have the same location-id) as the model, otherwise
      * an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the glossaryConfig field is set. */ public boolean hasGlossaryConfig() { return glossaryConfigBuilder_ != null || glossaryConfig_ != null; } /** - * - * *
      * Optional. Glossary to be applied. The glossary must be
      * within the same region (have the same location-id) as the model, otherwise
      * an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The glossaryConfig. */ public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossaryConfig() { if (glossaryConfigBuilder_ == null) { - return glossaryConfig_ == null - ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() - : glossaryConfig_; + return glossaryConfig_ == null ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; } else { return glossaryConfigBuilder_.getMessage(); } } /** - * - * *
      * Optional. Glossary to be applied. The glossary must be
      * within the same region (have the same location-id) as the model, otherwise
      * an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setGlossaryConfig( - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig value) { + public Builder setGlossaryConfig(com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig value) { if (glossaryConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2168,17 +1991,13 @@ public Builder setGlossaryConfig( return this; } /** - * - * *
      * Optional. Glossary to be applied. The glossary must be
      * within the same region (have the same location-id) as the model, otherwise
      * an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setGlossaryConfig( com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder builderForValue) { @@ -2192,27 +2011,19 @@ public Builder setGlossaryConfig( return this; } /** - * - * *
      * Optional. Glossary to be applied. The glossary must be
      * within the same region (have the same location-id) as the model, otherwise
      * an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergeGlossaryConfig( - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig value) { + public Builder mergeGlossaryConfig(com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig value) { if (glossaryConfigBuilder_ == null) { if (glossaryConfig_ != null) { glossaryConfig_ = - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.newBuilder( - glossaryConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.newBuilder(glossaryConfig_).mergeFrom(value).buildPartial(); } else { glossaryConfig_ = value; } @@ -2224,17 +2035,13 @@ public Builder mergeGlossaryConfig( return this; } /** - * - * *
      * Optional. Glossary to be applied. The glossary must be
      * within the same region (have the same location-id) as the model, otherwise
      * an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearGlossaryConfig() { if (glossaryConfigBuilder_ == null) { @@ -2248,92 +2055,75 @@ public Builder clearGlossaryConfig() { return this; } /** - * - * *
      * Optional. Glossary to be applied. The glossary must be
      * within the same region (have the same location-id) as the model, otherwise
      * an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder - getGlossaryConfigBuilder() { - + public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder getGlossaryConfigBuilder() { + onChanged(); return getGlossaryConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Glossary to be applied. The glossary must be
      * within the same region (have the same location-id) as the model, otherwise
      * an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder - getGlossaryConfigOrBuilder() { + public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder getGlossaryConfigOrBuilder() { if (glossaryConfigBuilder_ != null) { return glossaryConfigBuilder_.getMessageOrBuilder(); } else { - return glossaryConfig_ == null - ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() - : glossaryConfig_; + return glossaryConfig_ == null ? + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; } } /** - * - * *
      * Optional. Glossary to be applied. The glossary must be
      * within the same region (have the same location-id) as the model, otherwise
      * an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder> + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder> getGlossaryConfigFieldBuilder() { if (glossaryConfigBuilder_ == null) { - glossaryConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder>( - getGlossaryConfig(), getParentForChildren(), isClean()); + glossaryConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder>( + getGlossaryConfig(), + getParentForChildren(), + isClean()); glossaryConfig_ = null; } return glossaryConfigBuilder_; } - 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() { - onChanged(); - ; + internalGetMutableLabels() { + onChanged();; 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(); @@ -2345,8 +2135,6 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Optional. The labels with user-defined metadata for the request.
      * Label keys and values can be no longer than 63 characters
@@ -2358,22 +2146,22 @@ public int getLabelsCount() {
      *
      * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
      */
+
     @java.lang.Override
-    public boolean containsLabels(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
+    public boolean containsLabels(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
       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. The labels with user-defined metadata for the request.
      * Label keys and values can be no longer than 63 characters
@@ -2386,12 +2174,11 @@ public java.util.Map getLabels() {
      * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
+
     public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      * Label keys and values can be no longer than 63 characters
@@ -2404,17 +2191,16 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
+
     public java.lang.String getLabelsOrDefault(
-        java.lang.String key, java.lang.String defaultValue) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      java.util.Map map = internalGetLabels().getMap();
+        java.lang.String key,
+        java.lang.String defaultValue) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      * Label keys and values can be no longer than 63 characters
@@ -2427,11 +2213,12 @@ public java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public java.lang.String getLabelsOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      java.util.Map map = internalGetLabels().getMap();
+
+    public java.lang.String getLabelsOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -2439,12 +2226,11 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
     }
 
     public Builder clearLabels() {
-      internalGetMutableLabels().getMutableMap().clear();
+      internalGetMutableLabels().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      * Label keys and values can be no longer than 63 characters
@@ -2456,21 +2242,23 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder removeLabels(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      internalGetMutableLabels().getMutableMap().remove(key);
+
+    public Builder removeLabels(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      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() {
       return internalGetMutableLabels().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      * Label keys and values can be no longer than 63 characters
@@ -2482,19 +2270,16 @@ public java.util.Map getMutableLabels() {
      *
      * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putLabels(java.lang.String key, java.lang.String value) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      if (value == null) {
-        throw new java.lang.NullPointerException();
-      }
-      internalGetMutableLabels().getMutableMap().put(key, value);
+    public Builder putLabels(
+        java.lang.String key,
+        java.lang.String value) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      if (value == null) { throw new java.lang.NullPointerException(); }
+      internalGetMutableLabels().getMutableMap()
+          .put(key, value);
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      * Label keys and values can be no longer than 63 characters
@@ -2506,13 +2291,16 @@ public Builder putLabels(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> labels = 10 [(.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);
       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);
     }
 
@@ -2522,12 +2310,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.TranslateTextRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.TranslateTextRequest)
   private static final com.google.cloud.translate.v3beta1.TranslateTextRequest DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.TranslateTextRequest();
   }
@@ -2536,16 +2324,16 @@ public static com.google.cloud.translate.v3beta1.TranslateTextRequest getDefault
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public TranslateTextRequest parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new TranslateTextRequest(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public TranslateTextRequest parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new TranslateTextRequest(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2560,4 +2348,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3beta1.TranslateTextRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextRequestOrBuilder.java b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextRequestOrBuilder.java
similarity index 81%
rename from proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextRequestOrBuilder.java
rename to owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextRequestOrBuilder.java
index 0d83a8e2..f1ff5710 100644
--- a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextRequestOrBuilder.java
+++ b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextRequestOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2020 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/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
-public interface TranslateTextRequestOrBuilder
-    extends
+public interface TranslateTextRequestOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.TranslateTextRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. The content of the input in string format.
    * We recommend the total content be less than 30k codepoints. The max length
@@ -34,13 +16,11 @@ public interface TranslateTextRequestOrBuilder
    * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return A list containing the contents. */ - java.util.List getContentsList(); + java.util.List + getContentsList(); /** - * - * *
    * Required. The content of the input in string format.
    * We recommend the total content be less than 30k codepoints. The max length
@@ -49,13 +29,10 @@ public interface TranslateTextRequestOrBuilder
    * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The count of contents. */ int getContentsCount(); /** - * - * *
    * Required. The content of the input in string format.
    * We recommend the total content be less than 30k codepoints. The max length
@@ -64,14 +41,11 @@ public interface TranslateTextRequestOrBuilder
    * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the element to return. * @return The contents at the given index. */ java.lang.String getContents(int index); /** - * - * *
    * Required. The content of the input in string format.
    * We recommend the total content be less than 30k codepoints. The max length
@@ -80,42 +54,35 @@ public interface TranslateTextRequestOrBuilder
    * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the value to return. * @return The bytes of the contents at the given index. */ - com.google.protobuf.ByteString getContentsBytes(int index); + com.google.protobuf.ByteString + getContentsBytes(int index); /** - * - * *
    * Optional. The format of the source text, for example, "text/html",
    *  "text/plain". If left blank, the MIME type defaults to "text/html".
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The mimeType. */ java.lang.String getMimeType(); /** - * - * *
    * Optional. The format of the source text, for example, "text/html",
    *  "text/plain". If left blank, the MIME type defaults to "text/html".
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for mimeType. */ - com.google.protobuf.ByteString getMimeTypeBytes(); + com.google.protobuf.ByteString + getMimeTypeBytes(); /** - * - * *
    * Optional. The BCP-47 language code of the input text if
    * known, for example, "en-US" or "sr-Latn". Supported language codes are
@@ -125,13 +92,10 @@ public interface TranslateTextRequestOrBuilder
    * 
* * string source_language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The sourceLanguageCode. */ java.lang.String getSourceLanguageCode(); /** - * - * *
    * Optional. The BCP-47 language code of the input text if
    * known, for example, "en-US" or "sr-Latn". Supported language codes are
@@ -141,41 +105,34 @@ public interface TranslateTextRequestOrBuilder
    * 
* * string source_language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for sourceLanguageCode. */ - com.google.protobuf.ByteString getSourceLanguageCodeBytes(); + com.google.protobuf.ByteString + getSourceLanguageCodeBytes(); /** - * - * *
    * Required. The BCP-47 language code to use for translation of the input
    * text, set to one of the language codes listed in Language Support.
    * 
* * string target_language_code = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The targetLanguageCode. */ java.lang.String getTargetLanguageCode(); /** - * - * *
    * Required. The BCP-47 language code to use for translation of the input
    * text, set to one of the language codes listed in Language Support.
    * 
* * string target_language_code = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for targetLanguageCode. */ - com.google.protobuf.ByteString getTargetLanguageCodeBytes(); + com.google.protobuf.ByteString + getTargetLanguageCodeBytes(); /** - * - * *
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -189,16 +146,11 @@ public interface TranslateTextRequestOrBuilder
    * location-id), otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -212,17 +164,13 @@ public interface TranslateTextRequestOrBuilder
    * location-id), otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 8 [(.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 `model` type requested for this translation.
    * The format depends on model type:
@@ -237,13 +185,10 @@ public interface TranslateTextRequestOrBuilder
    * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The model. */ java.lang.String getModel(); /** - * - * *
    * Optional. The `model` type requested for this translation.
    * The format depends on model type:
@@ -258,62 +203,45 @@ public interface TranslateTextRequestOrBuilder
    * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for model. */ - com.google.protobuf.ByteString getModelBytes(); + com.google.protobuf.ByteString + getModelBytes(); /** - * - * *
    * Optional. Glossary to be applied. The glossary must be
    * within the same region (have the same location-id) as the model, otherwise
    * an INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the glossaryConfig field is set. */ boolean hasGlossaryConfig(); /** - * - * *
    * Optional. Glossary to be applied. The glossary must be
    * within the same region (have the same location-id) as the model, otherwise
    * an INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The glossaryConfig. */ com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossaryConfig(); /** - * - * *
    * Optional. Glossary to be applied. The glossary must be
    * within the same region (have the same location-id) as the model, otherwise
    * an INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder - getGlossaryConfigOrBuilder(); + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder getGlossaryConfigOrBuilder(); /** - * - * *
    * Optional. The labels with user-defined metadata for the request.
    * Label keys and values can be no longer than 63 characters
@@ -327,8 +255,6 @@ public interface TranslateTextRequestOrBuilder
    */
   int getLabelsCount();
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    * Label keys and values can be no longer than 63 characters
@@ -340,13 +266,15 @@ public interface TranslateTextRequestOrBuilder
    *
    * map<string, string> labels = 10 [(.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. The labels with user-defined metadata for the request.
    * Label keys and values can be no longer than 63 characters
@@ -358,10 +286,9 @@ public interface TranslateTextRequestOrBuilder
    *
    * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.util.Map getLabelsMap();
+  java.util.Map
+  getLabelsMap();
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    * Label keys and values can be no longer than 63 characters
@@ -373,10 +300,11 @@ public interface TranslateTextRequestOrBuilder
    *
    * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue);
+
+  java.lang.String getLabelsOrDefault(
+      java.lang.String key,
+      java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    * Label keys and values can be no longer than 63 characters
@@ -388,5 +316,7 @@ public interface TranslateTextRequestOrBuilder
    *
    * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.lang.String getLabelsOrThrow(java.lang.String key);
+
+  java.lang.String getLabelsOrThrow(
+      java.lang.String key);
 }
diff --git a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextResponse.java b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextResponse.java
similarity index 79%
rename from proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextResponse.java
rename to owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextResponse.java
index b29a7191..6f36e5f5 100644
--- a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextResponse.java
+++ b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextResponse.java
@@ -1,34 +1,20 @@
-/*
- * Copyright 2020 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/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
-/** Protobuf type {@code google.cloud.translation.v3beta1.TranslateTextResponse} */
-public final class TranslateTextResponse extends com.google.protobuf.GeneratedMessageV3
-    implements
+/**
+ * Protobuf type {@code google.cloud.translation.v3beta1.TranslateTextResponse}
+ */
+public final class TranslateTextResponse extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.TranslateTextResponse)
     TranslateTextResponseOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use TranslateTextResponse.newBuilder() to construct.
   private TranslateTextResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private TranslateTextResponse() {
     translations_ = java.util.Collections.emptyList();
     glossaryTranslations_ = java.util.Collections.emptyList();
@@ -36,15 +22,16 @@ private TranslateTextResponse() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new TranslateTextResponse();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private TranslateTextResponse(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -64,43 +51,38 @@ private TranslateTextResponse(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                translations_ =
-                    new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              translations_.add(
-                  input.readMessage(
-                      com.google.cloud.translate.v3beta1.Translation.parser(), extensionRegistry));
-              break;
+          case 10: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              translations_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 26:
-            {
-              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-                glossaryTranslations_ =
-                    new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000002;
-              }
-              glossaryTranslations_.add(
-                  input.readMessage(
-                      com.google.cloud.translate.v3beta1.Translation.parser(), extensionRegistry));
-              break;
+            translations_.add(
+                input.readMessage(com.google.cloud.translate.v3beta1.Translation.parser(), extensionRegistry));
+            break;
+          }
+          case 26: {
+            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+              glossaryTranslations_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000002;
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            glossaryTranslations_.add(
+                input.readMessage(com.google.cloud.translate.v3beta1.Translation.parser(), extensionRegistry));
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         translations_ = java.util.Collections.unmodifiableList(translations_);
@@ -112,27 +94,22 @@ private TranslateTextResponse(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.translate.v3beta1.TranslationServiceProto
-        .internal_static_google_cloud_translation_v3beta1_TranslateTextResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateTextResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.translate.v3beta1.TranslationServiceProto
-        .internal_static_google_cloud_translation_v3beta1_TranslateTextResponse_fieldAccessorTable
+    return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateTextResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.translate.v3beta1.TranslateTextResponse.class,
-            com.google.cloud.translate.v3beta1.TranslateTextResponse.Builder.class);
+            com.google.cloud.translate.v3beta1.TranslateTextResponse.class, com.google.cloud.translate.v3beta1.TranslateTextResponse.Builder.class);
   }
 
   public static final int TRANSLATIONS_FIELD_NUMBER = 1;
   private java.util.List translations_;
   /**
-   *
-   *
    * 
    * Text translation responses with no glossary applied.
    * This field has the same length as
@@ -146,8 +123,6 @@ public java.util.List getTransla
     return translations_;
   }
   /**
-   *
-   *
    * 
    * Text translation responses with no glossary applied.
    * This field has the same length as
@@ -157,13 +132,11 @@ public java.util.List getTransla
    * repeated .google.cloud.translation.v3beta1.Translation translations = 1;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getTranslationsOrBuilderList() {
     return translations_;
   }
   /**
-   *
-   *
    * 
    * Text translation responses with no glossary applied.
    * This field has the same length as
@@ -177,8 +150,6 @@ public int getTranslationsCount() {
     return translations_.size();
   }
   /**
-   *
-   *
    * 
    * Text translation responses with no glossary applied.
    * This field has the same length as
@@ -192,8 +163,6 @@ public com.google.cloud.translate.v3beta1.Translation getTranslations(int index)
     return translations_.get(index);
   }
   /**
-   *
-   *
    * 
    * Text translation responses with no glossary applied.
    * This field has the same length as
@@ -211,8 +180,6 @@ public com.google.cloud.translate.v3beta1.TranslationOrBuilder getTranslationsOr
   public static final int GLOSSARY_TRANSLATIONS_FIELD_NUMBER = 3;
   private java.util.List glossaryTranslations_;
   /**
-   *
-   *
    * 
    * Text translation responses if a glossary is provided in the request.
    * This can be the same as
@@ -224,13 +191,10 @@ public com.google.cloud.translate.v3beta1.TranslationOrBuilder getTranslationsOr
    * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3;
    */
   @java.lang.Override
-  public java.util.List
-      getGlossaryTranslationsList() {
+  public java.util.List getGlossaryTranslationsList() {
     return glossaryTranslations_;
   }
   /**
-   *
-   *
    * 
    * Text translation responses if a glossary is provided in the request.
    * This can be the same as
@@ -242,13 +206,11 @@ public com.google.cloud.translate.v3beta1.TranslationOrBuilder getTranslationsOr
    * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getGlossaryTranslationsOrBuilderList() {
     return glossaryTranslations_;
   }
   /**
-   *
-   *
    * 
    * Text translation responses if a glossary is provided in the request.
    * This can be the same as
@@ -264,8 +226,6 @@ public int getGlossaryTranslationsCount() {
     return glossaryTranslations_.size();
   }
   /**
-   *
-   *
    * 
    * Text translation responses if a glossary is provided in the request.
    * This can be the same as
@@ -281,8 +241,6 @@ public com.google.cloud.translate.v3beta1.Translation getGlossaryTranslations(in
     return glossaryTranslations_.get(index);
   }
   /**
-   *
-   *
    * 
    * Text translation responses if a glossary is provided in the request.
    * This can be the same as
@@ -300,7 +258,6 @@ public com.google.cloud.translate.v3beta1.TranslationOrBuilder getGlossaryTransl
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -312,7 +269,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 < translations_.size(); i++) {
       output.writeMessage(1, translations_.get(i));
     }
@@ -329,11 +287,12 @@ public int getSerializedSize() {
 
     size = 0;
     for (int i = 0; i < translations_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, translations_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, translations_.get(i));
     }
     for (int i = 0; i < glossaryTranslations_.size(); i++) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(3, glossaryTranslations_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(3, glossaryTranslations_.get(i));
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -343,16 +302,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.cloud.translate.v3beta1.TranslateTextResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3beta1.TranslateTextResponse other =
-        (com.google.cloud.translate.v3beta1.TranslateTextResponse) obj;
+    com.google.cloud.translate.v3beta1.TranslateTextResponse other = (com.google.cloud.translate.v3beta1.TranslateTextResponse) obj;
 
-    if (!getTranslationsList().equals(other.getTranslationsList())) return false;
-    if (!getGlossaryTranslationsList().equals(other.getGlossaryTranslationsList())) return false;
+    if (!getTranslationsList()
+        .equals(other.getTranslationsList())) return false;
+    if (!getGlossaryTranslationsList()
+        .equals(other.getGlossaryTranslationsList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -378,119 +338,113 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3beta1.TranslateTextResponse 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.cloud.translate.v3beta1.TranslateTextResponse 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.cloud.translate.v3beta1.TranslateTextResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3beta1.TranslateTextResponse 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.cloud.translate.v3beta1.TranslateTextResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3beta1.TranslateTextResponse 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.cloud.translate.v3beta1.TranslateTextResponse parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3beta1.TranslateTextResponse parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3beta1.TranslateTextResponse 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.cloud.translate.v3beta1.TranslateTextResponse parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3beta1.TranslateTextResponse parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3beta1.TranslateTextResponse 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.cloud.translate.v3beta1.TranslateTextResponse 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.cloud.translate.v3beta1.TranslateTextResponse 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.cloud.translate.v3beta1.TranslateTextResponse prototype) {
+  public static Builder newBuilder(com.google.cloud.translate.v3beta1.TranslateTextResponse 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.translation.v3beta1.TranslateTextResponse} */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  /**
+   * Protobuf type {@code google.cloud.translation.v3beta1.TranslateTextResponse}
+   */
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.TranslateTextResponse)
       com.google.cloud.translate.v3beta1.TranslateTextResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3beta1_TranslateTextResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateTextResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3beta1_TranslateTextResponse_fieldAccessorTable
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateTextResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.translate.v3beta1.TranslateTextResponse.class,
-              com.google.cloud.translate.v3beta1.TranslateTextResponse.Builder.class);
+              com.google.cloud.translate.v3beta1.TranslateTextResponse.class, com.google.cloud.translate.v3beta1.TranslateTextResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.translate.v3beta1.TranslateTextResponse.newBuilder()
@@ -498,18 +452,18 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getTranslationsFieldBuilder();
         getGlossaryTranslationsFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -529,9 +483,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3beta1_TranslateTextResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateTextResponse_descriptor;
     }
 
     @java.lang.Override
@@ -550,8 +504,7 @@ public com.google.cloud.translate.v3beta1.TranslateTextResponse build() {
 
     @java.lang.Override
     public com.google.cloud.translate.v3beta1.TranslateTextResponse buildPartial() {
-      com.google.cloud.translate.v3beta1.TranslateTextResponse result =
-          new com.google.cloud.translate.v3beta1.TranslateTextResponse(this);
+      com.google.cloud.translate.v3beta1.TranslateTextResponse result = new com.google.cloud.translate.v3beta1.TranslateTextResponse(this);
       int from_bitField0_ = bitField0_;
       if (translationsBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -579,39 +532,38 @@ public com.google.cloud.translate.v3beta1.TranslateTextResponse 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.cloud.translate.v3beta1.TranslateTextResponse) {
-        return mergeFrom((com.google.cloud.translate.v3beta1.TranslateTextResponse) other);
+        return mergeFrom((com.google.cloud.translate.v3beta1.TranslateTextResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -619,8 +571,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.translate.v3beta1.TranslateTextResponse other) {
-      if (other == com.google.cloud.translate.v3beta1.TranslateTextResponse.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.translate.v3beta1.TranslateTextResponse.getDefaultInstance()) return this;
       if (translationsBuilder_ == null) {
         if (!other.translations_.isEmpty()) {
           if (translations_.isEmpty()) {
@@ -639,10 +590,9 @@ public Builder mergeFrom(com.google.cloud.translate.v3beta1.TranslateTextRespons
             translationsBuilder_ = null;
             translations_ = other.translations_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            translationsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getTranslationsFieldBuilder()
-                    : null;
+            translationsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getTranslationsFieldBuilder() : null;
           } else {
             translationsBuilder_.addAllMessages(other.translations_);
           }
@@ -666,10 +616,9 @@ public Builder mergeFrom(com.google.cloud.translate.v3beta1.TranslateTextRespons
             glossaryTranslationsBuilder_ = null;
             glossaryTranslations_ = other.glossaryTranslations_;
             bitField0_ = (bitField0_ & ~0x00000002);
-            glossaryTranslationsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getGlossaryTranslationsFieldBuilder()
-                    : null;
+            glossaryTranslationsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getGlossaryTranslationsFieldBuilder() : null;
           } else {
             glossaryTranslationsBuilder_.addAllMessages(other.glossaryTranslations_);
           }
@@ -694,8 +643,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.translate.v3beta1.TranslateTextResponse) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.translate.v3beta1.TranslateTextResponse) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -704,29 +652,21 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private java.util.List translations_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureTranslationsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        translations_ =
-            new java.util.ArrayList(translations_);
+        translations_ = new java.util.ArrayList(translations_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.translate.v3beta1.Translation,
-            com.google.cloud.translate.v3beta1.Translation.Builder,
-            com.google.cloud.translate.v3beta1.TranslationOrBuilder>
-        translationsBuilder_;
+        com.google.cloud.translate.v3beta1.Translation, com.google.cloud.translate.v3beta1.Translation.Builder, com.google.cloud.translate.v3beta1.TranslationOrBuilder> translationsBuilder_;
 
     /**
-     *
-     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -743,8 +683,6 @@ public java.util.List getTransla
       }
     }
     /**
-     *
-     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -761,8 +699,6 @@ public int getTranslationsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -779,8 +715,6 @@ public com.google.cloud.translate.v3beta1.Translation getTranslations(int index)
       }
     }
     /**
-     *
-     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -804,8 +738,6 @@ public Builder setTranslations(
       return this;
     }
     /**
-     *
-     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -826,8 +758,6 @@ public Builder setTranslations(
       return this;
     }
     /**
-     *
-     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -850,8 +780,6 @@ public Builder addTranslations(com.google.cloud.translate.v3beta1.Translation va
       return this;
     }
     /**
-     *
-     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -875,8 +803,6 @@ public Builder addTranslations(
       return this;
     }
     /**
-     *
-     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -897,8 +823,6 @@ public Builder addTranslations(
       return this;
     }
     /**
-     *
-     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -919,8 +843,6 @@ public Builder addTranslations(
       return this;
     }
     /**
-     *
-     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -933,7 +855,8 @@ public Builder addAllTranslations(
         java.lang.Iterable values) {
       if (translationsBuilder_ == null) {
         ensureTranslationsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, translations_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, translations_);
         onChanged();
       } else {
         translationsBuilder_.addAllMessages(values);
@@ -941,8 +864,6 @@ public Builder addAllTranslations(
       return this;
     }
     /**
-     *
-     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -962,8 +883,6 @@ public Builder clearTranslations() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -983,8 +902,6 @@ public Builder removeTranslations(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -998,8 +915,6 @@ public com.google.cloud.translate.v3beta1.Translation.Builder getTranslationsBui
       return getTranslationsFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -1011,14 +926,11 @@ public com.google.cloud.translate.v3beta1.Translation.Builder getTranslationsBui
     public com.google.cloud.translate.v3beta1.TranslationOrBuilder getTranslationsOrBuilder(
         int index) {
       if (translationsBuilder_ == null) {
-        return translations_.get(index);
-      } else {
+        return translations_.get(index);  } else {
         return translationsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -1027,8 +939,8 @@ public com.google.cloud.translate.v3beta1.TranslationOrBuilder getTranslationsOr
      *
      * repeated .google.cloud.translation.v3beta1.Translation translations = 1;
      */
-    public java.util.List
-        getTranslationsOrBuilderList() {
+    public java.util.List 
+         getTranslationsOrBuilderList() {
       if (translationsBuilder_ != null) {
         return translationsBuilder_.getMessageOrBuilderList();
       } else {
@@ -1036,8 +948,6 @@ public com.google.cloud.translate.v3beta1.TranslationOrBuilder getTranslationsOr
       }
     }
     /**
-     *
-     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -1047,12 +957,10 @@ public com.google.cloud.translate.v3beta1.TranslationOrBuilder getTranslationsOr
      * repeated .google.cloud.translation.v3beta1.Translation translations = 1;
      */
     public com.google.cloud.translate.v3beta1.Translation.Builder addTranslationsBuilder() {
-      return getTranslationsFieldBuilder()
-          .addBuilder(com.google.cloud.translate.v3beta1.Translation.getDefaultInstance());
+      return getTranslationsFieldBuilder().addBuilder(
+          com.google.cloud.translate.v3beta1.Translation.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -1063,12 +971,10 @@ public com.google.cloud.translate.v3beta1.Translation.Builder addTranslationsBui
      */
     public com.google.cloud.translate.v3beta1.Translation.Builder addTranslationsBuilder(
         int index) {
-      return getTranslationsFieldBuilder()
-          .addBuilder(index, com.google.cloud.translate.v3beta1.Translation.getDefaultInstance());
+      return getTranslationsFieldBuilder().addBuilder(
+          index, com.google.cloud.translate.v3beta1.Translation.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -1077,49 +983,38 @@ public com.google.cloud.translate.v3beta1.Translation.Builder addTranslationsBui
      *
      * repeated .google.cloud.translation.v3beta1.Translation translations = 1;
      */
-    public java.util.List
-        getTranslationsBuilderList() {
+    public java.util.List 
+         getTranslationsBuilderList() {
       return getTranslationsFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.translate.v3beta1.Translation,
-            com.google.cloud.translate.v3beta1.Translation.Builder,
-            com.google.cloud.translate.v3beta1.TranslationOrBuilder>
+        com.google.cloud.translate.v3beta1.Translation, com.google.cloud.translate.v3beta1.Translation.Builder, com.google.cloud.translate.v3beta1.TranslationOrBuilder> 
         getTranslationsFieldBuilder() {
       if (translationsBuilder_ == null) {
-        translationsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.translate.v3beta1.Translation,
-                com.google.cloud.translate.v3beta1.Translation.Builder,
-                com.google.cloud.translate.v3beta1.TranslationOrBuilder>(
-                translations_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        translationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.translate.v3beta1.Translation, com.google.cloud.translate.v3beta1.Translation.Builder, com.google.cloud.translate.v3beta1.TranslationOrBuilder>(
+                translations_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         translations_ = null;
       }
       return translationsBuilder_;
     }
 
     private java.util.List glossaryTranslations_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureGlossaryTranslationsIsMutable() {
       if (!((bitField0_ & 0x00000002) != 0)) {
-        glossaryTranslations_ =
-            new java.util.ArrayList(
-                glossaryTranslations_);
+        glossaryTranslations_ = new java.util.ArrayList(glossaryTranslations_);
         bitField0_ |= 0x00000002;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.translate.v3beta1.Translation,
-            com.google.cloud.translate.v3beta1.Translation.Builder,
-            com.google.cloud.translate.v3beta1.TranslationOrBuilder>
-        glossaryTranslationsBuilder_;
+        com.google.cloud.translate.v3beta1.Translation, com.google.cloud.translate.v3beta1.Translation.Builder, com.google.cloud.translate.v3beta1.TranslationOrBuilder> glossaryTranslationsBuilder_;
 
     /**
-     *
-     *
      * 
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1128,11 +1023,9 @@ private void ensureGlossaryTranslationsIsMutable() {
      * [`contents`][google.cloud.translation.v3beta1.TranslateTextRequest.contents].
      * 
* - * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; - * + * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; */ - public java.util.List - getGlossaryTranslationsList() { + public java.util.List getGlossaryTranslationsList() { if (glossaryTranslationsBuilder_ == null) { return java.util.Collections.unmodifiableList(glossaryTranslations_); } else { @@ -1140,8 +1033,6 @@ private void ensureGlossaryTranslationsIsMutable() { } } /** - * - * *
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1150,8 +1041,7 @@ private void ensureGlossaryTranslationsIsMutable() {
      * [`contents`][google.cloud.translation.v3beta1.TranslateTextRequest.contents].
      * 
* - * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; - * + * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; */ public int getGlossaryTranslationsCount() { if (glossaryTranslationsBuilder_ == null) { @@ -1161,8 +1051,6 @@ public int getGlossaryTranslationsCount() { } } /** - * - * *
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1171,8 +1059,7 @@ public int getGlossaryTranslationsCount() {
      * [`contents`][google.cloud.translation.v3beta1.TranslateTextRequest.contents].
      * 
* - * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; - * + * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; */ public com.google.cloud.translate.v3beta1.Translation getGlossaryTranslations(int index) { if (glossaryTranslationsBuilder_ == null) { @@ -1182,8 +1069,6 @@ public com.google.cloud.translate.v3beta1.Translation getGlossaryTranslations(in } } /** - * - * *
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1192,8 +1077,7 @@ public com.google.cloud.translate.v3beta1.Translation getGlossaryTranslations(in
      * [`contents`][google.cloud.translation.v3beta1.TranslateTextRequest.contents].
      * 
* - * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; - * + * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; */ public Builder setGlossaryTranslations( int index, com.google.cloud.translate.v3beta1.Translation value) { @@ -1210,8 +1094,6 @@ public Builder setGlossaryTranslations( return this; } /** - * - * *
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1220,8 +1102,7 @@ public Builder setGlossaryTranslations(
      * [`contents`][google.cloud.translation.v3beta1.TranslateTextRequest.contents].
      * 
* - * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; - * + * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; */ public Builder setGlossaryTranslations( int index, com.google.cloud.translate.v3beta1.Translation.Builder builderForValue) { @@ -1235,8 +1116,6 @@ public Builder setGlossaryTranslations( return this; } /** - * - * *
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1245,8 +1124,7 @@ public Builder setGlossaryTranslations(
      * [`contents`][google.cloud.translation.v3beta1.TranslateTextRequest.contents].
      * 
* - * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; - * + * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; */ public Builder addGlossaryTranslations(com.google.cloud.translate.v3beta1.Translation value) { if (glossaryTranslationsBuilder_ == null) { @@ -1262,8 +1140,6 @@ public Builder addGlossaryTranslations(com.google.cloud.translate.v3beta1.Transl return this; } /** - * - * *
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1272,8 +1148,7 @@ public Builder addGlossaryTranslations(com.google.cloud.translate.v3beta1.Transl
      * [`contents`][google.cloud.translation.v3beta1.TranslateTextRequest.contents].
      * 
* - * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; - * + * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; */ public Builder addGlossaryTranslations( int index, com.google.cloud.translate.v3beta1.Translation value) { @@ -1290,8 +1165,6 @@ public Builder addGlossaryTranslations( return this; } /** - * - * *
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1300,8 +1173,7 @@ public Builder addGlossaryTranslations(
      * [`contents`][google.cloud.translation.v3beta1.TranslateTextRequest.contents].
      * 
* - * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; - * + * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; */ public Builder addGlossaryTranslations( com.google.cloud.translate.v3beta1.Translation.Builder builderForValue) { @@ -1315,8 +1187,6 @@ public Builder addGlossaryTranslations( return this; } /** - * - * *
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1325,8 +1195,7 @@ public Builder addGlossaryTranslations(
      * [`contents`][google.cloud.translation.v3beta1.TranslateTextRequest.contents].
      * 
* - * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; - * + * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; */ public Builder addGlossaryTranslations( int index, com.google.cloud.translate.v3beta1.Translation.Builder builderForValue) { @@ -1340,8 +1209,6 @@ public Builder addGlossaryTranslations( return this; } /** - * - * *
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1350,14 +1217,14 @@ public Builder addGlossaryTranslations(
      * [`contents`][google.cloud.translation.v3beta1.TranslateTextRequest.contents].
      * 
* - * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; - * + * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; */ public Builder addAllGlossaryTranslations( java.lang.Iterable values) { if (glossaryTranslationsBuilder_ == null) { ensureGlossaryTranslationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, glossaryTranslations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, glossaryTranslations_); onChanged(); } else { glossaryTranslationsBuilder_.addAllMessages(values); @@ -1365,8 +1232,6 @@ public Builder addAllGlossaryTranslations( return this; } /** - * - * *
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1375,8 +1240,7 @@ public Builder addAllGlossaryTranslations(
      * [`contents`][google.cloud.translation.v3beta1.TranslateTextRequest.contents].
      * 
* - * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; - * + * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; */ public Builder clearGlossaryTranslations() { if (glossaryTranslationsBuilder_ == null) { @@ -1389,8 +1253,6 @@ public Builder clearGlossaryTranslations() { return this; } /** - * - * *
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1399,8 +1261,7 @@ public Builder clearGlossaryTranslations() {
      * [`contents`][google.cloud.translation.v3beta1.TranslateTextRequest.contents].
      * 
* - * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; - * + * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; */ public Builder removeGlossaryTranslations(int index) { if (glossaryTranslationsBuilder_ == null) { @@ -1413,8 +1274,6 @@ public Builder removeGlossaryTranslations(int index) { return this; } /** - * - * *
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1423,16 +1282,13 @@ public Builder removeGlossaryTranslations(int index) {
      * [`contents`][google.cloud.translation.v3beta1.TranslateTextRequest.contents].
      * 
* - * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; - * + * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; */ public com.google.cloud.translate.v3beta1.Translation.Builder getGlossaryTranslationsBuilder( int index) { return getGlossaryTranslationsFieldBuilder().getBuilder(index); } /** - * - * *
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1441,20 +1297,16 @@ public com.google.cloud.translate.v3beta1.Translation.Builder getGlossaryTransla
      * [`contents`][google.cloud.translation.v3beta1.TranslateTextRequest.contents].
      * 
* - * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; - * + * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; */ public com.google.cloud.translate.v3beta1.TranslationOrBuilder getGlossaryTranslationsOrBuilder( int index) { if (glossaryTranslationsBuilder_ == null) { - return glossaryTranslations_.get(index); - } else { + return glossaryTranslations_.get(index); } else { return glossaryTranslationsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1463,11 +1315,10 @@ public com.google.cloud.translate.v3beta1.TranslationOrBuilder getGlossaryTransl
      * [`contents`][google.cloud.translation.v3beta1.TranslateTextRequest.contents].
      * 
* - * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; - * + * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; */ - public java.util.List - getGlossaryTranslationsOrBuilderList() { + public java.util.List + getGlossaryTranslationsOrBuilderList() { if (glossaryTranslationsBuilder_ != null) { return glossaryTranslationsBuilder_.getMessageOrBuilderList(); } else { @@ -1475,8 +1326,6 @@ public com.google.cloud.translate.v3beta1.TranslationOrBuilder getGlossaryTransl } } /** - * - * *
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1485,16 +1334,13 @@ public com.google.cloud.translate.v3beta1.TranslationOrBuilder getGlossaryTransl
      * [`contents`][google.cloud.translation.v3beta1.TranslateTextRequest.contents].
      * 
* - * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; - * + * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; */ public com.google.cloud.translate.v3beta1.Translation.Builder addGlossaryTranslationsBuilder() { - return getGlossaryTranslationsFieldBuilder() - .addBuilder(com.google.cloud.translate.v3beta1.Translation.getDefaultInstance()); + return getGlossaryTranslationsFieldBuilder().addBuilder( + com.google.cloud.translate.v3beta1.Translation.getDefaultInstance()); } /** - * - * *
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1503,17 +1349,14 @@ public com.google.cloud.translate.v3beta1.Translation.Builder addGlossaryTransla
      * [`contents`][google.cloud.translation.v3beta1.TranslateTextRequest.contents].
      * 
* - * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; - * + * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; */ public com.google.cloud.translate.v3beta1.Translation.Builder addGlossaryTranslationsBuilder( int index) { - return getGlossaryTranslationsFieldBuilder() - .addBuilder(index, com.google.cloud.translate.v3beta1.Translation.getDefaultInstance()); + return getGlossaryTranslationsFieldBuilder().addBuilder( + index, com.google.cloud.translate.v3beta1.Translation.getDefaultInstance()); } /** - * - * *
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1522,25 +1365,18 @@ public com.google.cloud.translate.v3beta1.Translation.Builder addGlossaryTransla
      * [`contents`][google.cloud.translation.v3beta1.TranslateTextRequest.contents].
      * 
* - * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; - * + * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; */ - public java.util.List - getGlossaryTranslationsBuilderList() { + public java.util.List + getGlossaryTranslationsBuilderList() { return getGlossaryTranslationsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.translate.v3beta1.Translation, - com.google.cloud.translate.v3beta1.Translation.Builder, - com.google.cloud.translate.v3beta1.TranslationOrBuilder> + com.google.cloud.translate.v3beta1.Translation, com.google.cloud.translate.v3beta1.Translation.Builder, com.google.cloud.translate.v3beta1.TranslationOrBuilder> getGlossaryTranslationsFieldBuilder() { if (glossaryTranslationsBuilder_ == null) { - glossaryTranslationsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.translate.v3beta1.Translation, - com.google.cloud.translate.v3beta1.Translation.Builder, - com.google.cloud.translate.v3beta1.TranslationOrBuilder>( + glossaryTranslationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.translate.v3beta1.Translation, com.google.cloud.translate.v3beta1.Translation.Builder, com.google.cloud.translate.v3beta1.TranslationOrBuilder>( glossaryTranslations_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -1549,9 +1385,9 @@ public com.google.cloud.translate.v3beta1.Translation.Builder addGlossaryTransla } return glossaryTranslationsBuilder_; } - @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 +1397,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.TranslateTextResponse) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.TranslateTextResponse) private static final com.google.cloud.translate.v3beta1.TranslateTextResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.TranslateTextResponse(); } @@ -1575,16 +1411,16 @@ public static com.google.cloud.translate.v3beta1.TranslateTextResponse getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TranslateTextResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TranslateTextResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TranslateTextResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TranslateTextResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1599,4 +1435,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3beta1.TranslateTextResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextResponseOrBuilder.java b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextResponseOrBuilder.java similarity index 85% rename from proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextResponseOrBuilder.java rename to owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextResponseOrBuilder.java index bab76d8f..3fb798bb 100644 --- a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextResponseOrBuilder.java +++ b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextResponseOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 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/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; -public interface TranslateTextResponseOrBuilder - extends +public interface TranslateTextResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.TranslateTextResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Text translation responses with no glossary applied.
    * This field has the same length as
@@ -34,10 +16,9 @@ public interface TranslateTextResponseOrBuilder
    *
    * repeated .google.cloud.translation.v3beta1.Translation translations = 1;
    */
-  java.util.List getTranslationsList();
+  java.util.List 
+      getTranslationsList();
   /**
-   *
-   *
    * 
    * Text translation responses with no glossary applied.
    * This field has the same length as
@@ -48,8 +29,6 @@ public interface TranslateTextResponseOrBuilder
    */
   com.google.cloud.translate.v3beta1.Translation getTranslations(int index);
   /**
-   *
-   *
    * 
    * Text translation responses with no glossary applied.
    * This field has the same length as
@@ -60,8 +39,6 @@ public interface TranslateTextResponseOrBuilder
    */
   int getTranslationsCount();
   /**
-   *
-   *
    * 
    * Text translation responses with no glossary applied.
    * This field has the same length as
@@ -70,11 +47,9 @@ public interface TranslateTextResponseOrBuilder
    *
    * repeated .google.cloud.translation.v3beta1.Translation translations = 1;
    */
-  java.util.List
+  java.util.List 
       getTranslationsOrBuilderList();
   /**
-   *
-   *
    * 
    * Text translation responses with no glossary applied.
    * This field has the same length as
@@ -83,11 +58,10 @@ public interface TranslateTextResponseOrBuilder
    *
    * repeated .google.cloud.translation.v3beta1.Translation translations = 1;
    */
-  com.google.cloud.translate.v3beta1.TranslationOrBuilder getTranslationsOrBuilder(int index);
+  com.google.cloud.translate.v3beta1.TranslationOrBuilder getTranslationsOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * Text translation responses if a glossary is provided in the request.
    * This can be the same as
@@ -98,10 +72,9 @@ public interface TranslateTextResponseOrBuilder
    *
    * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3;
    */
-  java.util.List getGlossaryTranslationsList();
+  java.util.List 
+      getGlossaryTranslationsList();
   /**
-   *
-   *
    * 
    * Text translation responses if a glossary is provided in the request.
    * This can be the same as
@@ -114,8 +87,6 @@ public interface TranslateTextResponseOrBuilder
    */
   com.google.cloud.translate.v3beta1.Translation getGlossaryTranslations(int index);
   /**
-   *
-   *
    * 
    * Text translation responses if a glossary is provided in the request.
    * This can be the same as
@@ -128,8 +99,6 @@ public interface TranslateTextResponseOrBuilder
    */
   int getGlossaryTranslationsCount();
   /**
-   *
-   *
    * 
    * Text translation responses if a glossary is provided in the request.
    * This can be the same as
@@ -140,11 +109,9 @@ public interface TranslateTextResponseOrBuilder
    *
    * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3;
    */
-  java.util.List
+  java.util.List 
       getGlossaryTranslationsOrBuilderList();
   /**
-   *
-   *
    * 
    * Text translation responses if a glossary is provided in the request.
    * This can be the same as
diff --git a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/Translation.java b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/Translation.java
similarity index 73%
rename from proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/Translation.java
rename to owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/Translation.java
index b85cf13f..cde82b75 100644
--- a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/Translation.java
+++ b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/Translation.java
@@ -1,42 +1,24 @@
-/*
- * Copyright 2020 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/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
 /**
- *
- *
  * 
  * A single translation response.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.Translation} */ -public final class Translation extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Translation extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.Translation) TranslationOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Translation.newBuilder() to construct. private Translation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Translation() { translatedText_ = ""; model_ = ""; @@ -45,15 +27,16 @@ private Translation() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Translation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Translation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,84 +55,72 @@ private Translation( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - translatedText_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + translatedText_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - model_ = s; - break; + model_ = s; + break; + } + case 26: { + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder subBuilder = null; + if (glossaryConfig_ != null) { + subBuilder = glossaryConfig_.toBuilder(); } - case 26: - { - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder subBuilder = - null; - if (glossaryConfig_ != null) { - subBuilder = glossaryConfig_.toBuilder(); - } - glossaryConfig_ = - input.readMessage( - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(glossaryConfig_); - glossaryConfig_ = subBuilder.buildPartial(); - } - - break; + glossaryConfig_ = input.readMessage(com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(glossaryConfig_); + glossaryConfig_ = subBuilder.buildPartial(); } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - detectedLanguageCode_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + detectedLanguageCode_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_Translation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_Translation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_Translation_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_Translation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.Translation.class, - com.google.cloud.translate.v3beta1.Translation.Builder.class); + com.google.cloud.translate.v3beta1.Translation.class, com.google.cloud.translate.v3beta1.Translation.Builder.class); } public static final int TRANSLATED_TEXT_FIELD_NUMBER = 1; private volatile java.lang.Object translatedText_; /** - * - * *
    * Text translated into the target language.
    * If an error occurs during translation, this field might be excluded from
@@ -157,7 +128,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string translated_text = 1; - * * @return The translatedText. */ @java.lang.Override @@ -166,15 +136,14 @@ public java.lang.String getTranslatedText() { 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(); translatedText_ = s; return s; } } /** - * - * *
    * Text translated into the target language.
    * If an error occurs during translation, this field might be excluded from
@@ -182,15 +151,16 @@ public java.lang.String getTranslatedText() {
    * 
* * string translated_text = 1; - * * @return The bytes for translatedText. */ @java.lang.Override - public com.google.protobuf.ByteString getTranslatedTextBytes() { + public com.google.protobuf.ByteString + getTranslatedTextBytes() { java.lang.Object ref = translatedText_; 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); translatedText_ = b; return b; } else { @@ -201,8 +171,6 @@ public com.google.protobuf.ByteString getTranslatedTextBytes() { public static final int MODEL_FIELD_NUMBER = 2; private volatile java.lang.Object model_; /** - * - * *
    * Only present when `model` is present in the request.
    * `model` here is normalized to have project number.
@@ -214,7 +182,6 @@ public com.google.protobuf.ByteString getTranslatedTextBytes() {
    * 
* * string model = 2; - * * @return The model. */ @java.lang.Override @@ -223,15 +190,14 @@ public java.lang.String getModel() { 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(); model_ = s; return s; } } /** - * - * *
    * Only present when `model` is present in the request.
    * `model` here is normalized to have project number.
@@ -243,15 +209,16 @@ public java.lang.String getModel() {
    * 
* * string model = 2; - * * @return The bytes for model. */ @java.lang.Override - public com.google.protobuf.ByteString getModelBytes() { + public com.google.protobuf.ByteString + getModelBytes() { java.lang.Object ref = model_; 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); model_ = b; return b; } else { @@ -262,8 +229,6 @@ public com.google.protobuf.ByteString getModelBytes() { public static final int DETECTED_LANGUAGE_CODE_FIELD_NUMBER = 4; private volatile java.lang.Object detectedLanguageCode_; /** - * - * *
    * The BCP-47 language code of source text in the initial request, detected
    * automatically, if no source language was passed within the initial
@@ -272,7 +237,6 @@ public com.google.protobuf.ByteString getModelBytes() {
    * 
* * string detected_language_code = 4; - * * @return The detectedLanguageCode. */ @java.lang.Override @@ -281,15 +245,14 @@ public java.lang.String getDetectedLanguageCode() { 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(); detectedLanguageCode_ = s; return s; } } /** - * - * *
    * The BCP-47 language code of source text in the initial request, detected
    * automatically, if no source language was passed within the initial
@@ -298,15 +261,16 @@ public java.lang.String getDetectedLanguageCode() {
    * 
* * string detected_language_code = 4; - * * @return The bytes for detectedLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getDetectedLanguageCodeBytes() { + public com.google.protobuf.ByteString + getDetectedLanguageCodeBytes() { java.lang.Object ref = detectedLanguageCode_; 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); detectedLanguageCode_ = b; return b; } else { @@ -317,14 +281,11 @@ public com.google.protobuf.ByteString getDetectedLanguageCodeBytes() { public static final int GLOSSARY_CONFIG_FIELD_NUMBER = 3; private com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig glossaryConfig_; /** - * - * *
    * The `glossary_config` used for this translation.
    * 
* * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; - * * @return Whether the glossaryConfig field is set. */ @java.lang.Override @@ -332,25 +293,18 @@ public boolean hasGlossaryConfig() { return glossaryConfig_ != null; } /** - * - * *
    * The `glossary_config` used for this translation.
    * 
* * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; - * * @return The glossaryConfig. */ @java.lang.Override public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossaryConfig() { - return glossaryConfig_ == null - ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() - : glossaryConfig_; + return glossaryConfig_ == null ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; } /** - * - * *
    * The `glossary_config` used for this translation.
    * 
@@ -358,13 +312,11 @@ public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossar * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; */ @java.lang.Override - public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder - getGlossaryConfigOrBuilder() { + public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder getGlossaryConfigOrBuilder() { return getGlossaryConfig(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -376,17 +328,18 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getTranslatedTextBytes().isEmpty()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(translatedText_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, translatedText_); } - if (!getModelBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(model_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, model_); } if (glossaryConfig_ != null) { output.writeMessage(3, getGlossaryConfig()); } - if (!getDetectedLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(detectedLanguageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, detectedLanguageCode_); } unknownFields.writeTo(output); @@ -398,16 +351,17 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getTranslatedTextBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(translatedText_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, translatedText_); } - if (!getModelBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(model_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, model_); } if (glossaryConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getGlossaryConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getGlossaryConfig()); } - if (!getDetectedLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(detectedLanguageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, detectedLanguageCode_); } size += unknownFields.getSerializedSize(); @@ -418,20 +372,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.cloud.translate.v3beta1.Translation)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.Translation other = - (com.google.cloud.translate.v3beta1.Translation) obj; + com.google.cloud.translate.v3beta1.Translation other = (com.google.cloud.translate.v3beta1.Translation) obj; - if (!getTranslatedText().equals(other.getTranslatedText())) return false; - if (!getModel().equals(other.getModel())) return false; - if (!getDetectedLanguageCode().equals(other.getDetectedLanguageCode())) return false; + if (!getTranslatedText() + .equals(other.getTranslatedText())) return false; + if (!getModel() + .equals(other.getModel())) return false; + if (!getDetectedLanguageCode() + .equals(other.getDetectedLanguageCode())) return false; if (hasGlossaryConfig() != other.hasGlossaryConfig()) return false; if (hasGlossaryConfig()) { - if (!getGlossaryConfig().equals(other.getGlossaryConfig())) return false; + if (!getGlossaryConfig() + .equals(other.getGlossaryConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -459,127 +416,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.translate.v3beta1.Translation parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.translate.v3beta1.Translation parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.Translation 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.cloud.translate.v3beta1.Translation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.Translation 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.cloud.translate.v3beta1.Translation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.Translation 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.cloud.translate.v3beta1.Translation 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.cloud.translate.v3beta1.Translation 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.cloud.translate.v3beta1.Translation parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.Translation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.Translation 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.cloud.translate.v3beta1.Translation 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.cloud.translate.v3beta1.Translation 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.cloud.translate.v3beta1.Translation 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 single translation response.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.Translation} */ - 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.translation.v3beta1.Translation) com.google.cloud.translate.v3beta1.TranslationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_Translation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_Translation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_Translation_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_Translation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.Translation.class, - com.google.cloud.translate.v3beta1.Translation.Builder.class); + com.google.cloud.translate.v3beta1.Translation.class, com.google.cloud.translate.v3beta1.Translation.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.Translation.newBuilder() @@ -587,15 +535,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -615,9 +564,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_Translation_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_Translation_descriptor; } @java.lang.Override @@ -636,8 +585,7 @@ public com.google.cloud.translate.v3beta1.Translation build() { @java.lang.Override public com.google.cloud.translate.v3beta1.Translation buildPartial() { - com.google.cloud.translate.v3beta1.Translation result = - new com.google.cloud.translate.v3beta1.Translation(this); + com.google.cloud.translate.v3beta1.Translation result = new com.google.cloud.translate.v3beta1.Translation(this); result.translatedText_ = translatedText_; result.model_ = model_; result.detectedLanguageCode_ = detectedLanguageCode_; @@ -654,39 +602,38 @@ public com.google.cloud.translate.v3beta1.Translation 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.cloud.translate.v3beta1.Translation) { - return mergeFrom((com.google.cloud.translate.v3beta1.Translation) other); + return mergeFrom((com.google.cloud.translate.v3beta1.Translation)other); } else { super.mergeFrom(other); return this; @@ -741,8 +688,6 @@ public Builder mergeFrom( private java.lang.Object translatedText_ = ""; /** - * - * *
      * Text translated into the target language.
      * If an error occurs during translation, this field might be excluded from
@@ -750,13 +695,13 @@ public Builder mergeFrom(
      * 
* * string translated_text = 1; - * * @return The translatedText. */ public java.lang.String getTranslatedText() { java.lang.Object ref = translatedText_; 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(); translatedText_ = s; return s; @@ -765,8 +710,6 @@ public java.lang.String getTranslatedText() { } } /** - * - * *
      * Text translated into the target language.
      * If an error occurs during translation, this field might be excluded from
@@ -774,14 +717,15 @@ public java.lang.String getTranslatedText() {
      * 
* * string translated_text = 1; - * * @return The bytes for translatedText. */ - public com.google.protobuf.ByteString getTranslatedTextBytes() { + public com.google.protobuf.ByteString + getTranslatedTextBytes() { java.lang.Object ref = translatedText_; 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); translatedText_ = b; return b; } else { @@ -789,8 +733,6 @@ public com.google.protobuf.ByteString getTranslatedTextBytes() { } } /** - * - * *
      * Text translated into the target language.
      * If an error occurs during translation, this field might be excluded from
@@ -798,22 +740,20 @@ public com.google.protobuf.ByteString getTranslatedTextBytes() {
      * 
* * string translated_text = 1; - * * @param value The translatedText to set. * @return This builder for chaining. */ - public Builder setTranslatedText(java.lang.String value) { + public Builder setTranslatedText( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + translatedText_ = value; onChanged(); return this; } /** - * - * *
      * Text translated into the target language.
      * If an error occurs during translation, this field might be excluded from
@@ -821,18 +761,15 @@ public Builder setTranslatedText(java.lang.String value) {
      * 
* * string translated_text = 1; - * * @return This builder for chaining. */ public Builder clearTranslatedText() { - + translatedText_ = getDefaultInstance().getTranslatedText(); onChanged(); return this; } /** - * - * *
      * Text translated into the target language.
      * If an error occurs during translation, this field might be excluded from
@@ -840,16 +777,16 @@ public Builder clearTranslatedText() {
      * 
* * string translated_text = 1; - * * @param value The bytes for translatedText to set. * @return This builder for chaining. */ - public Builder setTranslatedTextBytes(com.google.protobuf.ByteString value) { + public Builder setTranslatedTextBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + translatedText_ = value; onChanged(); return this; @@ -857,8 +794,6 @@ public Builder setTranslatedTextBytes(com.google.protobuf.ByteString value) { private java.lang.Object model_ = ""; /** - * - * *
      * Only present when `model` is present in the request.
      * `model` here is normalized to have project number.
@@ -870,13 +805,13 @@ public Builder setTranslatedTextBytes(com.google.protobuf.ByteString value) {
      * 
* * string model = 2; - * * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; 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(); model_ = s; return s; @@ -885,8 +820,6 @@ public java.lang.String getModel() { } } /** - * - * *
      * Only present when `model` is present in the request.
      * `model` here is normalized to have project number.
@@ -898,14 +831,15 @@ public java.lang.String getModel() {
      * 
* * string model = 2; - * * @return The bytes for model. */ - public com.google.protobuf.ByteString getModelBytes() { + public com.google.protobuf.ByteString + getModelBytes() { java.lang.Object ref = model_; 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); model_ = b; return b; } else { @@ -913,8 +847,6 @@ public com.google.protobuf.ByteString getModelBytes() { } } /** - * - * *
      * Only present when `model` is present in the request.
      * `model` here is normalized to have project number.
@@ -926,22 +858,20 @@ public com.google.protobuf.ByteString getModelBytes() {
      * 
* * string model = 2; - * * @param value The model to set. * @return This builder for chaining. */ - public Builder setModel(java.lang.String value) { + public Builder setModel( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + model_ = value; onChanged(); return this; } /** - * - * *
      * Only present when `model` is present in the request.
      * `model` here is normalized to have project number.
@@ -953,18 +883,15 @@ public Builder setModel(java.lang.String value) {
      * 
* * string model = 2; - * * @return This builder for chaining. */ public Builder clearModel() { - + model_ = getDefaultInstance().getModel(); onChanged(); return this; } /** - * - * *
      * Only present when `model` is present in the request.
      * `model` here is normalized to have project number.
@@ -976,16 +903,16 @@ public Builder clearModel() {
      * 
* * string model = 2; - * * @param value The bytes for model to set. * @return This builder for chaining. */ - public Builder setModelBytes(com.google.protobuf.ByteString value) { + public Builder setModelBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + model_ = value; onChanged(); return this; @@ -993,8 +920,6 @@ public Builder setModelBytes(com.google.protobuf.ByteString value) { private java.lang.Object detectedLanguageCode_ = ""; /** - * - * *
      * The BCP-47 language code of source text in the initial request, detected
      * automatically, if no source language was passed within the initial
@@ -1003,13 +928,13 @@ public Builder setModelBytes(com.google.protobuf.ByteString value) {
      * 
* * string detected_language_code = 4; - * * @return The detectedLanguageCode. */ public java.lang.String getDetectedLanguageCode() { java.lang.Object ref = detectedLanguageCode_; 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(); detectedLanguageCode_ = s; return s; @@ -1018,8 +943,6 @@ public java.lang.String getDetectedLanguageCode() { } } /** - * - * *
      * The BCP-47 language code of source text in the initial request, detected
      * automatically, if no source language was passed within the initial
@@ -1028,14 +951,15 @@ public java.lang.String getDetectedLanguageCode() {
      * 
* * string detected_language_code = 4; - * * @return The bytes for detectedLanguageCode. */ - public com.google.protobuf.ByteString getDetectedLanguageCodeBytes() { + public com.google.protobuf.ByteString + getDetectedLanguageCodeBytes() { java.lang.Object ref = detectedLanguageCode_; 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); detectedLanguageCode_ = b; return b; } else { @@ -1043,8 +967,6 @@ public com.google.protobuf.ByteString getDetectedLanguageCodeBytes() { } } /** - * - * *
      * The BCP-47 language code of source text in the initial request, detected
      * automatically, if no source language was passed within the initial
@@ -1053,22 +975,20 @@ public com.google.protobuf.ByteString getDetectedLanguageCodeBytes() {
      * 
* * string detected_language_code = 4; - * * @param value The detectedLanguageCode to set. * @return This builder for chaining. */ - public Builder setDetectedLanguageCode(java.lang.String value) { + public Builder setDetectedLanguageCode( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + detectedLanguageCode_ = value; onChanged(); return this; } /** - * - * *
      * The BCP-47 language code of source text in the initial request, detected
      * automatically, if no source language was passed within the initial
@@ -1077,18 +997,15 @@ public Builder setDetectedLanguageCode(java.lang.String value) {
      * 
* * string detected_language_code = 4; - * * @return This builder for chaining. */ public Builder clearDetectedLanguageCode() { - + detectedLanguageCode_ = getDefaultInstance().getDetectedLanguageCode(); onChanged(); return this; } /** - * - * *
      * The BCP-47 language code of source text in the initial request, detected
      * automatically, if no source language was passed within the initial
@@ -1097,16 +1014,16 @@ public Builder clearDetectedLanguageCode() {
      * 
* * string detected_language_code = 4; - * * @param value The bytes for detectedLanguageCode to set. * @return This builder for chaining. */ - public Builder setDetectedLanguageCodeBytes(com.google.protobuf.ByteString value) { + public Builder setDetectedLanguageCodeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + detectedLanguageCode_ = value; onChanged(); return this; @@ -1114,58 +1031,41 @@ public Builder setDetectedLanguageCodeBytes(com.google.protobuf.ByteString value private com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig glossaryConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder> - glossaryConfigBuilder_; + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder> glossaryConfigBuilder_; /** - * - * *
      * The `glossary_config` used for this translation.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; - * - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; * @return Whether the glossaryConfig field is set. */ public boolean hasGlossaryConfig() { return glossaryConfigBuilder_ != null || glossaryConfig_ != null; } /** - * - * *
      * The `glossary_config` used for this translation.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; - * - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; * @return The glossaryConfig. */ public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossaryConfig() { if (glossaryConfigBuilder_ == null) { - return glossaryConfig_ == null - ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() - : glossaryConfig_; + return glossaryConfig_ == null ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; } else { return glossaryConfigBuilder_.getMessage(); } } /** - * - * *
      * The `glossary_config` used for this translation.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; */ - public Builder setGlossaryConfig( - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig value) { + public Builder setGlossaryConfig(com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig value) { if (glossaryConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1179,14 +1079,11 @@ public Builder setGlossaryConfig( return this; } /** - * - * *
      * The `glossary_config` used for this translation.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; */ public Builder setGlossaryConfig( com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder builderForValue) { @@ -1200,24 +1097,17 @@ public Builder setGlossaryConfig( return this; } /** - * - * *
      * The `glossary_config` used for this translation.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; */ - public Builder mergeGlossaryConfig( - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig value) { + public Builder mergeGlossaryConfig(com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig value) { if (glossaryConfigBuilder_ == null) { if (glossaryConfig_ != null) { glossaryConfig_ = - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.newBuilder( - glossaryConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.newBuilder(glossaryConfig_).mergeFrom(value).buildPartial(); } else { glossaryConfig_ = value; } @@ -1229,14 +1119,11 @@ public Builder mergeGlossaryConfig( return this; } /** - * - * *
      * The `glossary_config` used for this translation.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; */ public Builder clearGlossaryConfig() { if (glossaryConfigBuilder_ == null) { @@ -1250,70 +1137,55 @@ public Builder clearGlossaryConfig() { return this; } /** - * - * *
      * The `glossary_config` used for this translation.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; */ - public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder - getGlossaryConfigBuilder() { - + public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder getGlossaryConfigBuilder() { + onChanged(); return getGlossaryConfigFieldBuilder().getBuilder(); } /** - * - * *
      * The `glossary_config` used for this translation.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; */ - public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder - getGlossaryConfigOrBuilder() { + public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder getGlossaryConfigOrBuilder() { if (glossaryConfigBuilder_ != null) { return glossaryConfigBuilder_.getMessageOrBuilder(); } else { - return glossaryConfig_ == null - ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() - : glossaryConfig_; + return glossaryConfig_ == null ? + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; } } /** - * - * *
      * The `glossary_config` used for this translation.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder> + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder> getGlossaryConfigFieldBuilder() { if (glossaryConfigBuilder_ == null) { - glossaryConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder>( - getGlossaryConfig(), getParentForChildren(), isClean()); + glossaryConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder>( + getGlossaryConfig(), + getParentForChildren(), + isClean()); glossaryConfig_ = null; } return glossaryConfigBuilder_; } - @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); } @@ -1323,12 +1195,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.Translation) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.Translation) private static final com.google.cloud.translate.v3beta1.Translation DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.Translation(); } @@ -1337,16 +1209,16 @@ public static com.google.cloud.translate.v3beta1.Translation getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Translation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Translation(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Translation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Translation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1361,4 +1233,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3beta1.Translation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationOrBuilder.java b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationOrBuilder.java similarity index 78% rename from proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationOrBuilder.java rename to owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationOrBuilder.java index 34506d3d..9a9312e7 100644 --- a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationOrBuilder.java +++ b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 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/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; -public interface TranslationOrBuilder - extends +public interface TranslationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.Translation) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Text translated into the target language.
    * If an error occurs during translation, this field might be excluded from
@@ -33,13 +15,10 @@ public interface TranslationOrBuilder
    * 
* * string translated_text = 1; - * * @return The translatedText. */ java.lang.String getTranslatedText(); /** - * - * *
    * Text translated into the target language.
    * If an error occurs during translation, this field might be excluded from
@@ -47,14 +26,12 @@ public interface TranslationOrBuilder
    * 
* * string translated_text = 1; - * * @return The bytes for translatedText. */ - com.google.protobuf.ByteString getTranslatedTextBytes(); + com.google.protobuf.ByteString + getTranslatedTextBytes(); /** - * - * *
    * Only present when `model` is present in the request.
    * `model` here is normalized to have project number.
@@ -66,13 +43,10 @@ public interface TranslationOrBuilder
    * 
* * string model = 2; - * * @return The model. */ java.lang.String getModel(); /** - * - * *
    * Only present when `model` is present in the request.
    * `model` here is normalized to have project number.
@@ -84,14 +58,12 @@ public interface TranslationOrBuilder
    * 
* * string model = 2; - * * @return The bytes for model. */ - com.google.protobuf.ByteString getModelBytes(); + com.google.protobuf.ByteString + getModelBytes(); /** - * - * *
    * The BCP-47 language code of source text in the initial request, detected
    * automatically, if no source language was passed within the initial
@@ -100,13 +72,10 @@ public interface TranslationOrBuilder
    * 
* * string detected_language_code = 4; - * * @return The detectedLanguageCode. */ java.lang.String getDetectedLanguageCode(); /** - * - * *
    * The BCP-47 language code of source text in the initial request, detected
    * automatically, if no source language was passed within the initial
@@ -115,44 +84,35 @@ public interface TranslationOrBuilder
    * 
* * string detected_language_code = 4; - * * @return The bytes for detectedLanguageCode. */ - com.google.protobuf.ByteString getDetectedLanguageCodeBytes(); + com.google.protobuf.ByteString + getDetectedLanguageCodeBytes(); /** - * - * *
    * The `glossary_config` used for this translation.
    * 
* * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; - * * @return Whether the glossaryConfig field is set. */ boolean hasGlossaryConfig(); /** - * - * *
    * The `glossary_config` used for this translation.
    * 
* * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; - * * @return The glossaryConfig. */ com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossaryConfig(); /** - * - * *
    * The `glossary_config` used for this translation.
    * 
* * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; */ - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder - getGlossaryConfigOrBuilder(); + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder getGlossaryConfigOrBuilder(); } diff --git a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceProto.java b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceProto.java new file mode 100644 index 00000000..44f96b53 --- /dev/null +++ b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceProto.java @@ -0,0 +1,883 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/translate/v3beta1/translation_service.proto + +package com.google.cloud.translate.v3beta1; + +public final class TranslationServiceProto { + private TranslationServiceProto() {} + 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_translation_v3beta1_TranslateTextGlossaryConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_TranslateTextGlossaryConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_TranslateTextResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_TranslateTextResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_Translation_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_Translation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_DetectedLanguage_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_DetectedLanguage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_DetectLanguageResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_DetectLanguageResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_GetSupportedLanguagesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_GetSupportedLanguagesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_SupportedLanguages_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_SupportedLanguages_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_SupportedLanguage_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_SupportedLanguage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_GcsSource_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_GcsSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_InputConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_InputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_GcsDestination_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_GcsDestination_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_OutputConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_OutputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_DocumentInputConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_DocumentInputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_DocumentOutputConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_DocumentOutputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_DocumentTranslation_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_DocumentTranslation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_TranslateDocumentResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_TranslateDocumentResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_ModelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_ModelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_GlossariesEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_GlossariesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_BatchTranslateMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_BatchTranslateMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_BatchTranslateResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_BatchTranslateResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_GlossaryInputConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_GlossaryInputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_Glossary_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_Glossary_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodePair_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodePair_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodesSet_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodesSet_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_CreateGlossaryRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_CreateGlossaryRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_GetGlossaryRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_GetGlossaryRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_DeleteGlossaryRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_DeleteGlossaryRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_ListGlossariesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_ListGlossariesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_ListGlossariesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_ListGlossariesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_CreateGlossaryMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_CreateGlossaryMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_DeleteGlossaryMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_DeleteGlossaryMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_DeleteGlossaryResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_DeleteGlossaryResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_ModelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_ModelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_GlossariesEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_GlossariesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_FormatConversionsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_FormatConversionsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_BatchDocumentInputConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_BatchDocumentInputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_BatchDocumentOutputConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_BatchDocumentOutputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentMetadata_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n8google/cloud/translate/v3beta1/transla" + + "tion_service.proto\022 google.cloud.transla" + + "tion.v3beta1\032\034google/api/annotations.pro" + + "to\032\027google/api/client.proto\032\037google/api/" + + "field_behavior.proto\032\031google/api/resourc" + + "e.proto\032#google/longrunning/operations.p" + + "roto\032\037google/protobuf/timestamp.proto\032\027g" + + "oogle/rpc/status.proto\"N\n\033TranslateTextG" + + "lossaryConfig\022\025\n\010glossary\030\001 \001(\tB\003\340A\002\022\030\n\013" + + "ignore_case\030\002 \001(\010B\003\340A\001\"\277\003\n\024TranslateText" + + "Request\022\025\n\010contents\030\001 \003(\tB\003\340A\002\022\026\n\tmime_t" + + "ype\030\003 \001(\tB\003\340A\001\022!\n\024source_language_code\030\004" + + " \001(\tB\003\340A\001\022!\n\024target_language_code\030\005 \001(\tB" + + "\003\340A\002\0229\n\006parent\030\010 \001(\tB)\340A\002\372A#\n!locations." + + "googleapis.com/Location\022\022\n\005model\030\006 \001(\tB\003" + + "\340A\001\022[\n\017glossary_config\030\007 \001(\0132=.google.cl" + + "oud.translation.v3beta1.TranslateTextGlo" + + "ssaryConfigB\003\340A\001\022W\n\006labels\030\n \003(\0132B.googl" + + "e.cloud.translation.v3beta1.TranslateTex" + + "tRequest.LabelsEntryB\003\340A\001\032-\n\013LabelsEntry" + + "\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\252\001\n\025Tra" + + "nslateTextResponse\022C\n\014translations\030\001 \003(\013" + + "2-.google.cloud.translation.v3beta1.Tran" + + "slation\022L\n\025glossary_translations\030\003 \003(\0132-" + + ".google.cloud.translation.v3beta1.Transl" + + "ation\"\255\001\n\013Translation\022\027\n\017translated_text" + + "\030\001 \001(\t\022\r\n\005model\030\002 \001(\t\022\036\n\026detected_langua" + + "ge_code\030\004 \001(\t\022V\n\017glossary_config\030\003 \001(\0132=" + + ".google.cloud.translation.v3beta1.Transl" + + "ateTextGlossaryConfig\"\244\002\n\025DetectLanguage" + + "Request\0229\n\006parent\030\005 \001(\tB)\340A\002\372A#\n!locatio" + + "ns.googleapis.com/Location\022\022\n\005model\030\004 \001(" + + "\tB\003\340A\001\022\021\n\007content\030\001 \001(\tH\000\022\026\n\tmime_type\030\003" + + " \001(\tB\003\340A\001\022X\n\006labels\030\006 \003(\0132C.google.cloud" + + ".translation.v3beta1.DetectLanguageReque" + + "st.LabelsEntryB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003ke" + + "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\010\n\006source\"=\n\020" + + "DetectedLanguage\022\025\n\rlanguage_code\030\001 \001(\t\022" + + "\022\n\nconfidence\030\002 \001(\002\"_\n\026DetectLanguageRes" + + "ponse\022E\n\tlanguages\030\001 \003(\01322.google.cloud." + + "translation.v3beta1.DetectedLanguage\"\221\001\n" + + "\034GetSupportedLanguagesRequest\0229\n\006parent\030" + + "\003 \001(\tB)\340A\002\372A#\n!locations.googleapis.com/" + + "Location\022\"\n\025display_language_code\030\001 \001(\tB" + + "\003\340A\001\022\022\n\005model\030\002 \001(\tB\003\340A\001\"\\\n\022SupportedLan" + + "guages\022F\n\tlanguages\030\001 \003(\01323.google.cloud" + + ".translation.v3beta1.SupportedLanguage\"p" + + "\n\021SupportedLanguage\022\025\n\rlanguage_code\030\001 \001" + + "(\t\022\024\n\014display_name\030\002 \001(\t\022\026\n\016support_sour" + + "ce\030\003 \001(\010\022\026\n\016support_target\030\004 \001(\010\"#\n\tGcsS" + + "ource\022\026\n\tinput_uri\030\001 \001(\tB\003\340A\002\"r\n\013InputCo" + + "nfig\022\026\n\tmime_type\030\001 \001(\tB\003\340A\001\022A\n\ngcs_sour" + + "ce\030\002 \001(\0132+.google.cloud.translation.v3be" + + "ta1.GcsSourceH\000B\010\n\006source\"0\n\016GcsDestinat" + + "ion\022\036\n\021output_uri_prefix\030\001 \001(\tB\003\340A\002\"j\n\014O" + + "utputConfig\022K\n\017gcs_destination\030\001 \001(\01320.g" + + "oogle.cloud.translation.v3beta1.GcsDesti" + + "nationH\000B\r\n\013destination\"\210\001\n\023DocumentInpu" + + "tConfig\022\021\n\007content\030\001 \001(\014H\000\022A\n\ngcs_source" + + "\030\002 \001(\0132+.google.cloud.translation.v3beta" + + "1.GcsSourceH\000\022\021\n\tmime_type\030\004 \001(\tB\010\n\006sour" + + "ce\"\217\001\n\024DocumentOutputConfig\022P\n\017gcs_desti" + + "nation\030\001 \001(\01320.google.cloud.translation." + + "v3beta1.GcsDestinationB\003\340A\001H\000\022\026\n\tmime_ty" + + "pe\030\003 \001(\tB\003\340A\001B\r\n\013destination\"\252\004\n\030Transla" + + "teDocumentRequest\022\023\n\006parent\030\001 \001(\tB\003\340A\002\022!" + + "\n\024source_language_code\030\002 \001(\tB\003\340A\001\022!\n\024tar" + + "get_language_code\030\003 \001(\tB\003\340A\002\022Y\n\025document" + + "_input_config\030\004 \001(\01325.google.cloud.trans" + + "lation.v3beta1.DocumentInputConfigB\003\340A\002\022" + + "[\n\026document_output_config\030\005 \001(\01326.google" + + ".cloud.translation.v3beta1.DocumentOutpu" + + "tConfigB\003\340A\001\022\022\n\005model\030\006 \001(\tB\003\340A\001\022[\n\017glos" + + "sary_config\030\007 \001(\0132=.google.cloud.transla" + + "tion.v3beta1.TranslateTextGlossaryConfig" + + "B\003\340A\001\022[\n\006labels\030\010 \003(\0132F.google.cloud.tra" + + "nslation.v3beta1.TranslateDocumentReques" + + "t.LabelsEntryB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003key" + + "\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"e\n\023DocumentTra" + + "nslation\022\033\n\023byte_stream_outputs\030\001 \003(\014\022\021\n" + + "\tmime_type\030\002 \001(\t\022\036\n\026detected_language_co" + + "de\030\003 \001(\t\"\265\002\n\031TranslateDocumentResponse\022S" + + "\n\024document_translation\030\001 \001(\01325.google.cl" + + "oud.translation.v3beta1.DocumentTranslat" + + "ion\022\\\n\035glossary_document_translation\030\002 \001" + + "(\01325.google.cloud.translation.v3beta1.Do" + + "cumentTranslation\022\r\n\005model\030\003 \001(\t\022V\n\017glos" + + "sary_config\030\004 \001(\0132=.google.cloud.transla" + + "tion.v3beta1.TranslateTextGlossaryConfig" + + "\"\246\006\n\031BatchTranslateTextRequest\0229\n\006parent" + + "\030\001 \001(\tB)\340A\002\372A#\n!locations.googleapis.com" + + "/Location\022!\n\024source_language_code\030\002 \001(\tB" + + "\003\340A\002\022\"\n\025target_language_codes\030\003 \003(\tB\003\340A\002" + + "\022\\\n\006models\030\004 \003(\0132G.google.cloud.translat" + + "ion.v3beta1.BatchTranslateTextRequest.Mo" + + "delsEntryB\003\340A\001\022I\n\rinput_configs\030\005 \003(\0132-." + + "google.cloud.translation.v3beta1.InputCo" + + "nfigB\003\340A\002\022J\n\routput_config\030\006 \001(\0132..googl" + + "e.cloud.translation.v3beta1.OutputConfig" + + "B\003\340A\002\022d\n\nglossaries\030\007 \003(\0132K.google.cloud" + + ".translation.v3beta1.BatchTranslateTextR" + + "equest.GlossariesEntryB\003\340A\001\022\\\n\006labels\030\t " + + "\003(\0132G.google.cloud.translation.v3beta1.B" + + "atchTranslateTextRequest.LabelsEntryB\003\340A" + + "\001\032-\n\013ModelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002" + + " \001(\t:\0028\001\032p\n\017GlossariesEntry\022\013\n\003key\030\001 \001(\t" + + "\022L\n\005value\030\002 \001(\0132=.google.cloud.translati" + + "on.v3beta1.TranslateTextGlossaryConfig:\002" + + "8\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" + + "\002 \001(\t:\0028\001\"\323\002\n\026BatchTranslateMetadata\022M\n\005" + + "state\030\001 \001(\0162>.google.cloud.translation.v" + + "3beta1.BatchTranslateMetadata.State\022\035\n\025t" + + "ranslated_characters\030\002 \001(\003\022\031\n\021failed_cha" + + "racters\030\003 \001(\003\022\030\n\020total_characters\030\004 \001(\003\022" + + "/\n\013submit_time\030\005 \001(\0132\032.google.protobuf.T" + + "imestamp\"e\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000" + + "\022\013\n\007RUNNING\020\001\022\r\n\tSUCCEEDED\020\002\022\n\n\006FAILED\020\003" + + "\022\016\n\nCANCELLING\020\004\022\r\n\tCANCELLED\020\005\"\313\001\n\026Batc" + + "hTranslateResponse\022\030\n\020total_characters\030\001" + + " \001(\003\022\035\n\025translated_characters\030\002 \001(\003\022\031\n\021f" + + "ailed_characters\030\003 \001(\003\022/\n\013submit_time\030\004 " + + "\001(\0132\032.google.protobuf.Timestamp\022,\n\010end_t" + + "ime\030\005 \001(\0132\032.google.protobuf.Timestamp\"b\n" + + "\023GlossaryInputConfig\022A\n\ngcs_source\030\001 \001(\013" + + "2+.google.cloud.translation.v3beta1.GcsS" + + "ourceH\000B\010\n\006source\"\216\005\n\010Glossary\022\021\n\004name\030\001" + + " \001(\tB\003\340A\002\022T\n\rlanguage_pair\030\003 \001(\0132;.googl" + + "e.cloud.translation.v3beta1.Glossary.Lan" + + "guageCodePairH\000\022Y\n\022language_codes_set\030\004 " + + "\001(\0132;.google.cloud.translation.v3beta1.G" + + "lossary.LanguageCodesSetH\000\022K\n\014input_conf" + + "ig\030\005 \001(\01325.google.cloud.translation.v3be" + + "ta1.GlossaryInputConfig\022\030\n\013entry_count\030\006" + + " \001(\005B\003\340A\003\0224\n\013submit_time\030\007 \001(\0132\032.google." + + "protobuf.TimestampB\003\340A\003\0221\n\010end_time\030\010 \001(" + + "\0132\032.google.protobuf.TimestampB\003\340A\003\032N\n\020La" + + "nguageCodePair\022\034\n\024source_language_code\030\001" + + " \001(\t\022\034\n\024target_language_code\030\002 \001(\t\032*\n\020La" + + "nguageCodesSet\022\026\n\016language_codes\030\001 \003(\t:e" + + "\352Ab\n!translate.googleapis.com/Glossary\022=" + + "projects/{project}/locations/{location}/" + + "glossaries/{glossary}B\013\n\tlanguages\"\225\001\n\025C" + + "reateGlossaryRequest\0229\n\006parent\030\001 \001(\tB)\340A" + + "\002\372A#\n!locations.googleapis.com/Location\022" + + "A\n\010glossary\030\002 \001(\0132*.google.cloud.transla" + + "tion.v3beta1.GlossaryB\003\340A\002\"M\n\022GetGlossar" + + "yRequest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!translat" + + "e.googleapis.com/Glossary\"P\n\025DeleteGloss" + + "aryRequest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!transl" + + "ate.googleapis.com/Glossary\"\230\001\n\025ListGlos" + + "sariesRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!l" + + "ocations.googleapis.com/Location\022\026\n\tpage" + + "_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A" + + "\001\022\023\n\006filter\030\004 \001(\tB\003\340A\001\"q\n\026ListGlossaries" + + "Response\022>\n\nglossaries\030\001 \003(\0132*.google.cl" + + "oud.translation.v3beta1.Glossary\022\027\n\017next" + + "_page_token\030\002 \001(\t\"\215\002\n\026CreateGlossaryMeta" + + "data\022\014\n\004name\030\001 \001(\t\022M\n\005state\030\002 \001(\0162>.goog" + + "le.cloud.translation.v3beta1.CreateGloss" + + "aryMetadata.State\022/\n\013submit_time\030\003 \001(\0132\032" + + ".google.protobuf.Timestamp\"e\n\005State\022\025\n\021S" + + "TATE_UNSPECIFIED\020\000\022\013\n\007RUNNING\020\001\022\r\n\tSUCCE" + + "EDED\020\002\022\n\n\006FAILED\020\003\022\016\n\nCANCELLING\020\004\022\r\n\tCA" + + "NCELLED\020\005\"\215\002\n\026DeleteGlossaryMetadata\022\014\n\004" + + "name\030\001 \001(\t\022M\n\005state\030\002 \001(\0162>.google.cloud" + + ".translation.v3beta1.DeleteGlossaryMetad" + + "ata.State\022/\n\013submit_time\030\003 \001(\0132\032.google." + + "protobuf.Timestamp\"e\n\005State\022\025\n\021STATE_UNS" + + "PECIFIED\020\000\022\013\n\007RUNNING\020\001\022\r\n\tSUCCEEDED\020\002\022\n" + + "\n\006FAILED\020\003\022\016\n\nCANCELLING\020\004\022\r\n\tCANCELLED\020" + + "\005\"\205\001\n\026DeleteGlossaryResponse\022\014\n\004name\030\001 \001" + + "(\t\022/\n\013submit_time\030\002 \001(\0132\032.google.protobu" + + "f.Timestamp\022,\n\010end_time\030\003 \001(\0132\032.google.p" + + "rotobuf.Timestamp\"\362\006\n\035BatchTranslateDocu" + + "mentRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!loc" + + "ations.googleapis.com/Location\022!\n\024source" + + "_language_code\030\002 \001(\tB\003\340A\002\022\"\n\025target_lang" + + "uage_codes\030\003 \003(\tB\003\340A\002\022V\n\rinput_configs\030\004" + + " \003(\0132:.google.cloud.translation.v3beta1." + + "BatchDocumentInputConfigB\003\340A\002\022W\n\routput_" + + "config\030\005 \001(\0132;.google.cloud.translation." + + "v3beta1.BatchDocumentOutputConfigB\003\340A\002\022`" + + "\n\006models\030\006 \003(\0132K.google.cloud.translatio" + + "n.v3beta1.BatchTranslateDocumentRequest." + + "ModelsEntryB\003\340A\001\022h\n\nglossaries\030\007 \003(\0132O.g" + + "oogle.cloud.translation.v3beta1.BatchTra" + + "nslateDocumentRequest.GlossariesEntryB\003\340" + + "A\001\022w\n\022format_conversions\030\010 \003(\0132V.google." + + "cloud.translation.v3beta1.BatchTranslate" + + "DocumentRequest.FormatConversionsEntryB\003" + + "\340A\001\032-\n\013ModelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value" + + "\030\002 \001(\t:\0028\001\032p\n\017GlossariesEntry\022\013\n\003key\030\001 \001" + + "(\t\022L\n\005value\030\002 \001(\0132=.google.cloud.transla" + + "tion.v3beta1.TranslateTextGlossaryConfig" + + ":\0028\001\0328\n\026FormatConversionsEntry\022\013\n\003key\030\001 " + + "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"g\n\030BatchDocumentI" + + "nputConfig\022A\n\ngcs_source\030\001 \001(\0132+.google." + + "cloud.translation.v3beta1.GcsSourceH\000B\010\n" + + "\006source\"w\n\031BatchDocumentOutputConfig\022K\n\017" + + "gcs_destination\030\001 \001(\01320.google.cloud.tra" + + "nslation.v3beta1.GcsDestinationH\000B\r\n\013des" + + "tination\"\331\002\n\036BatchTranslateDocumentRespo" + + "nse\022\023\n\013total_pages\030\001 \001(\003\022\030\n\020translated_p" + + "ages\030\002 \001(\003\022\024\n\014failed_pages\030\003 \001(\003\022\034\n\024tota" + + "l_billable_pages\030\004 \001(\003\022\030\n\020total_characte" + + "rs\030\005 \001(\003\022\035\n\025translated_characters\030\006 \001(\003\022" + + "\031\n\021failed_characters\030\007 \001(\003\022!\n\031total_bill" + + "able_characters\030\010 \001(\003\022/\n\013submit_time\030\t \001" + + "(\0132\032.google.protobuf.Timestamp\022,\n\010end_ti" + + "me\030\n \001(\0132\032.google.protobuf.Timestamp\"\351\003\n" + + "\036BatchTranslateDocumentMetadata\022U\n\005state" + + "\030\001 \001(\0162F.google.cloud.translation.v3beta" + + "1.BatchTranslateDocumentMetadata.State\022\023" + + "\n\013total_pages\030\002 \001(\003\022\030\n\020translated_pages\030" + + "\003 \001(\003\022\024\n\014failed_pages\030\004 \001(\003\022\034\n\024total_bil" + + "lable_pages\030\005 \001(\003\022\030\n\020total_characters\030\006 " + + "\001(\003\022\035\n\025translated_characters\030\007 \001(\003\022\031\n\021fa" + + "iled_characters\030\010 \001(\003\022!\n\031total_billable_" + + "characters\030\t \001(\003\022/\n\013submit_time\030\n \001(\0132\032." + + "google.protobuf.Timestamp\"e\n\005State\022\025\n\021ST" + + "ATE_UNSPECIFIED\020\000\022\013\n\007RUNNING\020\001\022\r\n\tSUCCEE" + + "DED\020\002\022\n\n\006FAILED\020\003\022\016\n\nCANCELLING\020\004\022\r\n\tCAN" + + "CELLED\020\0052\302\024\n\022TranslationService\022\364\001\n\rTran" + + "slateText\0226.google.cloud.translation.v3b" + + "eta1.TranslateTextRequest\0327.google.cloud" + + ".translation.v3beta1.TranslateTextRespon" + + "se\"r\202\323\344\223\002l\"6/v3beta1/{parent=projects/*/" + + "locations/*}:translateText:\001*Z/\"*/v3beta" + + "1/{parent=projects/*}:translateText:\001*\022\223" + + "\002\n\016DetectLanguage\0227.google.cloud.transla" + + "tion.v3beta1.DetectLanguageRequest\0328.goo" + + "gle.cloud.translation.v3beta1.DetectLang" + + "uageResponse\"\215\001\202\323\344\223\002n\"7/v3beta1/{parent=" + + "projects/*/locations/*}:detectLanguage:\001" + + "*Z0\"+/v3beta1/{parent=projects/*}:detect" + + "Language:\001*\332A\026parent,model,mime_type\022\253\002\n" + + "\025GetSupportedLanguages\022>.google.cloud.tr" + + "anslation.v3beta1.GetSupportedLanguagesR" + + "equest\0324.google.cloud.translation.v3beta" + + "1.SupportedLanguages\"\233\001\202\323\344\223\002p\022;/v3beta1/" + + "{parent=projects/*/locations/*}/supporte" + + "dLanguagesZ1\022//v3beta1/{parent=projects/" + + "*}/supportedLanguages\332A\"parent,display_l" + + "anguage_code,model\022\323\001\n\021TranslateDocument" + + "\022:.google.cloud.translation.v3beta1.Tran" + + "slateDocumentRequest\032;.google.cloud.tran" + + "slation.v3beta1.TranslateDocumentRespons" + + "e\"E\202\323\344\223\002?\":/v3beta1/{parent=projects/*/l" + + "ocations/*}:translateDocument:\001*\022\353\001\n\022Bat" + + "chTranslateText\022;.google.cloud.translati" + + "on.v3beta1.BatchTranslateTextRequest\032\035.g" + + "oogle.longrunning.Operation\"y\202\323\344\223\002@\";/v3" + + "beta1/{parent=projects/*/locations/*}:ba" + + "tchTranslateText:\001*\312A0\n\026BatchTranslateRe" + + "sponse\022\026BatchTranslateMetadata\022\330\002\n\026Batch" + + "TranslateDocument\022?.google.cloud.transla" + + "tion.v3beta1.BatchTranslateDocumentReque" + + "st\032\035.google.longrunning.Operation\"\335\001\202\323\344\223" + + "\002D\"?/v3beta1/{parent=projects/*/location" + + "s/*}:batchTranslateDocument:\001*\332AMparent," + + "source_language_code,target_language_cod" + + "es,input_configs,output_config\312A@\n\036Batch" + + "TranslateDocumentResponse\022\036BatchTranslat" + + "eDocumentMetadata\022\346\001\n\016CreateGlossary\0227.g" + + "oogle.cloud.translation.v3beta1.CreateGl" + + "ossaryRequest\032\035.google.longrunning.Opera" + + "tion\"|\202\323\344\223\002?\"3/v3beta1/{parent=projects/" + + "*/locations/*}/glossaries:\010glossary\332A\017pa" + + "rent,glossary\312A\"\n\010Glossary\022\026CreateGlossa" + + "ryMetadata\022\320\001\n\016ListGlossaries\0227.google.c" + + "loud.translation.v3beta1.ListGlossariesR" + + "equest\0328.google.cloud.translation.v3beta" + + "1.ListGlossariesResponse\"K\202\323\344\223\0025\0223/v3bet" + + "a1/{parent=projects/*/locations/*}/gloss" + + "aries\332A\rparent,filter\022\263\001\n\013GetGlossary\0224." + + "google.cloud.translation.v3beta1.GetGlos" + + "saryRequest\032*.google.cloud.translation.v" + + "3beta1.Glossary\"B\202\323\344\223\0025\0223/v3beta1/{name=" + + "projects/*/locations/*/glossaries/*}\332A\004n" + + "ame\022\337\001\n\016DeleteGlossary\0227.google.cloud.tr" + + "anslation.v3beta1.DeleteGlossaryRequest\032" + + "\035.google.longrunning.Operation\"u\202\323\344\223\0025*3" + + "/v3beta1/{name=projects/*/locations/*/gl" + + "ossaries/*}\332A\004name\312A0\n\026DeleteGlossaryRes" + + "ponse\022\026DeleteGlossaryMetadata\032~\312A\030transl" + + "ate.googleapis.com\322A`https://www.googlea" + + "pis.com/auth/cloud-platform,https://www." + + "googleapis.com/auth/cloud-translationB\361\001" + + "\n\"com.google.cloud.translate.v3beta1B\027Tr" + + "anslationServiceProtoP\001ZGgoogle.golang.o" + + "rg/genproto/googleapis/cloud/translate/v" + + "3beta1;translate\370\001\001\252\002\036Google.Cloud.Trans" + + "late.V3Beta1\312\002\036Google\\Cloud\\Translate\\V3" + + "beta1\352\002!Google::Cloud::Translate::V3beta" + + "1b\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.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), + }); + internal_static_google_cloud_translation_v3beta1_TranslateTextGlossaryConfig_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_translation_v3beta1_TranslateTextGlossaryConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_TranslateTextGlossaryConfig_descriptor, + new java.lang.String[] { "Glossary", "IgnoreCase", }); + internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_descriptor, + new java.lang.String[] { "Contents", "MimeType", "SourceLanguageCode", "TargetLanguageCode", "Parent", "Model", "GlossaryConfig", "Labels", }); + internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_LabelsEntry_descriptor = + internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_translation_v3beta1_TranslateTextResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_translation_v3beta1_TranslateTextResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_TranslateTextResponse_descriptor, + new java.lang.String[] { "Translations", "GlossaryTranslations", }); + internal_static_google_cloud_translation_v3beta1_Translation_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_translation_v3beta1_Translation_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_Translation_descriptor, + new java.lang.String[] { "TranslatedText", "Model", "DetectedLanguageCode", "GlossaryConfig", }); + internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_descriptor, + new java.lang.String[] { "Parent", "Model", "Content", "MimeType", "Labels", "Source", }); + internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_LabelsEntry_descriptor = + internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_translation_v3beta1_DetectedLanguage_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_translation_v3beta1_DetectedLanguage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_DetectedLanguage_descriptor, + new java.lang.String[] { "LanguageCode", "Confidence", }); + internal_static_google_cloud_translation_v3beta1_DetectLanguageResponse_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_translation_v3beta1_DetectLanguageResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_DetectLanguageResponse_descriptor, + new java.lang.String[] { "Languages", }); + internal_static_google_cloud_translation_v3beta1_GetSupportedLanguagesRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_translation_v3beta1_GetSupportedLanguagesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_GetSupportedLanguagesRequest_descriptor, + new java.lang.String[] { "Parent", "DisplayLanguageCode", "Model", }); + internal_static_google_cloud_translation_v3beta1_SupportedLanguages_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_translation_v3beta1_SupportedLanguages_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_SupportedLanguages_descriptor, + new java.lang.String[] { "Languages", }); + internal_static_google_cloud_translation_v3beta1_SupportedLanguage_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_translation_v3beta1_SupportedLanguage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_SupportedLanguage_descriptor, + new java.lang.String[] { "LanguageCode", "DisplayName", "SupportSource", "SupportTarget", }); + internal_static_google_cloud_translation_v3beta1_GcsSource_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_translation_v3beta1_GcsSource_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_GcsSource_descriptor, + new java.lang.String[] { "InputUri", }); + internal_static_google_cloud_translation_v3beta1_InputConfig_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_translation_v3beta1_InputConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_InputConfig_descriptor, + new java.lang.String[] { "MimeType", "GcsSource", "Source", }); + internal_static_google_cloud_translation_v3beta1_GcsDestination_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_translation_v3beta1_GcsDestination_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_GcsDestination_descriptor, + new java.lang.String[] { "OutputUriPrefix", }); + internal_static_google_cloud_translation_v3beta1_OutputConfig_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_translation_v3beta1_OutputConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_OutputConfig_descriptor, + new java.lang.String[] { "GcsDestination", "Destination", }); + internal_static_google_cloud_translation_v3beta1_DocumentInputConfig_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_translation_v3beta1_DocumentInputConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_DocumentInputConfig_descriptor, + new java.lang.String[] { "Content", "GcsSource", "MimeType", "Source", }); + internal_static_google_cloud_translation_v3beta1_DocumentOutputConfig_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_translation_v3beta1_DocumentOutputConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_DocumentOutputConfig_descriptor, + new java.lang.String[] { "GcsDestination", "MimeType", "Destination", }); + internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_descriptor, + new java.lang.String[] { "Parent", "SourceLanguageCode", "TargetLanguageCode", "DocumentInputConfig", "DocumentOutputConfig", "Model", "GlossaryConfig", "Labels", }); + internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_LabelsEntry_descriptor = + internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_translation_v3beta1_DocumentTranslation_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_translation_v3beta1_DocumentTranslation_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_DocumentTranslation_descriptor, + new java.lang.String[] { "ByteStreamOutputs", "MimeType", "DetectedLanguageCode", }); + internal_static_google_cloud_translation_v3beta1_TranslateDocumentResponse_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_translation_v3beta1_TranslateDocumentResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_TranslateDocumentResponse_descriptor, + new java.lang.String[] { "DocumentTranslation", "GlossaryDocumentTranslation", "Model", "GlossaryConfig", }); + internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_descriptor, + new java.lang.String[] { "Parent", "SourceLanguageCode", "TargetLanguageCodes", "Models", "InputConfigs", "OutputConfig", "Glossaries", "Labels", }); + internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_ModelsEntry_descriptor = + internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_ModelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_ModelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_GlossariesEntry_descriptor = + internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_GlossariesEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_GlossariesEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_LabelsEntry_descriptor = + internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_translation_v3beta1_BatchTranslateMetadata_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_translation_v3beta1_BatchTranslateMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_BatchTranslateMetadata_descriptor, + new java.lang.String[] { "State", "TranslatedCharacters", "FailedCharacters", "TotalCharacters", "SubmitTime", }); + internal_static_google_cloud_translation_v3beta1_BatchTranslateResponse_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_translation_v3beta1_BatchTranslateResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_BatchTranslateResponse_descriptor, + new java.lang.String[] { "TotalCharacters", "TranslatedCharacters", "FailedCharacters", "SubmitTime", "EndTime", }); + internal_static_google_cloud_translation_v3beta1_GlossaryInputConfig_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_cloud_translation_v3beta1_GlossaryInputConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_GlossaryInputConfig_descriptor, + new java.lang.String[] { "GcsSource", "Source", }); + internal_static_google_cloud_translation_v3beta1_Glossary_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_cloud_translation_v3beta1_Glossary_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_Glossary_descriptor, + new java.lang.String[] { "Name", "LanguagePair", "LanguageCodesSet", "InputConfig", "EntryCount", "SubmitTime", "EndTime", "Languages", }); + internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodePair_descriptor = + internal_static_google_cloud_translation_v3beta1_Glossary_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodePair_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodePair_descriptor, + new java.lang.String[] { "SourceLanguageCode", "TargetLanguageCode", }); + internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodesSet_descriptor = + internal_static_google_cloud_translation_v3beta1_Glossary_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodesSet_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodesSet_descriptor, + new java.lang.String[] { "LanguageCodes", }); + internal_static_google_cloud_translation_v3beta1_CreateGlossaryRequest_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_cloud_translation_v3beta1_CreateGlossaryRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_CreateGlossaryRequest_descriptor, + new java.lang.String[] { "Parent", "Glossary", }); + internal_static_google_cloud_translation_v3beta1_GetGlossaryRequest_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_google_cloud_translation_v3beta1_GetGlossaryRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_GetGlossaryRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_translation_v3beta1_DeleteGlossaryRequest_descriptor = + getDescriptor().getMessageTypes().get(26); + internal_static_google_cloud_translation_v3beta1_DeleteGlossaryRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_DeleteGlossaryRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_translation_v3beta1_ListGlossariesRequest_descriptor = + getDescriptor().getMessageTypes().get(27); + internal_static_google_cloud_translation_v3beta1_ListGlossariesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_ListGlossariesRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", }); + internal_static_google_cloud_translation_v3beta1_ListGlossariesResponse_descriptor = + getDescriptor().getMessageTypes().get(28); + internal_static_google_cloud_translation_v3beta1_ListGlossariesResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_ListGlossariesResponse_descriptor, + new java.lang.String[] { "Glossaries", "NextPageToken", }); + internal_static_google_cloud_translation_v3beta1_CreateGlossaryMetadata_descriptor = + getDescriptor().getMessageTypes().get(29); + internal_static_google_cloud_translation_v3beta1_CreateGlossaryMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_CreateGlossaryMetadata_descriptor, + new java.lang.String[] { "Name", "State", "SubmitTime", }); + internal_static_google_cloud_translation_v3beta1_DeleteGlossaryMetadata_descriptor = + getDescriptor().getMessageTypes().get(30); + internal_static_google_cloud_translation_v3beta1_DeleteGlossaryMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_DeleteGlossaryMetadata_descriptor, + new java.lang.String[] { "Name", "State", "SubmitTime", }); + internal_static_google_cloud_translation_v3beta1_DeleteGlossaryResponse_descriptor = + getDescriptor().getMessageTypes().get(31); + internal_static_google_cloud_translation_v3beta1_DeleteGlossaryResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_DeleteGlossaryResponse_descriptor, + new java.lang.String[] { "Name", "SubmitTime", "EndTime", }); + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_descriptor = + getDescriptor().getMessageTypes().get(32); + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_descriptor, + new java.lang.String[] { "Parent", "SourceLanguageCode", "TargetLanguageCodes", "InputConfigs", "OutputConfig", "Models", "Glossaries", "FormatConversions", }); + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_ModelsEntry_descriptor = + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_ModelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_ModelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_GlossariesEntry_descriptor = + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_GlossariesEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_GlossariesEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_FormatConversionsEntry_descriptor = + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_FormatConversionsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_FormatConversionsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_translation_v3beta1_BatchDocumentInputConfig_descriptor = + getDescriptor().getMessageTypes().get(33); + internal_static_google_cloud_translation_v3beta1_BatchDocumentInputConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_BatchDocumentInputConfig_descriptor, + new java.lang.String[] { "GcsSource", "Source", }); + internal_static_google_cloud_translation_v3beta1_BatchDocumentOutputConfig_descriptor = + getDescriptor().getMessageTypes().get(34); + internal_static_google_cloud_translation_v3beta1_BatchDocumentOutputConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_BatchDocumentOutputConfig_descriptor, + new java.lang.String[] { "GcsDestination", "Destination", }); + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentResponse_descriptor = + getDescriptor().getMessageTypes().get(35); + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentResponse_descriptor, + new java.lang.String[] { "TotalPages", "TranslatedPages", "FailedPages", "TotalBillablePages", "TotalCharacters", "TranslatedCharacters", "FailedCharacters", "TotalBillableCharacters", "SubmitTime", "EndTime", }); + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentMetadata_descriptor = + getDescriptor().getMessageTypes().get(36); + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentMetadata_descriptor, + new java.lang.String[] { "State", "TotalPages", "TranslatedPages", "FailedPages", "TotalBillablePages", "TotalCharacters", "TranslatedCharacters", "FailedCharacters", "TotalBillableCharacters", "SubmitTime", }); + 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); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + 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.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-translate-v3beta1/src/main/proto/google/cloud/location/locations.proto b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/proto/google/cloud/location/locations.proto similarity index 100% rename from proto-google-cloud-translate-v3beta1/src/main/proto/google/cloud/location/locations.proto rename to owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/proto/google/cloud/location/locations.proto diff --git a/proto-google-cloud-translate-v3beta1/src/main/proto/google/cloud/translate/v3beta1/translation_service.proto b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/proto/google/cloud/translate/v3beta1/translation_service.proto similarity index 99% rename from proto-google-cloud-translate-v3beta1/src/main/proto/google/cloud/translate/v3beta1/translation_service.proto rename to owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/proto/google/cloud/translate/v3beta1/translation_service.proto index 03386518..362d3ef3 100644 --- a/proto-google-cloud-translate-v3beta1/src/main/proto/google/cloud/translate/v3beta1/translation_service.proto +++ b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/proto/google/cloud/translate/v3beta1/translation_service.proto @@ -120,6 +120,8 @@ service TranslationService { post: "/v3beta1/{parent=projects/*/locations/*}:batchTranslateDocument" body: "*" }; + option (google.api.method_signature) = + "parent,source_language_code,target_language_codes,input_configs,output_config"; option (google.longrunning.operation_info) = { response_type: "BatchTranslateDocumentResponse" metadata_type: "BatchTranslateDocumentMetadata" diff --git a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/location/GetLocationRequestOrBuilder.java b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/location/GetLocationRequestOrBuilder.java deleted file mode 100644 index a8f3d0f9..00000000 --- a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/location/GetLocationRequestOrBuilder.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright 2020 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/location/locations.proto - -package com.google.cloud.location; - -public interface GetLocationRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.location.GetLocationRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Resource name for the location.
-   * 
- * - * string name = 1; - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Resource name for the location.
-   * 
- * - * string name = 1; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/location/LocationsProto.java b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/location/LocationsProto.java deleted file mode 100644 index d2b6da30..00000000 --- a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/location/LocationsProto.java +++ /dev/null @@ -1,150 +0,0 @@ -/* - * Copyright 2020 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/location/locations.proto - -package com.google.cloud.location; - -public final class LocationsProto { - private LocationsProto() {} - - 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_location_ListLocationsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_location_ListLocationsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_location_ListLocationsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_location_ListLocationsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_location_GetLocationRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_location_GetLocationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_location_Location_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_location_Location_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_location_Location_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_location_Location_LabelsEntry_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/location/locations.proto\022" - + "\025google.cloud.location\032\034google/api/annot" - + "ations.proto\032\031google/protobuf/any.proto\032" - + "\027google/api/client.proto\"[\n\024ListLocation" - + "sRequest\022\014\n\004name\030\001 \001(\t\022\016\n\006filter\030\002 \001(\t\022\021" - + "\n\tpage_size\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\"d\n" - + "\025ListLocationsResponse\0222\n\tlocations\030\001 \003(" - + "\0132\037.google.cloud.location.Location\022\027\n\017ne" - + "xt_page_token\030\002 \001(\t\"\"\n\022GetLocationReques" - + "t\022\014\n\004name\030\001 \001(\t\"\327\001\n\010Location\022\014\n\004name\030\001 \001" - + "(\t\022\023\n\013location_id\030\004 \001(\t\022\024\n\014display_name\030" - + "\005 \001(\t\022;\n\006labels\030\002 \003(\0132+.google.cloud.loc" - + "ation.Location.LabelsEntry\022&\n\010metadata\030\003" - + " \001(\0132\024.google.protobuf.Any\032-\n\013LabelsEntr" - + "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\0012\244\003\n\tLo" - + "cations\022\253\001\n\rListLocations\022+.google.cloud" - + ".location.ListLocationsRequest\032,.google." - + "cloud.location.ListLocationsResponse\"?\202\323" - + "\344\223\0029\022\024/v1/{name=locations}Z!\022\037/v1/{name=" - + "projects/*}/locations\022\236\001\n\013GetLocation\022)." - + "google.cloud.location.GetLocationRequest" - + "\032\037.google.cloud.location.Location\"C\202\323\344\223\002" - + "=\022\026/v1/{name=locations/*}Z#\022!/v1/{name=p" - + "rojects/*/locations/*}\032H\312A\024cloud.googlea" - + "pis.com\322A.https://www.googleapis.com/aut" - + "h/cloud-platformBo\n\031com.google.cloud.loc" - + "ationB\016LocationsProtoP\001Z=google.golang.o" - + "rg/genproto/googleapis/cloud/location;lo" - + "cation\370\001\001b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.protobuf.AnyProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - }); - internal_static_google_cloud_location_ListLocationsRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_location_ListLocationsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_location_ListLocationsRequest_descriptor, - new java.lang.String[] { - "Name", "Filter", "PageSize", "PageToken", - }); - internal_static_google_cloud_location_ListLocationsResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_location_ListLocationsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_location_ListLocationsResponse_descriptor, - new java.lang.String[] { - "Locations", "NextPageToken", - }); - internal_static_google_cloud_location_GetLocationRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_location_GetLocationRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_location_GetLocationRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_location_Location_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_location_Location_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_location_Location_descriptor, - new java.lang.String[] { - "Name", "LocationId", "DisplayName", "Labels", "Metadata", - }); - internal_static_google_cloud_location_Location_LabelsEntry_descriptor = - internal_static_google_cloud_location_Location_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_location_Location_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_location_Location_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.oauthScopes); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.protobuf.AnyProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryRequestOrBuilder.java b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryRequestOrBuilder.java deleted file mode 100644 index 90dbc8f3..00000000 --- a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryRequestOrBuilder.java +++ /dev/null @@ -1,95 +0,0 @@ -/* - * Copyright 2020 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/translate/v3/translation_service.proto - -package com.google.cloud.translate.v3; - -public interface CreateGlossaryRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.CreateGlossaryRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The project name.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. The project name.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * Required. The glossary to create.
-   * 
- * - * - * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the glossary field is set. - */ - boolean hasGlossary(); - /** - * - * - *
-   * Required. The glossary to create.
-   * 
- * - * - * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The glossary. - */ - com.google.cloud.translate.v3.Glossary getGlossary(); - /** - * - * - *
-   * Required. The glossary to create.
-   * 
- * - * - * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.translate.v3.GlossaryOrBuilder getGlossaryOrBuilder(); -} diff --git a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryRequestOrBuilder.java b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryRequestOrBuilder.java deleted file mode 100644 index de0e1ac1..00000000 --- a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryRequestOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2020 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/translate/v3/translation_service.proto - -package com.google.cloud.translate.v3; - -public interface DeleteGlossaryRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.DeleteGlossaryRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the glossary to delete.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the glossary to delete.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetGlossaryRequestOrBuilder.java b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetGlossaryRequestOrBuilder.java deleted file mode 100644 index 92058e74..00000000 --- a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetGlossaryRequestOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2020 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/translate/v3/translation_service.proto - -package com.google.cloud.translate.v3; - -public interface GetGlossaryRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.GetGlossaryRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the glossary to retrieve.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the glossary to retrieve.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationServiceProto.java b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationServiceProto.java deleted file mode 100644 index a910f6fb..00000000 --- a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationServiceProto.java +++ /dev/null @@ -1,1013 +0,0 @@ -/* - * Copyright 2020 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/translate/v3/translation_service.proto - -package com.google.cloud.translate.v3; - -public final class TranslationServiceProto { - private TranslationServiceProto() {} - - 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_translation_v3_TranslateTextGlossaryConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_TranslateTextGlossaryConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_TranslateTextRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_TranslateTextRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_TranslateTextRequest_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_TranslateTextRequest_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_TranslateTextResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_TranslateTextResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_Translation_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_Translation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_DetectLanguageRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_DetectLanguageRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_DetectLanguageRequest_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_DetectLanguageRequest_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_DetectedLanguage_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_DetectedLanguage_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_DetectLanguageResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_DetectLanguageResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_GetSupportedLanguagesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_GetSupportedLanguagesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_SupportedLanguages_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_SupportedLanguages_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_SupportedLanguage_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_SupportedLanguage_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_GcsSource_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_GcsSource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_InputConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_InputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_GcsDestination_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_GcsDestination_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_OutputConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_OutputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_DocumentInputConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_DocumentInputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_DocumentOutputConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_DocumentOutputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_TranslateDocumentRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_TranslateDocumentRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_TranslateDocumentRequest_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_TranslateDocumentRequest_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_DocumentTranslation_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_DocumentTranslation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_TranslateDocumentResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_TranslateDocumentResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_ModelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_ModelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_GlossariesEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_GlossariesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_BatchTranslateMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_BatchTranslateMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_BatchTranslateResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_BatchTranslateResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_GlossaryInputConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_GlossaryInputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_Glossary_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_Glossary_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_Glossary_LanguageCodePair_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_Glossary_LanguageCodePair_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_Glossary_LanguageCodesSet_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_Glossary_LanguageCodesSet_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_CreateGlossaryRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_CreateGlossaryRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_GetGlossaryRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_GetGlossaryRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_DeleteGlossaryRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_DeleteGlossaryRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_ListGlossariesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_ListGlossariesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_ListGlossariesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_ListGlossariesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_CreateGlossaryMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_CreateGlossaryMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_DeleteGlossaryMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_DeleteGlossaryMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_DeleteGlossaryResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_DeleteGlossaryResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_ModelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_ModelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_GlossariesEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_GlossariesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_FormatConversionsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_FormatConversionsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_BatchDocumentInputConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_BatchDocumentInputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_BatchDocumentOutputConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_BatchDocumentOutputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_BatchTranslateDocumentResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_BatchTranslateDocumentResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_BatchTranslateDocumentMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_BatchTranslateDocumentMetadata_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n3google/cloud/translate/v3/translation_" - + "service.proto\022\033google.cloud.translation." - + "v3\032\034google/api/annotations.proto\032\027google" - + "/api/client.proto\032\037google/api/field_beha" - + "vior.proto\032\031google/api/resource.proto\032#g" - + "oogle/longrunning/operations.proto\032\033goog" - + "le/protobuf/empty.proto\032\037google/protobuf" - + "/timestamp.proto\032\027google/rpc/status.prot" - + "o\"N\n\033TranslateTextGlossaryConfig\022\025\n\010glos" - + "sary\030\001 \001(\tB\003\340A\002\022\030\n\013ignore_case\030\002 \001(\010B\003\340A" - + "\001\"\265\003\n\024TranslateTextRequest\022\025\n\010contents\030\001" - + " \003(\tB\003\340A\002\022\026\n\tmime_type\030\003 \001(\tB\003\340A\001\022!\n\024sou" - + "rce_language_code\030\004 \001(\tB\003\340A\001\022!\n\024target_l" - + "anguage_code\030\005 \001(\tB\003\340A\002\0229\n\006parent\030\010 \001(\tB" - + ")\340A\002\372A#\n!locations.googleapis.com/Locati" - + "on\022\022\n\005model\030\006 \001(\tB\003\340A\001\022V\n\017glossary_confi" - + "g\030\007 \001(\01328.google.cloud.translation.v3.Tr" - + "anslateTextGlossaryConfigB\003\340A\001\022R\n\006labels" - + "\030\n \003(\0132=.google.cloud.translation.v3.Tra" - + "nslateTextRequest.LabelsEntryB\003\340A\001\032-\n\013La" - + "belsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" - + "\001\"\240\001\n\025TranslateTextResponse\022>\n\014translati" - + "ons\030\001 \003(\0132(.google.cloud.translation.v3." - + "Translation\022G\n\025glossary_translations\030\003 \003" - + "(\0132(.google.cloud.translation.v3.Transla" - + "tion\"\250\001\n\013Translation\022\027\n\017translated_text\030" - + "\001 \001(\t\022\r\n\005model\030\002 \001(\t\022\036\n\026detected_languag" - + "e_code\030\004 \001(\t\022Q\n\017glossary_config\030\003 \001(\01328." - + "google.cloud.translation.v3.TranslateTex" - + "tGlossaryConfig\"\237\002\n\025DetectLanguageReques" - + "t\0229\n\006parent\030\005 \001(\tB)\340A\002\372A#\n!locations.goo" - + "gleapis.com/Location\022\022\n\005model\030\004 \001(\tB\003\340A\001" - + "\022\021\n\007content\030\001 \001(\tH\000\022\026\n\tmime_type\030\003 \001(\tB\003" - + "\340A\001\022S\n\006labels\030\006 \003(\0132>.google.cloud.trans" - + "lation.v3.DetectLanguageRequest.LabelsEn" - + "tryB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" - + "value\030\002 \001(\t:\0028\001B\010\n\006source\"=\n\020DetectedLan" - + "guage\022\025\n\rlanguage_code\030\001 \001(\t\022\022\n\nconfiden" - + "ce\030\002 \001(\002\"Z\n\026DetectLanguageResponse\022@\n\tla" - + "nguages\030\001 \003(\0132-.google.cloud.translation" - + ".v3.DetectedLanguage\"\221\001\n\034GetSupportedLan" - + "guagesRequest\0229\n\006parent\030\003 \001(\tB)\340A\002\372A#\n!l" - + "ocations.googleapis.com/Location\022\"\n\025disp" - + "lay_language_code\030\001 \001(\tB\003\340A\001\022\022\n\005model\030\002 " - + "\001(\tB\003\340A\001\"W\n\022SupportedLanguages\022A\n\tlangua" - + "ges\030\001 \003(\0132..google.cloud.translation.v3." - + "SupportedLanguage\"p\n\021SupportedLanguage\022\025" - + "\n\rlanguage_code\030\001 \001(\t\022\024\n\014display_name\030\002 " - + "\001(\t\022\026\n\016support_source\030\003 \001(\010\022\026\n\016support_t" - + "arget\030\004 \001(\010\"#\n\tGcsSource\022\026\n\tinput_uri\030\001 " - + "\001(\tB\003\340A\002\"m\n\013InputConfig\022\026\n\tmime_type\030\001 \001" - + "(\tB\003\340A\001\022<\n\ngcs_source\030\002 \001(\0132&.google.clo" - + "ud.translation.v3.GcsSourceH\000B\010\n\006source\"" - + "0\n\016GcsDestination\022\036\n\021output_uri_prefix\030\001" - + " \001(\tB\003\340A\002\"e\n\014OutputConfig\022F\n\017gcs_destina" - + "tion\030\001 \001(\0132+.google.cloud.translation.v3" - + ".GcsDestinationH\000B\r\n\013destination\"\203\001\n\023Doc" - + "umentInputConfig\022\021\n\007content\030\001 \001(\014H\000\022<\n\ng" - + "cs_source\030\002 \001(\0132&.google.cloud.translati" - + "on.v3.GcsSourceH\000\022\021\n\tmime_type\030\004 \001(\tB\010\n\006" - + "source\"\212\001\n\024DocumentOutputConfig\022K\n\017gcs_d" - + "estination\030\001 \001(\0132+.google.cloud.translat" - + "ion.v3.GcsDestinationB\003\340A\001H\000\022\026\n\tmime_typ" - + "e\030\003 \001(\tB\003\340A\001B\r\n\013destination\"\226\004\n\030Translat" - + "eDocumentRequest\022\023\n\006parent\030\001 \001(\tB\003\340A\002\022!\n" - + "\024source_language_code\030\002 \001(\tB\003\340A\001\022!\n\024targ" - + "et_language_code\030\003 \001(\tB\003\340A\002\022T\n\025document_" - + "input_config\030\004 \001(\01320.google.cloud.transl" - + "ation.v3.DocumentInputConfigB\003\340A\002\022V\n\026doc" - + "ument_output_config\030\005 \001(\01321.google.cloud" - + ".translation.v3.DocumentOutputConfigB\003\340A" - + "\001\022\022\n\005model\030\006 \001(\tB\003\340A\001\022V\n\017glossary_config" - + "\030\007 \001(\01328.google.cloud.translation.v3.Tra" - + "nslateTextGlossaryConfigB\003\340A\001\022V\n\006labels\030" - + "\010 \003(\0132A.google.cloud.translation.v3.Tran" - + "slateDocumentRequest.LabelsEntryB\003\340A\001\032-\n" - + "\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t" - + ":\0028\001\"e\n\023DocumentTranslation\022\033\n\023byte_stre" - + "am_outputs\030\001 \003(\014\022\021\n\tmime_type\030\002 \001(\t\022\036\n\026d" - + "etected_language_code\030\003 \001(\t\"\246\002\n\031Translat" - + "eDocumentResponse\022N\n\024document_translatio" - + "n\030\001 \001(\01320.google.cloud.translation.v3.Do" - + "cumentTranslation\022W\n\035glossary_document_t" - + "ranslation\030\002 \001(\01320.google.cloud.translat" - + "ion.v3.DocumentTranslation\022\r\n\005model\030\003 \001(" - + "\t\022Q\n\017glossary_config\030\004 \001(\01328.google.clou" - + "d.translation.v3.TranslateTextGlossaryCo" - + "nfig\"\210\006\n\031BatchTranslateTextRequest\0229\n\006pa" - + "rent\030\001 \001(\tB)\340A\002\372A#\n!locations.googleapis" - + ".com/Location\022!\n\024source_language_code\030\002 " - + "\001(\tB\003\340A\002\022\"\n\025target_language_codes\030\003 \003(\tB" - + "\003\340A\002\022W\n\006models\030\004 \003(\0132B.google.cloud.tran" - + "slation.v3.BatchTranslateTextRequest.Mod" - + "elsEntryB\003\340A\001\022D\n\rinput_configs\030\005 \003(\0132(.g" - + "oogle.cloud.translation.v3.InputConfigB\003" - + "\340A\002\022E\n\routput_config\030\006 \001(\0132).google.clou" - + "d.translation.v3.OutputConfigB\003\340A\002\022_\n\ngl" - + "ossaries\030\007 \003(\0132F.google.cloud.translatio" - + "n.v3.BatchTranslateTextRequest.Glossarie" - + "sEntryB\003\340A\001\022W\n\006labels\030\t \003(\0132B.google.clo" - + "ud.translation.v3.BatchTranslateTextRequ" - + "est.LabelsEntryB\003\340A\001\032-\n\013ModelsEntry\022\013\n\003k" - + "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032k\n\017Glossarie" - + "sEntry\022\013\n\003key\030\001 \001(\t\022G\n\005value\030\002 \001(\01328.goo" - + "gle.cloud.translation.v3.TranslateTextGl" - + "ossaryConfig:\0028\001\032-\n\013LabelsEntry\022\013\n\003key\030\001" - + " \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\316\002\n\026BatchTransla" - + "teMetadata\022H\n\005state\030\001 \001(\01629.google.cloud" - + ".translation.v3.BatchTranslateMetadata.S" - + "tate\022\035\n\025translated_characters\030\002 \001(\003\022\031\n\021f" - + "ailed_characters\030\003 \001(\003\022\030\n\020total_characte" - + "rs\030\004 \001(\003\022/\n\013submit_time\030\005 \001(\0132\032.google.p" - + "rotobuf.Timestamp\"e\n\005State\022\025\n\021STATE_UNSP" - + "ECIFIED\020\000\022\013\n\007RUNNING\020\001\022\r\n\tSUCCEEDED\020\002\022\n\n" - + "\006FAILED\020\003\022\016\n\nCANCELLING\020\004\022\r\n\tCANCELLED\020\005" - + "\"\313\001\n\026BatchTranslateResponse\022\030\n\020total_cha" - + "racters\030\001 \001(\003\022\035\n\025translated_characters\030\002" - + " \001(\003\022\031\n\021failed_characters\030\003 \001(\003\022/\n\013submi" - + "t_time\030\004 \001(\0132\032.google.protobuf.Timestamp" - + "\022,\n\010end_time\030\005 \001(\0132\032.google.protobuf.Tim" - + "estamp\"]\n\023GlossaryInputConfig\022<\n\ngcs_sou" - + "rce\030\001 \001(\0132&.google.cloud.translation.v3." - + "GcsSourceH\000B\010\n\006source\"\377\004\n\010Glossary\022\021\n\004na" - + "me\030\001 \001(\tB\003\340A\002\022O\n\rlanguage_pair\030\003 \001(\01326.g" - + "oogle.cloud.translation.v3.Glossary.Lang" - + "uageCodePairH\000\022T\n\022language_codes_set\030\004 \001" - + "(\01326.google.cloud.translation.v3.Glossar" - + "y.LanguageCodesSetH\000\022F\n\014input_config\030\005 \001" - + "(\01320.google.cloud.translation.v3.Glossar" - + "yInputConfig\022\030\n\013entry_count\030\006 \001(\005B\003\340A\003\0224" - + "\n\013submit_time\030\007 \001(\0132\032.google.protobuf.Ti" - + "mestampB\003\340A\003\0221\n\010end_time\030\010 \001(\0132\032.google." - + "protobuf.TimestampB\003\340A\003\032N\n\020LanguageCodeP" - + "air\022\034\n\024source_language_code\030\001 \001(\t\022\034\n\024tar" - + "get_language_code\030\002 \001(\t\032*\n\020LanguageCodes" - + "Set\022\026\n\016language_codes\030\001 \003(\t:e\352Ab\n!transl" - + "ate.googleapis.com/Glossary\022=projects/{p" - + "roject}/locations/{location}/glossaries/" - + "{glossary}B\013\n\tlanguages\"\220\001\n\025CreateGlossa" - + "ryRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locat" - + "ions.googleapis.com/Location\022<\n\010glossary" - + "\030\002 \001(\0132%.google.cloud.translation.v3.Glo" - + "ssaryB\003\340A\002\"M\n\022GetGlossaryRequest\0227\n\004name" - + "\030\001 \001(\tB)\340A\002\372A#\n!translate.googleapis.com" - + "/Glossary\"P\n\025DeleteGlossaryRequest\0227\n\004na" - + "me\030\001 \001(\tB)\340A\002\372A#\n!translate.googleapis.c" - + "om/Glossary\"\230\001\n\025ListGlossariesRequest\0229\n" - + "\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.googlea" - + "pis.com/Location\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001" - + "\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\022\023\n\006filter\030\004 \001(" - + "\tB\003\340A\001\"l\n\026ListGlossariesResponse\0229\n\nglos" - + "saries\030\001 \003(\0132%.google.cloud.translation." - + "v3.Glossary\022\027\n\017next_page_token\030\002 \001(\t\"\210\002\n" - + "\026CreateGlossaryMetadata\022\014\n\004name\030\001 \001(\t\022H\n" - + "\005state\030\002 \001(\01629.google.cloud.translation." - + "v3.CreateGlossaryMetadata.State\022/\n\013submi" - + "t_time\030\003 \001(\0132\032.google.protobuf.Timestamp" - + "\"e\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007RUNN" - + "ING\020\001\022\r\n\tSUCCEEDED\020\002\022\n\n\006FAILED\020\003\022\016\n\nCANC" - + "ELLING\020\004\022\r\n\tCANCELLED\020\005\"\210\002\n\026DeleteGlossa" - + "ryMetadata\022\014\n\004name\030\001 \001(\t\022H\n\005state\030\002 \001(\0162" - + "9.google.cloud.translation.v3.DeleteGlos" - + "saryMetadata.State\022/\n\013submit_time\030\003 \001(\0132" - + "\032.google.protobuf.Timestamp\"e\n\005State\022\025\n\021" - + "STATE_UNSPECIFIED\020\000\022\013\n\007RUNNING\020\001\022\r\n\tSUCC" - + "EEDED\020\002\022\n\n\006FAILED\020\003\022\016\n\nCANCELLING\020\004\022\r\n\tC" - + "ANCELLED\020\005\"\205\001\n\026DeleteGlossaryResponse\022\014\n" - + "\004name\030\001 \001(\t\022/\n\013submit_time\030\002 \001(\0132\032.googl" - + "e.protobuf.Timestamp\022,\n\010end_time\030\003 \001(\0132\032" - + ".google.protobuf.Timestamp\"\324\006\n\035BatchTran" - + "slateDocumentRequest\0229\n\006parent\030\001 \001(\tB)\340A" - + "\002\372A#\n!locations.googleapis.com/Location\022" - + "!\n\024source_language_code\030\002 \001(\tB\003\340A\002\022\"\n\025ta" - + "rget_language_codes\030\003 \003(\tB\003\340A\002\022Q\n\rinput_" - + "configs\030\004 \003(\01325.google.cloud.translation" - + ".v3.BatchDocumentInputConfigB\003\340A\002\022R\n\rout" - + "put_config\030\005 \001(\01326.google.cloud.translat" - + "ion.v3.BatchDocumentOutputConfigB\003\340A\002\022[\n" - + "\006models\030\006 \003(\0132F.google.cloud.translation" - + ".v3.BatchTranslateDocumentRequest.Models" - + "EntryB\003\340A\001\022c\n\nglossaries\030\007 \003(\0132J.google." - + "cloud.translation.v3.BatchTranslateDocum" - + "entRequest.GlossariesEntryB\003\340A\001\022r\n\022forma" - + "t_conversions\030\010 \003(\0132Q.google.cloud.trans" - + "lation.v3.BatchTranslateDocumentRequest." - + "FormatConversionsEntryB\003\340A\001\032-\n\013ModelsEnt" - + "ry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032k\n\017Gl" - + "ossariesEntry\022\013\n\003key\030\001 \001(\t\022G\n\005value\030\002 \001(" - + "\01328.google.cloud.translation.v3.Translat" - + "eTextGlossaryConfig:\0028\001\0328\n\026FormatConvers" - + "ionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" - + "\001\"b\n\030BatchDocumentInputConfig\022<\n\ngcs_sou" - + "rce\030\001 \001(\0132&.google.cloud.translation.v3." - + "GcsSourceH\000B\010\n\006source\"r\n\031BatchDocumentOu" - + "tputConfig\022F\n\017gcs_destination\030\001 \001(\0132+.go" - + "ogle.cloud.translation.v3.GcsDestination" - + "H\000B\r\n\013destination\"\331\002\n\036BatchTranslateDocu" - + "mentResponse\022\023\n\013total_pages\030\001 \001(\003\022\030\n\020tra" - + "nslated_pages\030\002 \001(\003\022\024\n\014failed_pages\030\003 \001(" - + "\003\022\034\n\024total_billable_pages\030\004 \001(\003\022\030\n\020total" - + "_characters\030\005 \001(\003\022\035\n\025translated_characte" - + "rs\030\006 \001(\003\022\031\n\021failed_characters\030\007 \001(\003\022!\n\031t" - + "otal_billable_characters\030\010 \001(\003\022/\n\013submit" - + "_time\030\t \001(\0132\032.google.protobuf.Timestamp\022" - + ",\n\010end_time\030\n \001(\0132\032.google.protobuf.Time" - + "stamp\"\344\003\n\036BatchTranslateDocumentMetadata" - + "\022P\n\005state\030\001 \001(\0162A.google.cloud.translati" - + "on.v3.BatchTranslateDocumentMetadata.Sta" - + "te\022\023\n\013total_pages\030\002 \001(\003\022\030\n\020translated_pa" - + "ges\030\003 \001(\003\022\024\n\014failed_pages\030\004 \001(\003\022\034\n\024total" - + "_billable_pages\030\005 \001(\003\022\030\n\020total_character" - + "s\030\006 \001(\003\022\035\n\025translated_characters\030\007 \001(\003\022\031" - + "\n\021failed_characters\030\010 \001(\003\022!\n\031total_billa" - + "ble_characters\030\t \001(\003\022/\n\013submit_time\030\n \001(" - + "\0132\032.google.protobuf.Timestamp\"e\n\005State\022\025" - + "\n\021STATE_UNSPECIFIED\020\000\022\013\n\007RUNNING\020\001\022\r\n\tSU" - + "CCEEDED\020\002\022\n\n\006FAILED\020\003\022\016\n\nCANCELLING\020\004\022\r\n" - + "\tCANCELLED\020\0052\326\023\n\022TranslationService\022\324\002\n\r" - + "TranslateText\0221.google.cloud.translation" - + ".v3.TranslateTextRequest\0322.google.cloud." - + "translation.v3.TranslateTextResponse\"\333\001\202" - + "\323\344\223\002b\"1/v3/{parent=projects/*/locations/" - + "*}:translateText:\001*Z*\"%/v3/{parent=proje" - + "cts/*}:translateText:\001*\332A$parent,target_" - + "language_code,contents\332AIparent,model,mi" - + "me_type,source_language_code,target_lang" - + "uage_code,contents\022\207\002\n\016DetectLanguage\0222." - + "google.cloud.translation.v3.DetectLangua" - + "geRequest\0323.google.cloud.translation.v3." - + "DetectLanguageResponse\"\213\001\202\323\344\223\002d\"2/v3/{pa" - + "rent=projects/*/locations/*}:detectLangu" - + "age:\001*Z+\"&/v3/{parent=projects/*}:detect" - + "Language:\001*\332A\036parent,model,mime_type,con" - + "tent\022\227\002\n\025GetSupportedLanguages\0229.google." - + "cloud.translation.v3.GetSupportedLanguag" - + "esRequest\032/.google.cloud.translation.v3." - + "SupportedLanguages\"\221\001\202\323\344\223\002f\0226/v3/{parent" - + "=projects/*/locations/*}/supportedLangua" - + "gesZ,\022*/v3/{parent=projects/*}/supported" - + "Languages\332A\"parent,model,display_languag" - + "e_code\022\304\001\n\021TranslateDocument\0225.google.cl" - + "oud.translation.v3.TranslateDocumentRequ" - + "est\0326.google.cloud.translation.v3.Transl" - + "ateDocumentResponse\"@\202\323\344\223\002:\"5/v3/{parent" - + "=projects/*/locations/*}:translateDocume" - + "nt:\001*\022\341\001\n\022BatchTranslateText\0226.google.cl" - + "oud.translation.v3.BatchTranslateTextReq" - + "uest\032\035.google.longrunning.Operation\"t\202\323\344" - + "\223\002;\"6/v3/{parent=projects/*/locations/*}" - + ":batchTranslateText:\001*\312A0\n\026BatchTranslat" - + "eResponse\022\026BatchTranslateMetadata\022\376\001\n\026Ba" - + "tchTranslateDocument\022:.google.cloud.tran" - + "slation.v3.BatchTranslateDocumentRequest" - + "\032\035.google.longrunning.Operation\"\210\001\202\323\344\223\002?" - + "\":/v3/{parent=projects/*/locations/*}:ba" - + "tchTranslateDocument:\001*\312A@\n\036BatchTransla" - + "teDocumentResponse\022\036BatchTranslateDocume" - + "ntMetadata\022\334\001\n\016CreateGlossary\0222.google.c" - + "loud.translation.v3.CreateGlossaryReques" - + "t\032\035.google.longrunning.Operation\"w\202\323\344\223\002:" - + "\"./v3/{parent=projects/*/locations/*}/gl" - + "ossaries:\010glossary\332A\017parent,glossary\312A\"\n" - + "\010Glossary\022\026CreateGlossaryMetadata\022\272\001\n\016Li" - + "stGlossaries\0222.google.cloud.translation." - + "v3.ListGlossariesRequest\0323.google.cloud." - + "translation.v3.ListGlossariesResponse\"?\202" - + "\323\344\223\0020\022./v3/{parent=projects/*/locations/" - + "*}/glossaries\332A\006parent\022\244\001\n\013GetGlossary\022/" - + ".google.cloud.translation.v3.GetGlossary" - + "Request\032%.google.cloud.translation.v3.Gl" - + "ossary\"=\202\323\344\223\0020\022./v3/{name=projects/*/loc" - + "ations/*/glossaries/*}\332A\004name\022\325\001\n\016Delete" - + "Glossary\0222.google.cloud.translation.v3.D" - + "eleteGlossaryRequest\032\035.google.longrunnin" - + "g.Operation\"p\202\323\344\223\0020*./v3/{name=projects/" - + "*/locations/*/glossaries/*}\332A\004name\312A0\n\026D" - + "eleteGlossaryResponse\022\026DeleteGlossaryMet" - + "adata\032~\312A\030translate.googleapis.com\322A`htt" - + "ps://www.googleapis.com/auth/cloud-platf" - + "orm,https://www.googleapis.com/auth/clou" - + "d-translationB\330\001\n\035com.google.cloud.trans" - + "late.v3B\027TranslationServiceProtoP\001ZBgoog" - + "le.golang.org/genproto/googleapis/cloud/" - + "translate/v3;translate\370\001\001\252\002\031Google.Cloud" - + ".Translate.V3\312\002\031Google\\Cloud\\Translate\\V" - + "3\352\002\034Google::Cloud::Translate::V3b\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.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.rpc.StatusProto.getDescriptor(), - }); - internal_static_google_cloud_translation_v3_TranslateTextGlossaryConfig_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_translation_v3_TranslateTextGlossaryConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_TranslateTextGlossaryConfig_descriptor, - new java.lang.String[] { - "Glossary", "IgnoreCase", - }); - internal_static_google_cloud_translation_v3_TranslateTextRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_translation_v3_TranslateTextRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_TranslateTextRequest_descriptor, - new java.lang.String[] { - "Contents", - "MimeType", - "SourceLanguageCode", - "TargetLanguageCode", - "Parent", - "Model", - "GlossaryConfig", - "Labels", - }); - internal_static_google_cloud_translation_v3_TranslateTextRequest_LabelsEntry_descriptor = - internal_static_google_cloud_translation_v3_TranslateTextRequest_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_translation_v3_TranslateTextRequest_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_TranslateTextRequest_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_translation_v3_TranslateTextResponse_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_translation_v3_TranslateTextResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_TranslateTextResponse_descriptor, - new java.lang.String[] { - "Translations", "GlossaryTranslations", - }); - internal_static_google_cloud_translation_v3_Translation_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_translation_v3_Translation_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_Translation_descriptor, - new java.lang.String[] { - "TranslatedText", "Model", "DetectedLanguageCode", "GlossaryConfig", - }); - internal_static_google_cloud_translation_v3_DetectLanguageRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_translation_v3_DetectLanguageRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_DetectLanguageRequest_descriptor, - new java.lang.String[] { - "Parent", "Model", "Content", "MimeType", "Labels", "Source", - }); - internal_static_google_cloud_translation_v3_DetectLanguageRequest_LabelsEntry_descriptor = - internal_static_google_cloud_translation_v3_DetectLanguageRequest_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_translation_v3_DetectLanguageRequest_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_DetectLanguageRequest_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_translation_v3_DetectedLanguage_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_translation_v3_DetectedLanguage_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_DetectedLanguage_descriptor, - new java.lang.String[] { - "LanguageCode", "Confidence", - }); - internal_static_google_cloud_translation_v3_DetectLanguageResponse_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_translation_v3_DetectLanguageResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_DetectLanguageResponse_descriptor, - new java.lang.String[] { - "Languages", - }); - internal_static_google_cloud_translation_v3_GetSupportedLanguagesRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_translation_v3_GetSupportedLanguagesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_GetSupportedLanguagesRequest_descriptor, - new java.lang.String[] { - "Parent", "DisplayLanguageCode", "Model", - }); - internal_static_google_cloud_translation_v3_SupportedLanguages_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_translation_v3_SupportedLanguages_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_SupportedLanguages_descriptor, - new java.lang.String[] { - "Languages", - }); - internal_static_google_cloud_translation_v3_SupportedLanguage_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_translation_v3_SupportedLanguage_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_SupportedLanguage_descriptor, - new java.lang.String[] { - "LanguageCode", "DisplayName", "SupportSource", "SupportTarget", - }); - internal_static_google_cloud_translation_v3_GcsSource_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_translation_v3_GcsSource_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_GcsSource_descriptor, - new java.lang.String[] { - "InputUri", - }); - internal_static_google_cloud_translation_v3_InputConfig_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_translation_v3_InputConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_InputConfig_descriptor, - new java.lang.String[] { - "MimeType", "GcsSource", "Source", - }); - internal_static_google_cloud_translation_v3_GcsDestination_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_translation_v3_GcsDestination_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_GcsDestination_descriptor, - new java.lang.String[] { - "OutputUriPrefix", - }); - internal_static_google_cloud_translation_v3_OutputConfig_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_translation_v3_OutputConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_OutputConfig_descriptor, - new java.lang.String[] { - "GcsDestination", "Destination", - }); - internal_static_google_cloud_translation_v3_DocumentInputConfig_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_translation_v3_DocumentInputConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_DocumentInputConfig_descriptor, - new java.lang.String[] { - "Content", "GcsSource", "MimeType", "Source", - }); - internal_static_google_cloud_translation_v3_DocumentOutputConfig_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_translation_v3_DocumentOutputConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_DocumentOutputConfig_descriptor, - new java.lang.String[] { - "GcsDestination", "MimeType", "Destination", - }); - internal_static_google_cloud_translation_v3_TranslateDocumentRequest_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_translation_v3_TranslateDocumentRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_TranslateDocumentRequest_descriptor, - new java.lang.String[] { - "Parent", - "SourceLanguageCode", - "TargetLanguageCode", - "DocumentInputConfig", - "DocumentOutputConfig", - "Model", - "GlossaryConfig", - "Labels", - }); - internal_static_google_cloud_translation_v3_TranslateDocumentRequest_LabelsEntry_descriptor = - internal_static_google_cloud_translation_v3_TranslateDocumentRequest_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_translation_v3_TranslateDocumentRequest_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_TranslateDocumentRequest_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_translation_v3_DocumentTranslation_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_translation_v3_DocumentTranslation_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_DocumentTranslation_descriptor, - new java.lang.String[] { - "ByteStreamOutputs", "MimeType", "DetectedLanguageCode", - }); - internal_static_google_cloud_translation_v3_TranslateDocumentResponse_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_translation_v3_TranslateDocumentResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_TranslateDocumentResponse_descriptor, - new java.lang.String[] { - "DocumentTranslation", "GlossaryDocumentTranslation", "Model", "GlossaryConfig", - }); - internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_descriptor, - new java.lang.String[] { - "Parent", - "SourceLanguageCode", - "TargetLanguageCodes", - "Models", - "InputConfigs", - "OutputConfig", - "Glossaries", - "Labels", - }); - internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_ModelsEntry_descriptor = - internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_ModelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_ModelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_GlossariesEntry_descriptor = - internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_GlossariesEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_GlossariesEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_LabelsEntry_descriptor = - internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_descriptor - .getNestedTypes() - .get(2); - internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_translation_v3_BatchTranslateMetadata_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_cloud_translation_v3_BatchTranslateMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_BatchTranslateMetadata_descriptor, - new java.lang.String[] { - "State", "TranslatedCharacters", "FailedCharacters", "TotalCharacters", "SubmitTime", - }); - internal_static_google_cloud_translation_v3_BatchTranslateResponse_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_cloud_translation_v3_BatchTranslateResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_BatchTranslateResponse_descriptor, - new java.lang.String[] { - "TotalCharacters", - "TranslatedCharacters", - "FailedCharacters", - "SubmitTime", - "EndTime", - }); - internal_static_google_cloud_translation_v3_GlossaryInputConfig_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_google_cloud_translation_v3_GlossaryInputConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_GlossaryInputConfig_descriptor, - new java.lang.String[] { - "GcsSource", "Source", - }); - internal_static_google_cloud_translation_v3_Glossary_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_google_cloud_translation_v3_Glossary_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_Glossary_descriptor, - new java.lang.String[] { - "Name", - "LanguagePair", - "LanguageCodesSet", - "InputConfig", - "EntryCount", - "SubmitTime", - "EndTime", - "Languages", - }); - internal_static_google_cloud_translation_v3_Glossary_LanguageCodePair_descriptor = - internal_static_google_cloud_translation_v3_Glossary_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_translation_v3_Glossary_LanguageCodePair_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_Glossary_LanguageCodePair_descriptor, - new java.lang.String[] { - "SourceLanguageCode", "TargetLanguageCode", - }); - internal_static_google_cloud_translation_v3_Glossary_LanguageCodesSet_descriptor = - internal_static_google_cloud_translation_v3_Glossary_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_translation_v3_Glossary_LanguageCodesSet_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_Glossary_LanguageCodesSet_descriptor, - new java.lang.String[] { - "LanguageCodes", - }); - internal_static_google_cloud_translation_v3_CreateGlossaryRequest_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_google_cloud_translation_v3_CreateGlossaryRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_CreateGlossaryRequest_descriptor, - new java.lang.String[] { - "Parent", "Glossary", - }); - internal_static_google_cloud_translation_v3_GetGlossaryRequest_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_google_cloud_translation_v3_GetGlossaryRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_GetGlossaryRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_translation_v3_DeleteGlossaryRequest_descriptor = - getDescriptor().getMessageTypes().get(26); - internal_static_google_cloud_translation_v3_DeleteGlossaryRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_DeleteGlossaryRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_translation_v3_ListGlossariesRequest_descriptor = - getDescriptor().getMessageTypes().get(27); - internal_static_google_cloud_translation_v3_ListGlossariesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_ListGlossariesRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", "Filter", - }); - internal_static_google_cloud_translation_v3_ListGlossariesResponse_descriptor = - getDescriptor().getMessageTypes().get(28); - internal_static_google_cloud_translation_v3_ListGlossariesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_ListGlossariesResponse_descriptor, - new java.lang.String[] { - "Glossaries", "NextPageToken", - }); - internal_static_google_cloud_translation_v3_CreateGlossaryMetadata_descriptor = - getDescriptor().getMessageTypes().get(29); - internal_static_google_cloud_translation_v3_CreateGlossaryMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_CreateGlossaryMetadata_descriptor, - new java.lang.String[] { - "Name", "State", "SubmitTime", - }); - internal_static_google_cloud_translation_v3_DeleteGlossaryMetadata_descriptor = - getDescriptor().getMessageTypes().get(30); - internal_static_google_cloud_translation_v3_DeleteGlossaryMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_DeleteGlossaryMetadata_descriptor, - new java.lang.String[] { - "Name", "State", "SubmitTime", - }); - internal_static_google_cloud_translation_v3_DeleteGlossaryResponse_descriptor = - getDescriptor().getMessageTypes().get(31); - internal_static_google_cloud_translation_v3_DeleteGlossaryResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_DeleteGlossaryResponse_descriptor, - new java.lang.String[] { - "Name", "SubmitTime", "EndTime", - }); - internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_descriptor = - getDescriptor().getMessageTypes().get(32); - internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_descriptor, - new java.lang.String[] { - "Parent", - "SourceLanguageCode", - "TargetLanguageCodes", - "InputConfigs", - "OutputConfig", - "Models", - "Glossaries", - "FormatConversions", - }); - internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_ModelsEntry_descriptor = - internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_ModelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_ModelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_GlossariesEntry_descriptor = - internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_GlossariesEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_GlossariesEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_FormatConversionsEntry_descriptor = - internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_descriptor - .getNestedTypes() - .get(2); - internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_FormatConversionsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_FormatConversionsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_translation_v3_BatchDocumentInputConfig_descriptor = - getDescriptor().getMessageTypes().get(33); - internal_static_google_cloud_translation_v3_BatchDocumentInputConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_BatchDocumentInputConfig_descriptor, - new java.lang.String[] { - "GcsSource", "Source", - }); - internal_static_google_cloud_translation_v3_BatchDocumentOutputConfig_descriptor = - getDescriptor().getMessageTypes().get(34); - internal_static_google_cloud_translation_v3_BatchDocumentOutputConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_BatchDocumentOutputConfig_descriptor, - new java.lang.String[] { - "GcsDestination", "Destination", - }); - internal_static_google_cloud_translation_v3_BatchTranslateDocumentResponse_descriptor = - getDescriptor().getMessageTypes().get(35); - internal_static_google_cloud_translation_v3_BatchTranslateDocumentResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_BatchTranslateDocumentResponse_descriptor, - new java.lang.String[] { - "TotalPages", - "TranslatedPages", - "FailedPages", - "TotalBillablePages", - "TotalCharacters", - "TranslatedCharacters", - "FailedCharacters", - "TotalBillableCharacters", - "SubmitTime", - "EndTime", - }); - internal_static_google_cloud_translation_v3_BatchTranslateDocumentMetadata_descriptor = - getDescriptor().getMessageTypes().get(36); - internal_static_google_cloud_translation_v3_BatchTranslateDocumentMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_BatchTranslateDocumentMetadata_descriptor, - new java.lang.String[] { - "State", - "TotalPages", - "TranslatedPages", - "FailedPages", - "TotalBillablePages", - "TotalCharacters", - "TranslatedCharacters", - "FailedCharacters", - "TotalBillableCharacters", - "SubmitTime", - }); - 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); - registry.add(com.google.longrunning.OperationsProto.operationInfo); - 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.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.rpc.StatusProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/GetLocationRequestOrBuilder.java b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/GetLocationRequestOrBuilder.java deleted file mode 100644 index a8f3d0f9..00000000 --- a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/GetLocationRequestOrBuilder.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright 2020 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/location/locations.proto - -package com.google.cloud.location; - -public interface GetLocationRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.location.GetLocationRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Resource name for the location.
-   * 
- * - * string name = 1; - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Resource name for the location.
-   * 
- * - * string name = 1; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/LocationsProto.java b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/LocationsProto.java deleted file mode 100644 index d2b6da30..00000000 --- a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/LocationsProto.java +++ /dev/null @@ -1,150 +0,0 @@ -/* - * Copyright 2020 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/location/locations.proto - -package com.google.cloud.location; - -public final class LocationsProto { - private LocationsProto() {} - - 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_location_ListLocationsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_location_ListLocationsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_location_ListLocationsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_location_ListLocationsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_location_GetLocationRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_location_GetLocationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_location_Location_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_location_Location_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_location_Location_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_location_Location_LabelsEntry_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/location/locations.proto\022" - + "\025google.cloud.location\032\034google/api/annot" - + "ations.proto\032\031google/protobuf/any.proto\032" - + "\027google/api/client.proto\"[\n\024ListLocation" - + "sRequest\022\014\n\004name\030\001 \001(\t\022\016\n\006filter\030\002 \001(\t\022\021" - + "\n\tpage_size\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\"d\n" - + "\025ListLocationsResponse\0222\n\tlocations\030\001 \003(" - + "\0132\037.google.cloud.location.Location\022\027\n\017ne" - + "xt_page_token\030\002 \001(\t\"\"\n\022GetLocationReques" - + "t\022\014\n\004name\030\001 \001(\t\"\327\001\n\010Location\022\014\n\004name\030\001 \001" - + "(\t\022\023\n\013location_id\030\004 \001(\t\022\024\n\014display_name\030" - + "\005 \001(\t\022;\n\006labels\030\002 \003(\0132+.google.cloud.loc" - + "ation.Location.LabelsEntry\022&\n\010metadata\030\003" - + " \001(\0132\024.google.protobuf.Any\032-\n\013LabelsEntr" - + "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\0012\244\003\n\tLo" - + "cations\022\253\001\n\rListLocations\022+.google.cloud" - + ".location.ListLocationsRequest\032,.google." - + "cloud.location.ListLocationsResponse\"?\202\323" - + "\344\223\0029\022\024/v1/{name=locations}Z!\022\037/v1/{name=" - + "projects/*}/locations\022\236\001\n\013GetLocation\022)." - + "google.cloud.location.GetLocationRequest" - + "\032\037.google.cloud.location.Location\"C\202\323\344\223\002" - + "=\022\026/v1/{name=locations/*}Z#\022!/v1/{name=p" - + "rojects/*/locations/*}\032H\312A\024cloud.googlea" - + "pis.com\322A.https://www.googleapis.com/aut" - + "h/cloud-platformBo\n\031com.google.cloud.loc" - + "ationB\016LocationsProtoP\001Z=google.golang.o" - + "rg/genproto/googleapis/cloud/location;lo" - + "cation\370\001\001b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.protobuf.AnyProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - }); - internal_static_google_cloud_location_ListLocationsRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_location_ListLocationsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_location_ListLocationsRequest_descriptor, - new java.lang.String[] { - "Name", "Filter", "PageSize", "PageToken", - }); - internal_static_google_cloud_location_ListLocationsResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_location_ListLocationsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_location_ListLocationsResponse_descriptor, - new java.lang.String[] { - "Locations", "NextPageToken", - }); - internal_static_google_cloud_location_GetLocationRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_location_GetLocationRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_location_GetLocationRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_location_Location_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_location_Location_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_location_Location_descriptor, - new java.lang.String[] { - "Name", "LocationId", "DisplayName", "Labels", "Metadata", - }); - internal_static_google_cloud_location_Location_LabelsEntry_descriptor = - internal_static_google_cloud_location_Location_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_location_Location_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_location_Location_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.oauthScopes); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.protobuf.AnyProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryRequestOrBuilder.java b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryRequestOrBuilder.java deleted file mode 100644 index 95406130..00000000 --- a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryRequestOrBuilder.java +++ /dev/null @@ -1,95 +0,0 @@ -/* - * Copyright 2020 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/translate/v3beta1/translation_service.proto - -package com.google.cloud.translate.v3beta1; - -public interface CreateGlossaryRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.CreateGlossaryRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The project name.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. The project name.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * Required. The glossary to create.
-   * 
- * - * - * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the glossary field is set. - */ - boolean hasGlossary(); - /** - * - * - *
-   * Required. The glossary to create.
-   * 
- * - * - * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The glossary. - */ - com.google.cloud.translate.v3beta1.Glossary getGlossary(); - /** - * - * - *
-   * Required. The glossary to create.
-   * 
- * - * - * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.translate.v3beta1.GlossaryOrBuilder getGlossaryOrBuilder(); -} diff --git a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryRequestOrBuilder.java b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryRequestOrBuilder.java deleted file mode 100644 index 4c49a207..00000000 --- a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryRequestOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2020 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/translate/v3beta1/translation_service.proto - -package com.google.cloud.translate.v3beta1; - -public interface DeleteGlossaryRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.DeleteGlossaryRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the glossary to delete.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the glossary to delete.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetGlossaryRequestOrBuilder.java b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetGlossaryRequestOrBuilder.java deleted file mode 100644 index 62602d79..00000000 --- a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetGlossaryRequestOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2020 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/translate/v3beta1/translation_service.proto - -package com.google.cloud.translate.v3beta1; - -public interface GetGlossaryRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.GetGlossaryRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the glossary to retrieve.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the glossary to retrieve.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceProto.java b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceProto.java deleted file mode 100644 index d20e7a8d..00000000 --- a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceProto.java +++ /dev/null @@ -1,1022 +0,0 @@ -/* - * Copyright 2020 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/translate/v3beta1/translation_service.proto - -package com.google.cloud.translate.v3beta1; - -public final class TranslationServiceProto { - private TranslationServiceProto() {} - - 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_translation_v3beta1_TranslateTextGlossaryConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_TranslateTextGlossaryConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_TranslateTextResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_TranslateTextResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_Translation_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_Translation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_DetectedLanguage_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_DetectedLanguage_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_DetectLanguageResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_DetectLanguageResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_GetSupportedLanguagesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_GetSupportedLanguagesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_SupportedLanguages_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_SupportedLanguages_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_SupportedLanguage_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_SupportedLanguage_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_GcsSource_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_GcsSource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_InputConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_InputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_GcsDestination_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_GcsDestination_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_OutputConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_OutputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_DocumentInputConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_DocumentInputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_DocumentOutputConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_DocumentOutputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_DocumentTranslation_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_DocumentTranslation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_TranslateDocumentResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_TranslateDocumentResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_ModelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_ModelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_GlossariesEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_GlossariesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_BatchTranslateMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_BatchTranslateMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_BatchTranslateResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_BatchTranslateResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_GlossaryInputConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_GlossaryInputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_Glossary_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_Glossary_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodePair_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodePair_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodesSet_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodesSet_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_CreateGlossaryRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_CreateGlossaryRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_GetGlossaryRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_GetGlossaryRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_DeleteGlossaryRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_DeleteGlossaryRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_ListGlossariesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_ListGlossariesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_ListGlossariesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_ListGlossariesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_CreateGlossaryMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_CreateGlossaryMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_DeleteGlossaryMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_DeleteGlossaryMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_DeleteGlossaryResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_DeleteGlossaryResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_ModelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_ModelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_GlossariesEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_GlossariesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_FormatConversionsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_FormatConversionsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_BatchDocumentInputConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_BatchDocumentInputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_BatchDocumentOutputConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_BatchDocumentOutputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentMetadata_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n8google/cloud/translate/v3beta1/transla" - + "tion_service.proto\022 google.cloud.transla" - + "tion.v3beta1\032\034google/api/annotations.pro" - + "to\032\027google/api/client.proto\032\037google/api/" - + "field_behavior.proto\032\031google/api/resourc" - + "e.proto\032#google/longrunning/operations.p" - + "roto\032\037google/protobuf/timestamp.proto\032\027g" - + "oogle/rpc/status.proto\"N\n\033TranslateTextG" - + "lossaryConfig\022\025\n\010glossary\030\001 \001(\tB\003\340A\002\022\030\n\013" - + "ignore_case\030\002 \001(\010B\003\340A\001\"\277\003\n\024TranslateText" - + "Request\022\025\n\010contents\030\001 \003(\tB\003\340A\002\022\026\n\tmime_t" - + "ype\030\003 \001(\tB\003\340A\001\022!\n\024source_language_code\030\004" - + " \001(\tB\003\340A\001\022!\n\024target_language_code\030\005 \001(\tB" - + "\003\340A\002\0229\n\006parent\030\010 \001(\tB)\340A\002\372A#\n!locations." - + "googleapis.com/Location\022\022\n\005model\030\006 \001(\tB\003" - + "\340A\001\022[\n\017glossary_config\030\007 \001(\0132=.google.cl" - + "oud.translation.v3beta1.TranslateTextGlo" - + "ssaryConfigB\003\340A\001\022W\n\006labels\030\n \003(\0132B.googl" - + "e.cloud.translation.v3beta1.TranslateTex" - + "tRequest.LabelsEntryB\003\340A\001\032-\n\013LabelsEntry" - + "\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\252\001\n\025Tra" - + "nslateTextResponse\022C\n\014translations\030\001 \003(\013" - + "2-.google.cloud.translation.v3beta1.Tran" - + "slation\022L\n\025glossary_translations\030\003 \003(\0132-" - + ".google.cloud.translation.v3beta1.Transl" - + "ation\"\255\001\n\013Translation\022\027\n\017translated_text" - + "\030\001 \001(\t\022\r\n\005model\030\002 \001(\t\022\036\n\026detected_langua" - + "ge_code\030\004 \001(\t\022V\n\017glossary_config\030\003 \001(\0132=" - + ".google.cloud.translation.v3beta1.Transl" - + "ateTextGlossaryConfig\"\244\002\n\025DetectLanguage" - + "Request\0229\n\006parent\030\005 \001(\tB)\340A\002\372A#\n!locatio" - + "ns.googleapis.com/Location\022\022\n\005model\030\004 \001(" - + "\tB\003\340A\001\022\021\n\007content\030\001 \001(\tH\000\022\026\n\tmime_type\030\003" - + " \001(\tB\003\340A\001\022X\n\006labels\030\006 \003(\0132C.google.cloud" - + ".translation.v3beta1.DetectLanguageReque" - + "st.LabelsEntryB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003ke" - + "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\010\n\006source\"=\n\020" - + "DetectedLanguage\022\025\n\rlanguage_code\030\001 \001(\t\022" - + "\022\n\nconfidence\030\002 \001(\002\"_\n\026DetectLanguageRes" - + "ponse\022E\n\tlanguages\030\001 \003(\01322.google.cloud." - + "translation.v3beta1.DetectedLanguage\"\221\001\n" - + "\034GetSupportedLanguagesRequest\0229\n\006parent\030" - + "\003 \001(\tB)\340A\002\372A#\n!locations.googleapis.com/" - + "Location\022\"\n\025display_language_code\030\001 \001(\tB" - + "\003\340A\001\022\022\n\005model\030\002 \001(\tB\003\340A\001\"\\\n\022SupportedLan" - + "guages\022F\n\tlanguages\030\001 \003(\01323.google.cloud" - + ".translation.v3beta1.SupportedLanguage\"p" - + "\n\021SupportedLanguage\022\025\n\rlanguage_code\030\001 \001" - + "(\t\022\024\n\014display_name\030\002 \001(\t\022\026\n\016support_sour" - + "ce\030\003 \001(\010\022\026\n\016support_target\030\004 \001(\010\"#\n\tGcsS" - + "ource\022\026\n\tinput_uri\030\001 \001(\tB\003\340A\002\"r\n\013InputCo" - + "nfig\022\026\n\tmime_type\030\001 \001(\tB\003\340A\001\022A\n\ngcs_sour" - + "ce\030\002 \001(\0132+.google.cloud.translation.v3be" - + "ta1.GcsSourceH\000B\010\n\006source\"0\n\016GcsDestinat" - + "ion\022\036\n\021output_uri_prefix\030\001 \001(\tB\003\340A\002\"j\n\014O" - + "utputConfig\022K\n\017gcs_destination\030\001 \001(\01320.g" - + "oogle.cloud.translation.v3beta1.GcsDesti" - + "nationH\000B\r\n\013destination\"\210\001\n\023DocumentInpu" - + "tConfig\022\021\n\007content\030\001 \001(\014H\000\022A\n\ngcs_source" - + "\030\002 \001(\0132+.google.cloud.translation.v3beta" - + "1.GcsSourceH\000\022\021\n\tmime_type\030\004 \001(\tB\010\n\006sour" - + "ce\"\217\001\n\024DocumentOutputConfig\022P\n\017gcs_desti" - + "nation\030\001 \001(\01320.google.cloud.translation." - + "v3beta1.GcsDestinationB\003\340A\001H\000\022\026\n\tmime_ty" - + "pe\030\003 \001(\tB\003\340A\001B\r\n\013destination\"\252\004\n\030Transla" - + "teDocumentRequest\022\023\n\006parent\030\001 \001(\tB\003\340A\002\022!" - + "\n\024source_language_code\030\002 \001(\tB\003\340A\001\022!\n\024tar" - + "get_language_code\030\003 \001(\tB\003\340A\002\022Y\n\025document" - + "_input_config\030\004 \001(\01325.google.cloud.trans" - + "lation.v3beta1.DocumentInputConfigB\003\340A\002\022" - + "[\n\026document_output_config\030\005 \001(\01326.google" - + ".cloud.translation.v3beta1.DocumentOutpu" - + "tConfigB\003\340A\001\022\022\n\005model\030\006 \001(\tB\003\340A\001\022[\n\017glos" - + "sary_config\030\007 \001(\0132=.google.cloud.transla" - + "tion.v3beta1.TranslateTextGlossaryConfig" - + "B\003\340A\001\022[\n\006labels\030\010 \003(\0132F.google.cloud.tra" - + "nslation.v3beta1.TranslateDocumentReques" - + "t.LabelsEntryB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003key" - + "\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"e\n\023DocumentTra" - + "nslation\022\033\n\023byte_stream_outputs\030\001 \003(\014\022\021\n" - + "\tmime_type\030\002 \001(\t\022\036\n\026detected_language_co" - + "de\030\003 \001(\t\"\265\002\n\031TranslateDocumentResponse\022S" - + "\n\024document_translation\030\001 \001(\01325.google.cl" - + "oud.translation.v3beta1.DocumentTranslat" - + "ion\022\\\n\035glossary_document_translation\030\002 \001" - + "(\01325.google.cloud.translation.v3beta1.Do" - + "cumentTranslation\022\r\n\005model\030\003 \001(\t\022V\n\017glos" - + "sary_config\030\004 \001(\0132=.google.cloud.transla" - + "tion.v3beta1.TranslateTextGlossaryConfig" - + "\"\246\006\n\031BatchTranslateTextRequest\0229\n\006parent" - + "\030\001 \001(\tB)\340A\002\372A#\n!locations.googleapis.com" - + "/Location\022!\n\024source_language_code\030\002 \001(\tB" - + "\003\340A\002\022\"\n\025target_language_codes\030\003 \003(\tB\003\340A\002" - + "\022\\\n\006models\030\004 \003(\0132G.google.cloud.translat" - + "ion.v3beta1.BatchTranslateTextRequest.Mo" - + "delsEntryB\003\340A\001\022I\n\rinput_configs\030\005 \003(\0132-." - + "google.cloud.translation.v3beta1.InputCo" - + "nfigB\003\340A\002\022J\n\routput_config\030\006 \001(\0132..googl" - + "e.cloud.translation.v3beta1.OutputConfig" - + "B\003\340A\002\022d\n\nglossaries\030\007 \003(\0132K.google.cloud" - + ".translation.v3beta1.BatchTranslateTextR" - + "equest.GlossariesEntryB\003\340A\001\022\\\n\006labels\030\t " - + "\003(\0132G.google.cloud.translation.v3beta1.B" - + "atchTranslateTextRequest.LabelsEntryB\003\340A" - + "\001\032-\n\013ModelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002" - + " \001(\t:\0028\001\032p\n\017GlossariesEntry\022\013\n\003key\030\001 \001(\t" - + "\022L\n\005value\030\002 \001(\0132=.google.cloud.translati" - + "on.v3beta1.TranslateTextGlossaryConfig:\002" - + "8\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" - + "\002 \001(\t:\0028\001\"\323\002\n\026BatchTranslateMetadata\022M\n\005" - + "state\030\001 \001(\0162>.google.cloud.translation.v" - + "3beta1.BatchTranslateMetadata.State\022\035\n\025t" - + "ranslated_characters\030\002 \001(\003\022\031\n\021failed_cha" - + "racters\030\003 \001(\003\022\030\n\020total_characters\030\004 \001(\003\022" - + "/\n\013submit_time\030\005 \001(\0132\032.google.protobuf.T" - + "imestamp\"e\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000" - + "\022\013\n\007RUNNING\020\001\022\r\n\tSUCCEEDED\020\002\022\n\n\006FAILED\020\003" - + "\022\016\n\nCANCELLING\020\004\022\r\n\tCANCELLED\020\005\"\313\001\n\026Batc" - + "hTranslateResponse\022\030\n\020total_characters\030\001" - + " \001(\003\022\035\n\025translated_characters\030\002 \001(\003\022\031\n\021f" - + "ailed_characters\030\003 \001(\003\022/\n\013submit_time\030\004 " - + "\001(\0132\032.google.protobuf.Timestamp\022,\n\010end_t" - + "ime\030\005 \001(\0132\032.google.protobuf.Timestamp\"b\n" - + "\023GlossaryInputConfig\022A\n\ngcs_source\030\001 \001(\013" - + "2+.google.cloud.translation.v3beta1.GcsS" - + "ourceH\000B\010\n\006source\"\216\005\n\010Glossary\022\021\n\004name\030\001" - + " \001(\tB\003\340A\002\022T\n\rlanguage_pair\030\003 \001(\0132;.googl" - + "e.cloud.translation.v3beta1.Glossary.Lan" - + "guageCodePairH\000\022Y\n\022language_codes_set\030\004 " - + "\001(\0132;.google.cloud.translation.v3beta1.G" - + "lossary.LanguageCodesSetH\000\022K\n\014input_conf" - + "ig\030\005 \001(\01325.google.cloud.translation.v3be" - + "ta1.GlossaryInputConfig\022\030\n\013entry_count\030\006" - + " \001(\005B\003\340A\003\0224\n\013submit_time\030\007 \001(\0132\032.google." - + "protobuf.TimestampB\003\340A\003\0221\n\010end_time\030\010 \001(" - + "\0132\032.google.protobuf.TimestampB\003\340A\003\032N\n\020La" - + "nguageCodePair\022\034\n\024source_language_code\030\001" - + " \001(\t\022\034\n\024target_language_code\030\002 \001(\t\032*\n\020La" - + "nguageCodesSet\022\026\n\016language_codes\030\001 \003(\t:e" - + "\352Ab\n!translate.googleapis.com/Glossary\022=" - + "projects/{project}/locations/{location}/" - + "glossaries/{glossary}B\013\n\tlanguages\"\225\001\n\025C" - + "reateGlossaryRequest\0229\n\006parent\030\001 \001(\tB)\340A" - + "\002\372A#\n!locations.googleapis.com/Location\022" - + "A\n\010glossary\030\002 \001(\0132*.google.cloud.transla" - + "tion.v3beta1.GlossaryB\003\340A\002\"M\n\022GetGlossar" - + "yRequest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!translat" - + "e.googleapis.com/Glossary\"P\n\025DeleteGloss" - + "aryRequest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!transl" - + "ate.googleapis.com/Glossary\"\230\001\n\025ListGlos" - + "sariesRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!l" - + "ocations.googleapis.com/Location\022\026\n\tpage" - + "_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A" - + "\001\022\023\n\006filter\030\004 \001(\tB\003\340A\001\"q\n\026ListGlossaries" - + "Response\022>\n\nglossaries\030\001 \003(\0132*.google.cl" - + "oud.translation.v3beta1.Glossary\022\027\n\017next" - + "_page_token\030\002 \001(\t\"\215\002\n\026CreateGlossaryMeta" - + "data\022\014\n\004name\030\001 \001(\t\022M\n\005state\030\002 \001(\0162>.goog" - + "le.cloud.translation.v3beta1.CreateGloss" - + "aryMetadata.State\022/\n\013submit_time\030\003 \001(\0132\032" - + ".google.protobuf.Timestamp\"e\n\005State\022\025\n\021S" - + "TATE_UNSPECIFIED\020\000\022\013\n\007RUNNING\020\001\022\r\n\tSUCCE" - + "EDED\020\002\022\n\n\006FAILED\020\003\022\016\n\nCANCELLING\020\004\022\r\n\tCA" - + "NCELLED\020\005\"\215\002\n\026DeleteGlossaryMetadata\022\014\n\004" - + "name\030\001 \001(\t\022M\n\005state\030\002 \001(\0162>.google.cloud" - + ".translation.v3beta1.DeleteGlossaryMetad" - + "ata.State\022/\n\013submit_time\030\003 \001(\0132\032.google." - + "protobuf.Timestamp\"e\n\005State\022\025\n\021STATE_UNS" - + "PECIFIED\020\000\022\013\n\007RUNNING\020\001\022\r\n\tSUCCEEDED\020\002\022\n" - + "\n\006FAILED\020\003\022\016\n\nCANCELLING\020\004\022\r\n\tCANCELLED\020" - + "\005\"\205\001\n\026DeleteGlossaryResponse\022\014\n\004name\030\001 \001" - + "(\t\022/\n\013submit_time\030\002 \001(\0132\032.google.protobu" - + "f.Timestamp\022,\n\010end_time\030\003 \001(\0132\032.google.p" - + "rotobuf.Timestamp\"\362\006\n\035BatchTranslateDocu" - + "mentRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!loc" - + "ations.googleapis.com/Location\022!\n\024source" - + "_language_code\030\002 \001(\tB\003\340A\002\022\"\n\025target_lang" - + "uage_codes\030\003 \003(\tB\003\340A\002\022V\n\rinput_configs\030\004" - + " \003(\0132:.google.cloud.translation.v3beta1." - + "BatchDocumentInputConfigB\003\340A\002\022W\n\routput_" - + "config\030\005 \001(\0132;.google.cloud.translation." - + "v3beta1.BatchDocumentOutputConfigB\003\340A\002\022`" - + "\n\006models\030\006 \003(\0132K.google.cloud.translatio" - + "n.v3beta1.BatchTranslateDocumentRequest." - + "ModelsEntryB\003\340A\001\022h\n\nglossaries\030\007 \003(\0132O.g" - + "oogle.cloud.translation.v3beta1.BatchTra" - + "nslateDocumentRequest.GlossariesEntryB\003\340" - + "A\001\022w\n\022format_conversions\030\010 \003(\0132V.google." - + "cloud.translation.v3beta1.BatchTranslate" - + "DocumentRequest.FormatConversionsEntryB\003" - + "\340A\001\032-\n\013ModelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value" - + "\030\002 \001(\t:\0028\001\032p\n\017GlossariesEntry\022\013\n\003key\030\001 \001" - + "(\t\022L\n\005value\030\002 \001(\0132=.google.cloud.transla" - + "tion.v3beta1.TranslateTextGlossaryConfig" - + ":\0028\001\0328\n\026FormatConversionsEntry\022\013\n\003key\030\001 " - + "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"g\n\030BatchDocumentI" - + "nputConfig\022A\n\ngcs_source\030\001 \001(\0132+.google." - + "cloud.translation.v3beta1.GcsSourceH\000B\010\n" - + "\006source\"w\n\031BatchDocumentOutputConfig\022K\n\017" - + "gcs_destination\030\001 \001(\01320.google.cloud.tra" - + "nslation.v3beta1.GcsDestinationH\000B\r\n\013des" - + "tination\"\331\002\n\036BatchTranslateDocumentRespo" - + "nse\022\023\n\013total_pages\030\001 \001(\003\022\030\n\020translated_p" - + "ages\030\002 \001(\003\022\024\n\014failed_pages\030\003 \001(\003\022\034\n\024tota" - + "l_billable_pages\030\004 \001(\003\022\030\n\020total_characte" - + "rs\030\005 \001(\003\022\035\n\025translated_characters\030\006 \001(\003\022" - + "\031\n\021failed_characters\030\007 \001(\003\022!\n\031total_bill" - + "able_characters\030\010 \001(\003\022/\n\013submit_time\030\t \001" - + "(\0132\032.google.protobuf.Timestamp\022,\n\010end_ti" - + "me\030\n \001(\0132\032.google.protobuf.Timestamp\"\351\003\n" - + "\036BatchTranslateDocumentMetadata\022U\n\005state" - + "\030\001 \001(\0162F.google.cloud.translation.v3beta" - + "1.BatchTranslateDocumentMetadata.State\022\023" - + "\n\013total_pages\030\002 \001(\003\022\030\n\020translated_pages\030" - + "\003 \001(\003\022\024\n\014failed_pages\030\004 \001(\003\022\034\n\024total_bil" - + "lable_pages\030\005 \001(\003\022\030\n\020total_characters\030\006 " - + "\001(\003\022\035\n\025translated_characters\030\007 \001(\003\022\031\n\021fa" - + "iled_characters\030\010 \001(\003\022!\n\031total_billable_" - + "characters\030\t \001(\003\022/\n\013submit_time\030\n \001(\0132\032." - + "google.protobuf.Timestamp\"e\n\005State\022\025\n\021ST" - + "ATE_UNSPECIFIED\020\000\022\013\n\007RUNNING\020\001\022\r\n\tSUCCEE" - + "DED\020\002\022\n\n\006FAILED\020\003\022\016\n\nCANCELLING\020\004\022\r\n\tCAN" - + "CELLED\020\0052\362\023\n\022TranslationService\022\364\001\n\rTran" - + "slateText\0226.google.cloud.translation.v3b" - + "eta1.TranslateTextRequest\0327.google.cloud" - + ".translation.v3beta1.TranslateTextRespon" - + "se\"r\202\323\344\223\002l\"6/v3beta1/{parent=projects/*/" - + "locations/*}:translateText:\001*Z/\"*/v3beta" - + "1/{parent=projects/*}:translateText:\001*\022\223" - + "\002\n\016DetectLanguage\0227.google.cloud.transla" - + "tion.v3beta1.DetectLanguageRequest\0328.goo" - + "gle.cloud.translation.v3beta1.DetectLang" - + "uageResponse\"\215\001\202\323\344\223\002n\"7/v3beta1/{parent=" - + "projects/*/locations/*}:detectLanguage:\001" - + "*Z0\"+/v3beta1/{parent=projects/*}:detect" - + "Language:\001*\332A\026parent,model,mime_type\022\253\002\n" - + "\025GetSupportedLanguages\022>.google.cloud.tr" - + "anslation.v3beta1.GetSupportedLanguagesR" - + "equest\0324.google.cloud.translation.v3beta" - + "1.SupportedLanguages\"\233\001\202\323\344\223\002p\022;/v3beta1/" - + "{parent=projects/*/locations/*}/supporte" - + "dLanguagesZ1\022//v3beta1/{parent=projects/" - + "*}/supportedLanguages\332A\"parent,display_l" - + "anguage_code,model\022\323\001\n\021TranslateDocument" - + "\022:.google.cloud.translation.v3beta1.Tran" - + "slateDocumentRequest\032;.google.cloud.tran" - + "slation.v3beta1.TranslateDocumentRespons" - + "e\"E\202\323\344\223\002?\":/v3beta1/{parent=projects/*/l" - + "ocations/*}:translateDocument:\001*\022\353\001\n\022Bat" - + "chTranslateText\022;.google.cloud.translati" - + "on.v3beta1.BatchTranslateTextRequest\032\035.g" - + "oogle.longrunning.Operation\"y\202\323\344\223\002@\";/v3" - + "beta1/{parent=projects/*/locations/*}:ba" - + "tchTranslateText:\001*\312A0\n\026BatchTranslateRe" - + "sponse\022\026BatchTranslateMetadata\022\210\002\n\026Batch" - + "TranslateDocument\022?.google.cloud.transla" - + "tion.v3beta1.BatchTranslateDocumentReque" - + "st\032\035.google.longrunning.Operation\"\215\001\202\323\344\223" - + "\002D\"?/v3beta1/{parent=projects/*/location" - + "s/*}:batchTranslateDocument:\001*\312A@\n\036Batch" - + "TranslateDocumentResponse\022\036BatchTranslat" - + "eDocumentMetadata\022\346\001\n\016CreateGlossary\0227.g" - + "oogle.cloud.translation.v3beta1.CreateGl" - + "ossaryRequest\032\035.google.longrunning.Opera" - + "tion\"|\202\323\344\223\002?\"3/v3beta1/{parent=projects/" - + "*/locations/*}/glossaries:\010glossary\332A\017pa" - + "rent,glossary\312A\"\n\010Glossary\022\026CreateGlossa" - + "ryMetadata\022\320\001\n\016ListGlossaries\0227.google.c" - + "loud.translation.v3beta1.ListGlossariesR" - + "equest\0328.google.cloud.translation.v3beta" - + "1.ListGlossariesResponse\"K\202\323\344\223\0025\0223/v3bet" - + "a1/{parent=projects/*/locations/*}/gloss" - + "aries\332A\rparent,filter\022\263\001\n\013GetGlossary\0224." - + "google.cloud.translation.v3beta1.GetGlos" - + "saryRequest\032*.google.cloud.translation.v" - + "3beta1.Glossary\"B\202\323\344\223\0025\0223/v3beta1/{name=" - + "projects/*/locations/*/glossaries/*}\332A\004n" - + "ame\022\337\001\n\016DeleteGlossary\0227.google.cloud.tr" - + "anslation.v3beta1.DeleteGlossaryRequest\032" - + "\035.google.longrunning.Operation\"u\202\323\344\223\0025*3" - + "/v3beta1/{name=projects/*/locations/*/gl" - + "ossaries/*}\332A\004name\312A0\n\026DeleteGlossaryRes" - + "ponse\022\026DeleteGlossaryMetadata\032~\312A\030transl" - + "ate.googleapis.com\322A`https://www.googlea" - + "pis.com/auth/cloud-platform,https://www." - + "googleapis.com/auth/cloud-translationB\361\001" - + "\n\"com.google.cloud.translate.v3beta1B\027Tr" - + "anslationServiceProtoP\001ZGgoogle.golang.o" - + "rg/genproto/googleapis/cloud/translate/v" - + "3beta1;translate\370\001\001\252\002\036Google.Cloud.Trans" - + "late.V3Beta1\312\002\036Google\\Cloud\\Translate\\V3" - + "beta1\352\002!Google::Cloud::Translate::V3beta" - + "1b\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.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.rpc.StatusProto.getDescriptor(), - }); - internal_static_google_cloud_translation_v3beta1_TranslateTextGlossaryConfig_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_translation_v3beta1_TranslateTextGlossaryConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_TranslateTextGlossaryConfig_descriptor, - new java.lang.String[] { - "Glossary", "IgnoreCase", - }); - internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_descriptor, - new java.lang.String[] { - "Contents", - "MimeType", - "SourceLanguageCode", - "TargetLanguageCode", - "Parent", - "Model", - "GlossaryConfig", - "Labels", - }); - internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_LabelsEntry_descriptor = - internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_translation_v3beta1_TranslateTextResponse_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_translation_v3beta1_TranslateTextResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_TranslateTextResponse_descriptor, - new java.lang.String[] { - "Translations", "GlossaryTranslations", - }); - internal_static_google_cloud_translation_v3beta1_Translation_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_translation_v3beta1_Translation_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_Translation_descriptor, - new java.lang.String[] { - "TranslatedText", "Model", "DetectedLanguageCode", "GlossaryConfig", - }); - internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_descriptor, - new java.lang.String[] { - "Parent", "Model", "Content", "MimeType", "Labels", "Source", - }); - internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_LabelsEntry_descriptor = - internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_translation_v3beta1_DetectedLanguage_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_translation_v3beta1_DetectedLanguage_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_DetectedLanguage_descriptor, - new java.lang.String[] { - "LanguageCode", "Confidence", - }); - internal_static_google_cloud_translation_v3beta1_DetectLanguageResponse_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_translation_v3beta1_DetectLanguageResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_DetectLanguageResponse_descriptor, - new java.lang.String[] { - "Languages", - }); - internal_static_google_cloud_translation_v3beta1_GetSupportedLanguagesRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_translation_v3beta1_GetSupportedLanguagesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_GetSupportedLanguagesRequest_descriptor, - new java.lang.String[] { - "Parent", "DisplayLanguageCode", "Model", - }); - internal_static_google_cloud_translation_v3beta1_SupportedLanguages_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_translation_v3beta1_SupportedLanguages_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_SupportedLanguages_descriptor, - new java.lang.String[] { - "Languages", - }); - internal_static_google_cloud_translation_v3beta1_SupportedLanguage_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_translation_v3beta1_SupportedLanguage_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_SupportedLanguage_descriptor, - new java.lang.String[] { - "LanguageCode", "DisplayName", "SupportSource", "SupportTarget", - }); - internal_static_google_cloud_translation_v3beta1_GcsSource_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_translation_v3beta1_GcsSource_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_GcsSource_descriptor, - new java.lang.String[] { - "InputUri", - }); - internal_static_google_cloud_translation_v3beta1_InputConfig_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_translation_v3beta1_InputConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_InputConfig_descriptor, - new java.lang.String[] { - "MimeType", "GcsSource", "Source", - }); - internal_static_google_cloud_translation_v3beta1_GcsDestination_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_translation_v3beta1_GcsDestination_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_GcsDestination_descriptor, - new java.lang.String[] { - "OutputUriPrefix", - }); - internal_static_google_cloud_translation_v3beta1_OutputConfig_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_translation_v3beta1_OutputConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_OutputConfig_descriptor, - new java.lang.String[] { - "GcsDestination", "Destination", - }); - internal_static_google_cloud_translation_v3beta1_DocumentInputConfig_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_translation_v3beta1_DocumentInputConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_DocumentInputConfig_descriptor, - new java.lang.String[] { - "Content", "GcsSource", "MimeType", "Source", - }); - internal_static_google_cloud_translation_v3beta1_DocumentOutputConfig_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_translation_v3beta1_DocumentOutputConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_DocumentOutputConfig_descriptor, - new java.lang.String[] { - "GcsDestination", "MimeType", "Destination", - }); - internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_descriptor, - new java.lang.String[] { - "Parent", - "SourceLanguageCode", - "TargetLanguageCode", - "DocumentInputConfig", - "DocumentOutputConfig", - "Model", - "GlossaryConfig", - "Labels", - }); - internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_LabelsEntry_descriptor = - internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_translation_v3beta1_DocumentTranslation_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_translation_v3beta1_DocumentTranslation_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_DocumentTranslation_descriptor, - new java.lang.String[] { - "ByteStreamOutputs", "MimeType", "DetectedLanguageCode", - }); - internal_static_google_cloud_translation_v3beta1_TranslateDocumentResponse_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_translation_v3beta1_TranslateDocumentResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_TranslateDocumentResponse_descriptor, - new java.lang.String[] { - "DocumentTranslation", "GlossaryDocumentTranslation", "Model", "GlossaryConfig", - }); - internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_descriptor, - new java.lang.String[] { - "Parent", - "SourceLanguageCode", - "TargetLanguageCodes", - "Models", - "InputConfigs", - "OutputConfig", - "Glossaries", - "Labels", - }); - internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_ModelsEntry_descriptor = - internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_ModelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_ModelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_GlossariesEntry_descriptor = - internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_GlossariesEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_GlossariesEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_LabelsEntry_descriptor = - internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_descriptor - .getNestedTypes() - .get(2); - internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_translation_v3beta1_BatchTranslateMetadata_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_cloud_translation_v3beta1_BatchTranslateMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_BatchTranslateMetadata_descriptor, - new java.lang.String[] { - "State", "TranslatedCharacters", "FailedCharacters", "TotalCharacters", "SubmitTime", - }); - internal_static_google_cloud_translation_v3beta1_BatchTranslateResponse_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_cloud_translation_v3beta1_BatchTranslateResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_BatchTranslateResponse_descriptor, - new java.lang.String[] { - "TotalCharacters", - "TranslatedCharacters", - "FailedCharacters", - "SubmitTime", - "EndTime", - }); - internal_static_google_cloud_translation_v3beta1_GlossaryInputConfig_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_google_cloud_translation_v3beta1_GlossaryInputConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_GlossaryInputConfig_descriptor, - new java.lang.String[] { - "GcsSource", "Source", - }); - internal_static_google_cloud_translation_v3beta1_Glossary_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_google_cloud_translation_v3beta1_Glossary_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_Glossary_descriptor, - new java.lang.String[] { - "Name", - "LanguagePair", - "LanguageCodesSet", - "InputConfig", - "EntryCount", - "SubmitTime", - "EndTime", - "Languages", - }); - internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodePair_descriptor = - internal_static_google_cloud_translation_v3beta1_Glossary_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodePair_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodePair_descriptor, - new java.lang.String[] { - "SourceLanguageCode", "TargetLanguageCode", - }); - internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodesSet_descriptor = - internal_static_google_cloud_translation_v3beta1_Glossary_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodesSet_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodesSet_descriptor, - new java.lang.String[] { - "LanguageCodes", - }); - internal_static_google_cloud_translation_v3beta1_CreateGlossaryRequest_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_google_cloud_translation_v3beta1_CreateGlossaryRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_CreateGlossaryRequest_descriptor, - new java.lang.String[] { - "Parent", "Glossary", - }); - internal_static_google_cloud_translation_v3beta1_GetGlossaryRequest_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_google_cloud_translation_v3beta1_GetGlossaryRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_GetGlossaryRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_translation_v3beta1_DeleteGlossaryRequest_descriptor = - getDescriptor().getMessageTypes().get(26); - internal_static_google_cloud_translation_v3beta1_DeleteGlossaryRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_DeleteGlossaryRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_translation_v3beta1_ListGlossariesRequest_descriptor = - getDescriptor().getMessageTypes().get(27); - internal_static_google_cloud_translation_v3beta1_ListGlossariesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_ListGlossariesRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", "Filter", - }); - internal_static_google_cloud_translation_v3beta1_ListGlossariesResponse_descriptor = - getDescriptor().getMessageTypes().get(28); - internal_static_google_cloud_translation_v3beta1_ListGlossariesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_ListGlossariesResponse_descriptor, - new java.lang.String[] { - "Glossaries", "NextPageToken", - }); - internal_static_google_cloud_translation_v3beta1_CreateGlossaryMetadata_descriptor = - getDescriptor().getMessageTypes().get(29); - internal_static_google_cloud_translation_v3beta1_CreateGlossaryMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_CreateGlossaryMetadata_descriptor, - new java.lang.String[] { - "Name", "State", "SubmitTime", - }); - internal_static_google_cloud_translation_v3beta1_DeleteGlossaryMetadata_descriptor = - getDescriptor().getMessageTypes().get(30); - internal_static_google_cloud_translation_v3beta1_DeleteGlossaryMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_DeleteGlossaryMetadata_descriptor, - new java.lang.String[] { - "Name", "State", "SubmitTime", - }); - internal_static_google_cloud_translation_v3beta1_DeleteGlossaryResponse_descriptor = - getDescriptor().getMessageTypes().get(31); - internal_static_google_cloud_translation_v3beta1_DeleteGlossaryResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_DeleteGlossaryResponse_descriptor, - new java.lang.String[] { - "Name", "SubmitTime", "EndTime", - }); - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_descriptor = - getDescriptor().getMessageTypes().get(32); - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_descriptor, - new java.lang.String[] { - "Parent", - "SourceLanguageCode", - "TargetLanguageCodes", - "InputConfigs", - "OutputConfig", - "Models", - "Glossaries", - "FormatConversions", - }); - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_ModelsEntry_descriptor = - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_ModelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_ModelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_GlossariesEntry_descriptor = - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_GlossariesEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_GlossariesEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_FormatConversionsEntry_descriptor = - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_descriptor - .getNestedTypes() - .get(2); - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_FormatConversionsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_FormatConversionsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_translation_v3beta1_BatchDocumentInputConfig_descriptor = - getDescriptor().getMessageTypes().get(33); - internal_static_google_cloud_translation_v3beta1_BatchDocumentInputConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_BatchDocumentInputConfig_descriptor, - new java.lang.String[] { - "GcsSource", "Source", - }); - internal_static_google_cloud_translation_v3beta1_BatchDocumentOutputConfig_descriptor = - getDescriptor().getMessageTypes().get(34); - internal_static_google_cloud_translation_v3beta1_BatchDocumentOutputConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_BatchDocumentOutputConfig_descriptor, - new java.lang.String[] { - "GcsDestination", "Destination", - }); - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentResponse_descriptor = - getDescriptor().getMessageTypes().get(35); - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentResponse_descriptor, - new java.lang.String[] { - "TotalPages", - "TranslatedPages", - "FailedPages", - "TotalBillablePages", - "TotalCharacters", - "TranslatedCharacters", - "FailedCharacters", - "TotalBillableCharacters", - "SubmitTime", - "EndTime", - }); - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentMetadata_descriptor = - getDescriptor().getMessageTypes().get(36); - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentMetadata_descriptor, - new java.lang.String[] { - "State", - "TotalPages", - "TranslatedPages", - "FailedPages", - "TotalBillablePages", - "TotalCharacters", - "TranslatedCharacters", - "FailedCharacters", - "TotalBillableCharacters", - "SubmitTime", - }); - 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); - registry.add(com.google.longrunning.OperationsProto.operationInfo); - 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.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.rpc.StatusProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -}