diff --git a/owl-bot-staging/java-common-protos/v1/grpc-google-common-protos/src/main/java/com/google/cloud/location/LocationsGrpc.java b/java-common-protos/grpc-google-common-protos/src/main/java/com/google/cloud/location/LocationsGrpc.java similarity index 52% rename from owl-bot-staging/java-common-protos/v1/grpc-google-common-protos/src/main/java/com/google/cloud/location/LocationsGrpc.java rename to java-common-protos/grpc-google-common-protos/src/main/java/com/google/cloud/location/LocationsGrpc.java index 1cad8a1258..8cc3bac92e 100644 --- a/owl-bot-staging/java-common-protos/v1/grpc-google-common-protos/src/main/java/com/google/cloud/location/LocationsGrpc.java +++ b/java-common-protos/grpc-google-common-protos/src/main/java/com/google/cloud/location/LocationsGrpc.java @@ -1,8 +1,25 @@ +/* + * 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 @@ -20,113 +37,134 @@ private LocationsGrpc() {} public static final java.lang.String SERVICE_NAME = "google.cloud.location.Locations"; // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptorgetListLocationsMethod; + 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 getListLocationsMethod() { - io.grpc.MethodDescriptor getListLocationsMethod; + 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(); + 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; + 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 getGetLocationMethod() { - io.grpc.MethodDescriptor getGetLocationMethod; + 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(); + 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 - */ + /** 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); - } - }; + 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) { + 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); - } - }; + 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) { + /** 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); - } - }; + 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 @@ -136,88 +174,108 @@ public LocationsFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions public interface AsyncService { /** + * + * ** Lists information about the supported locations for this service. **/ - default void listLocations(com.google.cloud.location.ListLocationsRequest request, - io.grpc.stub.StreamObserverresponseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListLocationsMethod(), responseObserver); + default 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. **/ - default void getLocation(com.google.cloud.location.GetLocationRequest request, + default void getLocation( + com.google.cloud.location.GetLocationRequest request, io.grpc.stub.StreamObserverresponseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetLocationMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetLocationMethod(), responseObserver); } } /** * Base class for the server implementation of the service Locations. + * * * 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, AsyncService { + public abstract static class LocationsImplBase implements io.grpc.BindableService, AsyncService { - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { return LocationsGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service Locations. + * ** 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) { + 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) { + 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.StreamObserverresponseObserver) { + 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); + getChannel().newCall(getListLocationsMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * * * Gets information about a location. **/ - public void getLocation(com.google.cloud.location.GetLocationRequest request, + public void getLocation( + com.google.cloud.location.GetLocationRequest request, io.grpc.stub.StreamObserverresponseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetLocationMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getGetLocationMethod(), getCallOptions()), + request, + responseObserver); } } /** * A stub to allow clients to do synchronous rpc calls to service Locations. + * * * An abstract interface that provides location-related information for * a service. Service-specific metadata is provided through the @@ -226,8 +284,7 @@ public void getLocation(com.google.cloud.location.GetLocationRequest request, */ public static final class LocationsBlockingStub extends io.grpc.stub.AbstractBlockingStub{ - private LocationsBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + private LocationsBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -238,21 +295,27 @@ protected LocationsBlockingStub build( } /** + * + * * * Lists information about the supported locations for this service. **/ - public com.google.cloud.location.ListLocationsResponse listLocations(com.google.cloud.location.ListLocationsRequest request) { + 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) { + public com.google.cloud.location.Location getLocation( + com.google.cloud.location.GetLocationRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetLocationMethod(), getCallOptions(), request); } @@ -260,6 +323,7 @@ public com.google.cloud.location.Location getLocation(com.google.cloud.location. /** * A stub to allow clients to do ListenableFuture-style rpc calls to service Locations. + * ** An abstract interface that provides location-related information for * a service. Service-specific metadata is provided through the @@ -268,35 +332,38 @@ public com.google.cloud.location.Location getLocation(com.google.cloud.location. */ public static final class LocationsFutureStub extends io.grpc.stub.AbstractFutureStub{ - private LocationsFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + 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) { + 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.ListenableFuturelistLocations( - com.google.cloud.location.ListLocationsRequest request) { + 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.ListenableFuturegetLocation( - com.google.cloud.location.GetLocationRequest request) { + 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); } @@ -305,11 +372,11 @@ public com.google.common.util.concurrent.ListenableFuture implements - io.grpc.stub.ServerCalls.UnaryMethod , - io.grpc.stub.ServerCalls.ServerStreamingMethod , - io.grpc.stub.ServerCalls.ClientStreamingMethod , - io.grpc.stub.ServerCalls.BidiStreamingMethod { + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod , + io.grpc.stub.ServerCalls.ServerStreamingMethod , + io.grpc.stub.ServerCalls.ClientStreamingMethod , + io.grpc.stub.ServerCalls.BidiStreamingMethod { private final AsyncService serviceImpl; private final int methodId; @@ -323,11 +390,14 @@ private static final class MethodHandlers implements 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); + 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, + serviceImpl.getLocation( + (com.google.cloud.location.GetLocationRequest) request, (io.grpc.stub.StreamObserver ) responseObserver); break; default: @@ -349,24 +419,24 @@ public io.grpc.stub.StreamObserver invoke( public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { 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>( - service, METHODID_LIST_LOCATIONS))) + getListLocationsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.location.ListLocationsRequest, + com.google.cloud.location.ListLocationsResponse>( + service, METHODID_LIST_LOCATIONS))) .addMethod( - getGetLocationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.location.GetLocationRequest, - com.google.cloud.location.Location>( - service, METHODID_GET_LOCATION))) + getGetLocationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.location.GetLocationRequest, + com.google.cloud.location.Location>(service, METHODID_GET_LOCATION))) .build(); } - private static abstract class LocationsBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private abstract static class LocationsBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { LocationsBaseDescriptorSupplier() {} @java.lang.Override @@ -408,11 +478,13 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (LocationsGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new LocationsFileDescriptorSupplier()) - .addMethod(getListLocationsMethod()) - .addMethod(getGetLocationMethod()) - .build(); + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new LocationsFileDescriptorSupplier()) + .addMethod(getListLocationsMethod()) + .addMethod(getGetLocationMethod()) + .build(); } } } diff --git a/owl-bot-staging/java-common-protos/v1/grpc-google-common-protos/src/main/java/com/google/longrunning/OperationsGrpc.java b/java-common-protos/grpc-google-common-protos/src/main/java/com/google/longrunning/OperationsGrpc.java similarity index 62% rename from owl-bot-staging/java-common-protos/v1/grpc-google-common-protos/src/main/java/com/google/longrunning/OperationsGrpc.java rename to java-common-protos/grpc-google-common-protos/src/main/java/com/google/longrunning/OperationsGrpc.java index e044053306..6e81480663 100644 --- a/owl-bot-staging/java-common-protos/v1/grpc-google-common-protos/src/main/java/com/google/longrunning/OperationsGrpc.java +++ b/java-common-protos/grpc-google-common-protos/src/main/java/com/google/longrunning/OperationsGrpc.java @@ -1,8 +1,25 @@ +/* + * 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.longrunning; import static io.grpc.MethodDescriptor.generateFullMethodName; /** + * + * * * Manages long-running operations with an API service. * When an API method normally takes long time to complete, it can be designed @@ -25,206 +42,257 @@ private OperationsGrpc() {} public static final java.lang.String SERVICE_NAME = "google.longrunning.Operations"; // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptorgetListOperationsMethod; + private static volatile io.grpc.MethodDescriptor< + com.google.longrunning.ListOperationsRequest, + com.google.longrunning.ListOperationsResponse> + getListOperationsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ListOperations", requestType = com.google.longrunning.ListOperationsRequest.class, responseType = com.google.longrunning.ListOperationsResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListOperationsMethod() { - io.grpc.MethodDescriptor getListOperationsMethod; + public static io.grpc.MethodDescriptor< + com.google.longrunning.ListOperationsRequest, + com.google.longrunning.ListOperationsResponse> + getListOperationsMethod() { + io.grpc.MethodDescriptor< + com.google.longrunning.ListOperationsRequest, + com.google.longrunning.ListOperationsResponse> + getListOperationsMethod; if ((getListOperationsMethod = OperationsGrpc.getListOperationsMethod) == null) { synchronized (OperationsGrpc.class) { if ((getListOperationsMethod = OperationsGrpc.getListOperationsMethod) == null) { - OperationsGrpc.getListOperationsMethod = getListOperationsMethod = - io.grpc.MethodDescriptor. newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListOperations")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.ListOperationsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.ListOperationsResponse.getDefaultInstance())) - .setSchemaDescriptor(new OperationsMethodDescriptorSupplier("ListOperations")) - .build(); + OperationsGrpc.getListOperationsMethod = + getListOperationsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListOperations")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.ListOperationsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.ListOperationsResponse.getDefaultInstance())) + .setSchemaDescriptor(new OperationsMethodDescriptorSupplier("ListOperations")) + .build(); } } } return getListOperationsMethod; } - private static volatile io.grpc.MethodDescriptor getGetOperationMethod; + private static volatile io.grpc.MethodDescriptor< + com.google.longrunning.GetOperationRequest, com.google.longrunning.Operation> + getGetOperationMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetOperation", requestType = com.google.longrunning.GetOperationRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetOperationMethod() { - io.grpc.MethodDescriptor getGetOperationMethod; + public static io.grpc.MethodDescriptor< + com.google.longrunning.GetOperationRequest, com.google.longrunning.Operation> + getGetOperationMethod() { + io.grpc.MethodDescriptor< + com.google.longrunning.GetOperationRequest, com.google.longrunning.Operation> + getGetOperationMethod; if ((getGetOperationMethod = OperationsGrpc.getGetOperationMethod) == null) { synchronized (OperationsGrpc.class) { if ((getGetOperationMethod = OperationsGrpc.getGetOperationMethod) == null) { - OperationsGrpc.getGetOperationMethod = getGetOperationMethod = - io.grpc.MethodDescriptor. newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetOperation")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.GetOperationRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new OperationsMethodDescriptorSupplier("GetOperation")) - .build(); + OperationsGrpc.getGetOperationMethod = + getGetOperationMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetOperation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.GetOperationRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new OperationsMethodDescriptorSupplier("GetOperation")) + .build(); } } } return getGetOperationMethod; } - private static volatile io.grpc.MethodDescriptor getDeleteOperationMethod; + private static volatile io.grpc.MethodDescriptor< + com.google.longrunning.DeleteOperationRequest, com.google.protobuf.Empty> + getDeleteOperationMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "DeleteOperation", requestType = com.google.longrunning.DeleteOperationRequest.class, responseType = com.google.protobuf.Empty.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteOperationMethod() { - io.grpc.MethodDescriptor getDeleteOperationMethod; + public static io.grpc.MethodDescriptor< + com.google.longrunning.DeleteOperationRequest, com.google.protobuf.Empty> + getDeleteOperationMethod() { + io.grpc.MethodDescriptor< + com.google.longrunning.DeleteOperationRequest, com.google.protobuf.Empty> + getDeleteOperationMethod; if ((getDeleteOperationMethod = OperationsGrpc.getDeleteOperationMethod) == null) { synchronized (OperationsGrpc.class) { if ((getDeleteOperationMethod = OperationsGrpc.getDeleteOperationMethod) == null) { - OperationsGrpc.getDeleteOperationMethod = getDeleteOperationMethod = - io.grpc.MethodDescriptor. newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteOperation")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.DeleteOperationRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new OperationsMethodDescriptorSupplier("DeleteOperation")) - .build(); + OperationsGrpc.getDeleteOperationMethod = + getDeleteOperationMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteOperation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.DeleteOperationRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new OperationsMethodDescriptorSupplier("DeleteOperation")) + .build(); } } } return getDeleteOperationMethod; } - private static volatile io.grpc.MethodDescriptor getCancelOperationMethod; + private static volatile io.grpc.MethodDescriptor< + com.google.longrunning.CancelOperationRequest, com.google.protobuf.Empty> + getCancelOperationMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "CancelOperation", requestType = com.google.longrunning.CancelOperationRequest.class, responseType = com.google.protobuf.Empty.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCancelOperationMethod() { - io.grpc.MethodDescriptor getCancelOperationMethod; + public static io.grpc.MethodDescriptor< + com.google.longrunning.CancelOperationRequest, com.google.protobuf.Empty> + getCancelOperationMethod() { + io.grpc.MethodDescriptor< + com.google.longrunning.CancelOperationRequest, com.google.protobuf.Empty> + getCancelOperationMethod; if ((getCancelOperationMethod = OperationsGrpc.getCancelOperationMethod) == null) { synchronized (OperationsGrpc.class) { if ((getCancelOperationMethod = OperationsGrpc.getCancelOperationMethod) == null) { - OperationsGrpc.getCancelOperationMethod = getCancelOperationMethod = - io.grpc.MethodDescriptor. newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CancelOperation")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.CancelOperationRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new OperationsMethodDescriptorSupplier("CancelOperation")) - .build(); + OperationsGrpc.getCancelOperationMethod = + getCancelOperationMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CancelOperation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.CancelOperationRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new OperationsMethodDescriptorSupplier("CancelOperation")) + .build(); } } } return getCancelOperationMethod; } - private static volatile io.grpc.MethodDescriptor getWaitOperationMethod; + private static volatile io.grpc.MethodDescriptor< + com.google.longrunning.WaitOperationRequest, com.google.longrunning.Operation> + getWaitOperationMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "WaitOperation", requestType = com.google.longrunning.WaitOperationRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getWaitOperationMethod() { - io.grpc.MethodDescriptor getWaitOperationMethod; + public static io.grpc.MethodDescriptor< + com.google.longrunning.WaitOperationRequest, com.google.longrunning.Operation> + getWaitOperationMethod() { + io.grpc.MethodDescriptor< + com.google.longrunning.WaitOperationRequest, com.google.longrunning.Operation> + getWaitOperationMethod; if ((getWaitOperationMethod = OperationsGrpc.getWaitOperationMethod) == null) { synchronized (OperationsGrpc.class) { if ((getWaitOperationMethod = OperationsGrpc.getWaitOperationMethod) == null) { - OperationsGrpc.getWaitOperationMethod = getWaitOperationMethod = - io.grpc.MethodDescriptor. newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "WaitOperation")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.WaitOperationRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new OperationsMethodDescriptorSupplier("WaitOperation")) - .build(); + OperationsGrpc.getWaitOperationMethod = + getWaitOperationMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "WaitOperation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.WaitOperationRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new OperationsMethodDescriptorSupplier("WaitOperation")) + .build(); } } } return getWaitOperationMethod; } - /** - * Creates a new async stub that supports all call types for the service - */ + /** Creates a new async stub that supports all call types for the service */ public static OperationsStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory () { - @java.lang.Override - public OperationsStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new OperationsStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory () { + @java.lang.Override + public OperationsStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new OperationsStub(channel, callOptions); + } + }; return OperationsStub.newStub(factory, channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ - public static OperationsBlockingStub newBlockingStub( - io.grpc.Channel channel) { + public static OperationsBlockingStub newBlockingStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory () { - @java.lang.Override - public OperationsBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new OperationsBlockingStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory () { + @java.lang.Override + public OperationsBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new OperationsBlockingStub(channel, callOptions); + } + }; return OperationsBlockingStub.newStub(factory, channel); } - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static OperationsFutureStub newFutureStub( - io.grpc.Channel channel) { + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static OperationsFutureStub newFutureStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory () { - @java.lang.Override - public OperationsFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new OperationsFutureStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory () { + @java.lang.Override + public OperationsFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new OperationsFutureStub(channel, callOptions); + } + }; return OperationsFutureStub.newStub(factory, channel); } /** + * + * * * Manages long-running operations with an API service. * When an API method normally takes long time to complete, it can be designed @@ -239,6 +307,8 @@ public OperationsFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions public interface AsyncService { /** + * + * ** Lists operations that match the specified filter in the request. If the * server doesn't support this method, it returns `UNIMPLEMENTED`. @@ -251,24 +321,33 @@ public interface AsyncService { * is the parent resource, without the operations collection id. **/ - default void listOperations(com.google.longrunning.ListOperationsRequest request, - io.grpc.stub.StreamObserverresponseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListOperationsMethod(), responseObserver); + default void listOperations( + com.google.longrunning.ListOperationsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListOperationsMethod(), responseObserver); } /** + * + * * * Gets the latest state of a long-running operation. Clients can use this * method to poll the operation result at intervals as recommended by the API * service. **/ - default void getOperation(com.google.longrunning.GetOperationRequest request, + default void getOperation( + com.google.longrunning.GetOperationRequest request, io.grpc.stub.StreamObserverresponseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetOperationMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetOperationMethod(), responseObserver); } /** + * + * * * Deletes a long-running operation. This method indicates that the client is * no longer interested in the operation result. It does not cancel the @@ -276,12 +355,16 @@ default void getOperation(com.google.longrunning.GetOperationRequest request, * `google.rpc.Code.UNIMPLEMENTED`. **/ - default void deleteOperation(com.google.longrunning.DeleteOperationRequest request, + default void deleteOperation( + com.google.longrunning.DeleteOperationRequest request, io.grpc.stub.StreamObserverresponseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteOperationMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteOperationMethod(), responseObserver); } /** + * + * * * Starts asynchronous cancellation on a long-running operation. The server * makes a best effort to cancel the operation, but success is not @@ -295,12 +378,16 @@ default void deleteOperation(com.google.longrunning.DeleteOperationRequest reque * corresponding to `Code.CANCELLED`. **/ - default void cancelOperation(com.google.longrunning.CancelOperationRequest request, + default void cancelOperation( + com.google.longrunning.CancelOperationRequest request, io.grpc.stub.StreamObserverresponseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCancelOperationMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCancelOperationMethod(), responseObserver); } /** + * + * * * Waits until the specified long-running operation is done or reaches at most * a specified timeout, returning the latest state. If the operation is @@ -313,14 +400,17 @@ default void cancelOperation(com.google.longrunning.CancelOperationRequest reque * immediate response is no guarantee that the operation is done. **/ - default void waitOperation(com.google.longrunning.WaitOperationRequest request, + default void waitOperation( + com.google.longrunning.WaitOperationRequest request, io.grpc.stub.StreamObserverresponseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getWaitOperationMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getWaitOperationMethod(), responseObserver); } } /** * Base class for the server implementation of the service Operations. + * * * Manages long-running operations with an API service. * When an API method normally takes long time to complete, it can be designed @@ -332,16 +422,17 @@ default void waitOperation(com.google.longrunning.WaitOperationRequest request, * so developers can have a consistent client experience. **/ - public static abstract class OperationsImplBase - implements io.grpc.BindableService, AsyncService { + public abstract static class OperationsImplBase implements io.grpc.BindableService, AsyncService { - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { return OperationsGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service Operations. + * ** Manages long-running operations with an API service. * When an API method normally takes long time to complete, it can be designed @@ -353,20 +444,19 @@ public static abstract class OperationsImplBase * so developers can have a consistent client experience. **/ - public static final class OperationsStub - extends io.grpc.stub.AbstractAsyncStub{ - private OperationsStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class OperationsStub extends io.grpc.stub.AbstractAsyncStub { + private OperationsStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected OperationsStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + protected OperationsStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new OperationsStub(channel, callOptions); } /** + * + * * * Lists operations that match the specified filter in the request. If the * server doesn't support this method, it returns `UNIMPLEMENTED`. @@ -379,26 +469,37 @@ protected OperationsStub build( * is the parent resource, without the operations collection id. **/ - public void listOperations(com.google.longrunning.ListOperationsRequest request, - io.grpc.stub.StreamObserverresponseObserver) { + public void listOperations( + com.google.longrunning.ListOperationsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListOperationsMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getListOperationsMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * * * Gets the latest state of a long-running operation. Clients can use this * method to poll the operation result at intervals as recommended by the API * service. **/ - public void getOperation(com.google.longrunning.GetOperationRequest request, + public void getOperation( + com.google.longrunning.GetOperationRequest request, io.grpc.stub.StreamObserverresponseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetOperationMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getGetOperationMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * * * Deletes a long-running operation. This method indicates that the client is * no longer interested in the operation result. It does not cancel the @@ -406,13 +507,18 @@ public void getOperation(com.google.longrunning.GetOperationRequest request, * `google.rpc.Code.UNIMPLEMENTED`. **/ - public void deleteOperation(com.google.longrunning.DeleteOperationRequest request, + public void deleteOperation( + com.google.longrunning.DeleteOperationRequest request, io.grpc.stub.StreamObserverresponseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteOperationMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getDeleteOperationMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * * * Starts asynchronous cancellation on a long-running operation. The server * makes a best effort to cancel the operation, but success is not @@ -426,13 +532,18 @@ public void deleteOperation(com.google.longrunning.DeleteOperationRequest reques * corresponding to `Code.CANCELLED`. **/ - public void cancelOperation(com.google.longrunning.CancelOperationRequest request, + public void cancelOperation( + com.google.longrunning.CancelOperationRequest request, io.grpc.stub.StreamObserverresponseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCancelOperationMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getCancelOperationMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * * * Waits until the specified long-running operation is done or reaches at most * a specified timeout, returning the latest state. If the operation is @@ -445,15 +556,19 @@ public void cancelOperation(com.google.longrunning.CancelOperationRequest reques * immediate response is no guarantee that the operation is done. **/ - public void waitOperation(com.google.longrunning.WaitOperationRequest request, + public void waitOperation( + com.google.longrunning.WaitOperationRequest request, io.grpc.stub.StreamObserverresponseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getWaitOperationMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getWaitOperationMethod(), getCallOptions()), + request, + responseObserver); } } /** * A stub to allow clients to do synchronous rpc calls to service Operations. + * * * Manages long-running operations with an API service. * When an API method normally takes long time to complete, it can be designed @@ -467,8 +582,7 @@ public void waitOperation(com.google.longrunning.WaitOperationRequest request, */ public static final class OperationsBlockingStub extends io.grpc.stub.AbstractBlockingStub{ - private OperationsBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + private OperationsBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -479,6 +593,8 @@ protected OperationsBlockingStub build( } /** + * + * * * Lists operations that match the specified filter in the request. If the * server doesn't support this method, it returns `UNIMPLEMENTED`. @@ -491,24 +607,30 @@ protected OperationsBlockingStub build( * is the parent resource, without the operations collection id. **/ - public com.google.longrunning.ListOperationsResponse listOperations(com.google.longrunning.ListOperationsRequest request) { + public com.google.longrunning.ListOperationsResponse listOperations( + com.google.longrunning.ListOperationsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListOperationsMethod(), getCallOptions(), request); } /** + * + * ** Gets the latest state of a long-running operation. Clients can use this * method to poll the operation result at intervals as recommended by the API * service. **/ - public com.google.longrunning.Operation getOperation(com.google.longrunning.GetOperationRequest request) { + public com.google.longrunning.Operation getOperation( + com.google.longrunning.GetOperationRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetOperationMethod(), getCallOptions(), request); } /** + * + * ** Deletes a long-running operation. This method indicates that the client is * no longer interested in the operation result. It does not cancel the @@ -516,12 +638,15 @@ public com.google.longrunning.Operation getOperation(com.google.longrunning.GetO * `google.rpc.Code.UNIMPLEMENTED`. **/ - public com.google.protobuf.Empty deleteOperation(com.google.longrunning.DeleteOperationRequest request) { + public com.google.protobuf.Empty deleteOperation( + com.google.longrunning.DeleteOperationRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteOperationMethod(), getCallOptions(), request); } /** + * + * ** Starts asynchronous cancellation on a long-running operation. The server * makes a best effort to cancel the operation, but success is not @@ -535,12 +660,15 @@ public com.google.protobuf.Empty deleteOperation(com.google.longrunning.DeleteOp * corresponding to `Code.CANCELLED`. **/ - public com.google.protobuf.Empty cancelOperation(com.google.longrunning.CancelOperationRequest request) { + public com.google.protobuf.Empty cancelOperation( + com.google.longrunning.CancelOperationRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCancelOperationMethod(), getCallOptions(), request); } /** + * + * ** Waits until the specified long-running operation is done or reaches at most * a specified timeout, returning the latest state. If the operation is @@ -553,7 +681,8 @@ public com.google.protobuf.Empty cancelOperation(com.google.longrunning.CancelOp * immediate response is no guarantee that the operation is done. **/ - public com.google.longrunning.Operation waitOperation(com.google.longrunning.WaitOperationRequest request) { + public com.google.longrunning.Operation waitOperation( + com.google.longrunning.WaitOperationRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getWaitOperationMethod(), getCallOptions(), request); } @@ -561,6 +690,7 @@ public com.google.longrunning.Operation waitOperation(com.google.longrunning.Wai /** * A stub to allow clients to do ListenableFuture-style rpc calls to service Operations. + * ** Manages long-running operations with an API service. * When an API method normally takes long time to complete, it can be designed @@ -574,18 +704,18 @@ public com.google.longrunning.Operation waitOperation(com.google.longrunning.Wai */ public static final class OperationsFutureStub extends io.grpc.stub.AbstractFutureStub{ - private OperationsFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + private OperationsFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected OperationsFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + protected OperationsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new OperationsFutureStub(channel, callOptions); } /** + * + * * * Lists operations that match the specified filter in the request. If the * server doesn't support this method, it returns `UNIMPLEMENTED`. @@ -598,26 +728,31 @@ protected OperationsFutureStub build( * is the parent resource, without the operations collection id. **/ - public com.google.common.util.concurrent.ListenableFuturelistOperations( - com.google.longrunning.ListOperationsRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.longrunning.ListOperationsResponse> + listOperations(com.google.longrunning.ListOperationsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListOperationsMethod(), getCallOptions()), request); } /** + * + * * * Gets the latest state of a long-running operation. Clients can use this * method to poll the operation result at intervals as recommended by the API * service. **/ - public com.google.common.util.concurrent.ListenableFuturegetOperation( - com.google.longrunning.GetOperationRequest request) { + public com.google.common.util.concurrent.ListenableFuture + getOperation(com.google.longrunning.GetOperationRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetOperationMethod(), getCallOptions()), request); } /** + * + * * * Deletes a long-running operation. This method indicates that the client is * no longer interested in the operation result. It does not cancel the @@ -625,13 +760,15 @@ public com.google.common.util.concurrent.ListenableFuture*/ - public com.google.common.util.concurrent.ListenableFuture deleteOperation( - com.google.longrunning.DeleteOperationRequest request) { + public com.google.common.util.concurrent.ListenableFuture + deleteOperation(com.google.longrunning.DeleteOperationRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteOperationMethod(), getCallOptions()), request); } /** + * + * * * Starts asynchronous cancellation on a long-running operation. The server * makes a best effort to cancel the operation, but success is not @@ -645,13 +782,15 @@ public com.google.common.util.concurrent.ListenableFuture*/ - public com.google.common.util.concurrent.ListenableFuture cancelOperation( - com.google.longrunning.CancelOperationRequest request) { + public com.google.common.util.concurrent.ListenableFuture + cancelOperation(com.google.longrunning.CancelOperationRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCancelOperationMethod(), getCallOptions()), request); } /** + * + * * * Waits until the specified long-running operation is done or reaches at most * a specified timeout, returning the latest state. If the operation is @@ -664,8 +803,8 @@ public com.google.common.util.concurrent.ListenableFuture*/ - public com.google.common.util.concurrent.ListenableFuture waitOperation( - com.google.longrunning.WaitOperationRequest request) { + public com.google.common.util.concurrent.ListenableFuture + waitOperation(com.google.longrunning.WaitOperationRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getWaitOperationMethod(), getCallOptions()), request); } @@ -677,11 +816,11 @@ public com.google.common.util.concurrent.ListenableFuture implements - io.grpc.stub.ServerCalls.UnaryMethod , - io.grpc.stub.ServerCalls.ServerStreamingMethod , - io.grpc.stub.ServerCalls.ClientStreamingMethod , - io.grpc.stub.ServerCalls.BidiStreamingMethod { + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod , + io.grpc.stub.ServerCalls.ServerStreamingMethod , + io.grpc.stub.ServerCalls.ClientStreamingMethod , + io.grpc.stub.ServerCalls.BidiStreamingMethod { private final AsyncService serviceImpl; private final int methodId; @@ -695,23 +834,29 @@ private static final class MethodHandlers implements public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_LIST_OPERATIONS: - serviceImpl.listOperations((com.google.longrunning.ListOperationsRequest) request, - (io.grpc.stub.StreamObserver ) responseObserver); + serviceImpl.listOperations( + (com.google.longrunning.ListOperationsRequest) request, + (io.grpc.stub.StreamObserver ) + responseObserver); break; case METHODID_GET_OPERATION: - serviceImpl.getOperation((com.google.longrunning.GetOperationRequest) request, + serviceImpl.getOperation( + (com.google.longrunning.GetOperationRequest) request, (io.grpc.stub.StreamObserver ) responseObserver); break; case METHODID_DELETE_OPERATION: - serviceImpl.deleteOperation((com.google.longrunning.DeleteOperationRequest) request, + serviceImpl.deleteOperation( + (com.google.longrunning.DeleteOperationRequest) request, (io.grpc.stub.StreamObserver ) responseObserver); break; case METHODID_CANCEL_OPERATION: - serviceImpl.cancelOperation((com.google.longrunning.CancelOperationRequest) request, + serviceImpl.cancelOperation( + (com.google.longrunning.CancelOperationRequest) request, (io.grpc.stub.StreamObserver ) responseObserver); break; case METHODID_WAIT_OPERATION: - serviceImpl.waitOperation((com.google.longrunning.WaitOperationRequest) request, + serviceImpl.waitOperation( + (com.google.longrunning.WaitOperationRequest) request, (io.grpc.stub.StreamObserver ) responseObserver); break; default: @@ -733,45 +878,42 @@ public io.grpc.stub.StreamObserver invoke( public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getListOperationsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.longrunning.ListOperationsRequest, - com.google.longrunning.ListOperationsResponse>( - service, METHODID_LIST_OPERATIONS))) + getListOperationsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.longrunning.ListOperationsRequest, + com.google.longrunning.ListOperationsResponse>( + service, METHODID_LIST_OPERATIONS))) .addMethod( - getGetOperationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.longrunning.GetOperationRequest, - com.google.longrunning.Operation>( - service, METHODID_GET_OPERATION))) + getGetOperationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.longrunning.GetOperationRequest, com.google.longrunning.Operation>( + service, METHODID_GET_OPERATION))) .addMethod( - getDeleteOperationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.longrunning.DeleteOperationRequest, - com.google.protobuf.Empty>( - service, METHODID_DELETE_OPERATION))) + getDeleteOperationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.longrunning.DeleteOperationRequest, com.google.protobuf.Empty>( + service, METHODID_DELETE_OPERATION))) .addMethod( - getCancelOperationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.longrunning.CancelOperationRequest, - com.google.protobuf.Empty>( - service, METHODID_CANCEL_OPERATION))) + getCancelOperationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.longrunning.CancelOperationRequest, com.google.protobuf.Empty>( + service, METHODID_CANCEL_OPERATION))) .addMethod( - getWaitOperationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.longrunning.WaitOperationRequest, - com.google.longrunning.Operation>( - service, METHODID_WAIT_OPERATION))) + getWaitOperationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.longrunning.WaitOperationRequest, com.google.longrunning.Operation>( + service, METHODID_WAIT_OPERATION))) .build(); } - private static abstract class OperationsBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private abstract static class OperationsBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { OperationsBaseDescriptorSupplier() {} @java.lang.Override @@ -813,14 +955,16 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (OperationsGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new OperationsFileDescriptorSupplier()) - .addMethod(getListOperationsMethod()) - .addMethod(getGetOperationMethod()) - .addMethod(getDeleteOperationMethod()) - .addMethod(getCancelOperationMethod()) - .addMethod(getWaitOperationMethod()) - .build(); + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new OperationsFileDescriptorSupplier()) + .addMethod(getListOperationsMethod()) + .addMethod(getGetOperationMethod()) + .addMethod(getDeleteOperationMethod()) + .addMethod(getCancelOperationMethod()) + .addMethod(getWaitOperationMethod()) + .build(); } } } diff --git a/owl-bot-staging/java-common-protos/v1/proto-google-common-protos/src/main/java/com/google/api/Advice.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Advice.java similarity index 69% rename from owl-bot-staging/java-common-protos/v1/proto-google-common-protos/src/main/java/com/google/api/Advice.java rename to java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Advice.java index 6c138bc268..b6660f50a2 100644 --- a/owl-bot-staging/java-common-protos/v1/proto-google-common-protos/src/main/java/com/google/api/Advice.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Advice.java @@ -1,9 +1,26 @@ +/* + * 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/api/config_change.proto package com.google.api; /** + * + * * * Generated advice about this change, used for providing more * information about how a change will affect the existing service. @@ -11,28 +28,27 @@ * * Protobuf type {@code google.api.Advice} */ -public final class Advice extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Advice extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.api.Advice) AdviceOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Advice.newBuilder() to construct. private Advice(com.google.protobuf.GeneratedMessageV3.Builder> builder) { super(builder); } + private Advice() { description_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Advice(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.api.ConfigChangeProto.internal_static_google_api_Advice_descriptor; } @@ -45,15 +61,19 @@ protected java.lang.Object newInstance( } public static final int DESCRIPTION_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** + * + * ** Useful description for why this advice was applied and what actions should * be taken to mitigate any implied risks. ** *string description = 2;
+ * * @return The description. */ @java.lang.Override @@ -62,30 +82,30 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** + * + * ** Useful description for why this advice was applied and what actions should * be taken to mitigate any implied risks. ** *string description = 2;
+ * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -94,6 +114,7 @@ public java.lang.String getDescription() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -105,8 +126,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); } @@ -130,15 +150,14 @@ 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.api.Advice)) { return super.equals(obj); } com.google.api.Advice other = (com.google.api.Advice) obj; - if (!getDescription() - .equals(other.getDescription())) return false; + if (!getDescription().equals(other.getDescription())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -157,99 +176,103 @@ public int hashCode() { return hash; } - public static com.google.api.Advice parseFrom( - java.nio.ByteBuffer data) + public static com.google.api.Advice parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.api.Advice 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.api.Advice parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.api.Advice parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.api.Advice 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.api.Advice parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.api.Advice 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.api.Advice 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.api.Advice 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.api.Advice 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.api.Advice 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.api.Advice parseFrom( - com.google.protobuf.CodedInputStream input) + + public static com.google.api.Advice parseFrom(com.google.protobuf.CodedInputStream 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.api.Advice 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.api.Advice 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; } /** + * + * ** Generated advice about this change, used for providing more * information about how a change will affect the existing service. @@ -257,12 +280,11 @@ protected Builder newBuilderForType( * * Protobuf type {@code google.api.Advice} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builderimplements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.api.Advice) com.google.api.AdviceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.api.ConfigChangeProto.internal_static_google_api_Advice_descriptor; } @@ -275,15 +297,12 @@ public static final class Builder extends } // Construct using com.google.api.Advice.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -293,8 +312,7 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.api.ConfigChangeProto.internal_static_google_api_Advice_descriptor; } @@ -315,7 +333,9 @@ public com.google.api.Advice build() { @java.lang.Override public com.google.api.Advice buildPartial() { com.google.api.Advice result = new com.google.api.Advice(this); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -331,38 +351,39 @@ private void buildPartial0(com.google.api.Advice result) { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.api.Advice) { - return mergeFrom((com.google.api.Advice)other); + return mergeFrom((com.google.api.Advice) other); } else { super.mergeFrom(other); return this; @@ -402,17 +423,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 18: { - description_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 18: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -422,23 +445,26 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object description_ = ""; /** + * + * * * Useful description for why this advice was applied and what actions should * be taken to mitigate any implied risks. ** *string description = 2;
+ * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -447,21 +473,22 @@ public java.lang.String getDescription() { } } /** + * + * ** Useful description for why this advice was applied and what actions should * be taken to mitigate any implied risks. ** *string description = 2;
+ * * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -469,30 +496,37 @@ public java.lang.String getDescription() { } } /** + * + * ** Useful description for why this advice was applied and what actions should * be taken to mitigate any implied risks. ** *string description = 2;
+ * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } description_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * ** Useful description for why this advice was applied and what actions should * be taken to mitigate any implied risks. ** *string description = 2;
+ * * @return This builder for chaining. */ public Builder clearDescription() { @@ -502,27 +536,31 @@ public Builder clearDescription() { return this; } /** + * + * ** Useful description for why this advice was applied and what actions should * be taken to mitigate any implied risks. ** *string description = 2;
+ * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); description_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -532,12 +570,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.api.Advice) } // @@protoc_insertion_point(class_scope:google.api.Advice) private static final com.google.api.Advice DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.api.Advice(); } @@ -546,27 +584,27 @@ public static com.google.api.Advice getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser- PARSER = new com.google.protobuf.AbstractParser () { - @java.lang.Override - public Advice parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser () { + @java.lang.Override + public Advice parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -581,6 +619,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.api.Advice getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-common-protos/v1/proto-google-common-protos/src/main/java/com/google/api/AdviceOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AdviceOrBuilder.java similarity index 51% rename from owl-bot-staging/java-common-protos/v1/proto-google-common-protos/src/main/java/com/google/api/AdviceOrBuilder.java rename to java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AdviceOrBuilder.java index c8c6f319f5..313e6ff8d9 100644 --- a/owl-bot-staging/java-common-protos/v1/proto-google-common-protos/src/main/java/com/google/api/AdviceOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AdviceOrBuilder.java @@ -1,31 +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/api/config_change.proto package com.google.api; -public interface AdviceOrBuilder extends +public interface AdviceOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.api.Advice) com.google.protobuf.MessageOrBuilder { /** + * + * * * Useful description for why this advice was applied and what actions should * be taken to mitigate any implied risks. ** *string description = 2;
+ * * @return The description. */ java.lang.String getDescription(); /** + * + * ** Useful description for why this advice was applied and what actions should * be taken to mitigate any implied risks. ** *string description = 2;
+ * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); } diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AnnotationsProto.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AnnotationsProto.java new file mode 100644 index 0000000000..fb7f8ed52d --- /dev/null +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AnnotationsProto.java @@ -0,0 +1,78 @@ +/* + * 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/api/annotations.proto + +package com.google.api; + +public final class AnnotationsProto { + private AnnotationsProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) { + registry.add(com.google.api.AnnotationsProto.http); + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + public static final int HTTP_FIELD_NUMBER = 72295728; + /** + * + * + *+ * See `HttpRule`. + *+ * + *extend .google.protobuf.MethodOptions { ... }
+ */ + public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< + com.google.protobuf.DescriptorProtos.MethodOptions, com.google.api.HttpRule> + http = + com.google.protobuf.GeneratedMessage.newFileScopedGeneratedExtension( + com.google.api.HttpRule.class, com.google.api.HttpRule.getDefaultInstance()); + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n\034google/api/annotations.proto\022\ngoogle.a" + + "pi\032\025google/api/http.proto\032 google/protob" + + "uf/descriptor.proto:E\n\004http\022\036.google.pro" + + "tobuf.MethodOptions\030\260\312\274\" \001(\0132\024.google.ap" + + "i.HttpRuleBn\n\016com.google.apiB\020Annotation" + + "sProtoP\001ZAgoogle.golang.org/genproto/goo" + + "gleapis/api/annotations;annotations\242\002\004GA" + + "PIb\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.HttpProto.getDescriptor(), + com.google.protobuf.DescriptorProtos.getDescriptor(), + }); + http.internalInit(descriptor.getExtensions().get(0)); + com.google.api.HttpProto.getDescriptor(); + com.google.protobuf.DescriptorProtos.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthProto.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthProto.java new file mode 100644 index 0000000000..61f9e9c64d --- /dev/null +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthProto.java @@ -0,0 +1,135 @@ +/* + * 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/api/auth.proto + +package com.google.api; + +public final class AuthProto { + private AuthProto() {} + + 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_api_Authentication_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_api_Authentication_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_api_AuthenticationRule_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_api_AuthenticationRule_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_api_JwtLocation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_api_JwtLocation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_api_AuthProvider_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_api_AuthProvider_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_api_OAuthRequirements_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_api_OAuthRequirements_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_api_AuthRequirement_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_api_AuthRequirement_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\025google/api/auth.proto\022\ngoogle.api\"l\n\016A" + + "uthentication\022-\n\005rules\030\003 \003(\0132\036.google.ap" + + "i.AuthenticationRule\022+\n\tproviders\030\004 \003(\0132" + + "\030.google.api.AuthProvider\"\251\001\n\022Authentica" + + "tionRule\022\020\n\010selector\030\001 \001(\t\022,\n\005oauth\030\002 \001(" + + "\0132\035.google.api.OAuthRequirements\022 \n\030allo" + + "w_without_credential\030\005 \001(\010\0221\n\014requiremen" + + "ts\030\007 \003(\0132\033.google.api.AuthRequirement\"^\n" + + "\013JwtLocation\022\020\n\006header\030\001 \001(\tH\000\022\017\n\005query\030" + + "\002 \001(\tH\000\022\020\n\006cookie\030\004 \001(\tH\000\022\024\n\014value_prefi" + + "x\030\003 \001(\tB\004\n\002in\"\232\001\n\014AuthProvider\022\n\n\002id\030\001 \001" + + "(\t\022\016\n\006issuer\030\002 \001(\t\022\020\n\010jwks_uri\030\003 \001(\t\022\021\n\t" + + "audiences\030\004 \001(\t\022\031\n\021authorization_url\030\005 \001" + + "(\t\022.\n\rjwt_locations\030\006 \003(\0132\027.google.api.J" + + "wtLocation\"-\n\021OAuthRequirements\022\030\n\020canon" + + "ical_scopes\030\001 \001(\t\"9\n\017AuthRequirement\022\023\n\013" + + "provider_id\030\001 \001(\t\022\021\n\taudiences\030\002 \001(\tBk\n\016" + + "com.google.apiB\tAuthProtoP\001ZEgoogle.gola" + + "ng.org/genproto/googleapis/api/serviceco" + + "nfig;serviceconfig\242\002\004GAPIb\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_google_api_Authentication_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_google_api_Authentication_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_api_Authentication_descriptor, + new java.lang.String[] { + "Rules", "Providers", + }); + internal_static_google_api_AuthenticationRule_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_api_AuthenticationRule_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_api_AuthenticationRule_descriptor, + new java.lang.String[] { + "Selector", "Oauth", "AllowWithoutCredential", "Requirements", + }); + internal_static_google_api_JwtLocation_descriptor = getDescriptor().getMessageTypes().get(2); + internal_static_google_api_JwtLocation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_api_JwtLocation_descriptor, + new java.lang.String[] { + "Header", "Query", "Cookie", "ValuePrefix", "In", + }); + internal_static_google_api_AuthProvider_descriptor = getDescriptor().getMessageTypes().get(3); + internal_static_google_api_AuthProvider_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_api_AuthProvider_descriptor, + new java.lang.String[] { + "Id", "Issuer", "JwksUri", "Audiences", "AuthorizationUrl", "JwtLocations", + }); + internal_static_google_api_OAuthRequirements_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_api_OAuthRequirements_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_api_OAuthRequirements_descriptor, + new java.lang.String[] { + "CanonicalScopes", + }); + internal_static_google_api_AuthRequirement_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_api_AuthRequirement_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_api_AuthRequirement_descriptor, + new java.lang.String[] { + "ProviderId", "Audiences", + }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-common-protos/v1/proto-google-common-protos/src/main/java/com/google/api/AuthProvider.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthProvider.java similarity index 83% rename from owl-bot-staging/java-common-protos/v1/proto-google-common-protos/src/main/java/com/google/api/AuthProvider.java rename to java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthProvider.java index c7344b408c..8e667869e9 100644 --- a/owl-bot-staging/java-common-protos/v1/proto-google-common-protos/src/main/java/com/google/api/AuthProvider.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthProvider.java @@ -1,9 +1,26 @@ +/* + * 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/api/auth.proto package com.google.api; /** + * + * ** Configuration for an authentication provider, including support for * [JSON Web Token @@ -12,15 +29,16 @@ * * Protobuf type {@code google.api.AuthProvider} */ -public final class AuthProvider extends - com.google.protobuf.GeneratedMessageV3 implements +public final class AuthProvider extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.api.AuthProvider) AuthProviderOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AuthProvider.newBuilder() to construct. private AuthProvider(com.google.protobuf.GeneratedMessageV3.Builder> builder) { super(builder); } + private AuthProvider() { id_ = ""; issuer_ = ""; @@ -32,13 +50,11 @@ private AuthProvider() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AuthProvider(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.api.AuthProto.internal_static_google_api_AuthProvider_descriptor; } @@ -51,9 +67,12 @@ protected java.lang.Object newInstance( } public static final int ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object id_ = ""; /** + * + * ** The unique identifier of the auth provider. It will be referred to by * `AuthRequirement.provider_id`. @@ -62,6 +81,7 @@ protected java.lang.Object newInstance( ** *string id = 1;
+ * * @return The id. */ @java.lang.Override @@ -70,14 +90,15 @@ public java.lang.String getId() { 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(); id_ = s; return s; } } /** + * + * ** The unique identifier of the auth provider. It will be referred to by * `AuthRequirement.provider_id`. @@ -86,16 +107,15 @@ public java.lang.String getId() { ** *string id = 1;
+ * * @return The bytes for id. */ @java.lang.Override - public com.google.protobuf.ByteString - getIdBytes() { + public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; 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); id_ = b; return b; } else { @@ -104,9 +124,12 @@ public java.lang.String getId() { } public static final int ISSUER_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object issuer_ = ""; /** + * + * ** Identifies the principal that issued the JWT. See * https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.1 @@ -117,6 +140,7 @@ public java.lang.String getId() { ** *string issuer = 2;
+ * * @return The issuer. */ @java.lang.Override @@ -125,14 +149,15 @@ public java.lang.String getIssuer() { 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(); issuer_ = s; return s; } } /** + * + * ** Identifies the principal that issued the JWT. See * https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.1 @@ -143,16 +168,15 @@ public java.lang.String getIssuer() { ** *string issuer = 2;
+ * * @return The bytes for issuer. */ @java.lang.Override - public com.google.protobuf.ByteString - getIssuerBytes() { + public com.google.protobuf.ByteString getIssuerBytes() { java.lang.Object ref = issuer_; 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); issuer_ = b; return b; } else { @@ -161,9 +185,12 @@ public java.lang.String getIssuer() { } public static final int JWKS_URI_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object jwksUri_ = ""; /** + * + * ** URL of the provider's public key set to validate signature of the JWT. See * [OpenID @@ -180,6 +207,7 @@ public java.lang.String getIssuer() { ** *string jwks_uri = 3;
+ * * @return The jwksUri. */ @java.lang.Override @@ -188,14 +216,15 @@ public java.lang.String getJwksUri() { 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(); jwksUri_ = s; return s; } } /** + * + * ** URL of the provider's public key set to validate signature of the JWT. See * [OpenID @@ -212,16 +241,15 @@ public java.lang.String getJwksUri() { ** *string jwks_uri = 3;
+ * * @return The bytes for jwksUri. */ @java.lang.Override - public com.google.protobuf.ByteString - getJwksUriBytes() { + public com.google.protobuf.ByteString getJwksUriBytes() { java.lang.Object ref = jwksUri_; 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); jwksUri_ = b; return b; } else { @@ -230,9 +258,12 @@ public java.lang.String getJwksUri() { } public static final int AUDIENCES_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object audiences_ = ""; /** + * + * ** The list of JWT * [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3). @@ -254,6 +285,7 @@ public java.lang.String getJwksUri() { ** *string audiences = 4;
+ * * @return The audiences. */ @java.lang.Override @@ -262,14 +294,15 @@ public java.lang.String getAudiences() { 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(); audiences_ = s; return s; } } /** + * + * ** The list of JWT * [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3). @@ -291,16 +324,15 @@ public java.lang.String getAudiences() { ** *string audiences = 4;
+ * * @return The bytes for audiences. */ @java.lang.Override - public com.google.protobuf.ByteString - getAudiencesBytes() { + public com.google.protobuf.ByteString getAudiencesBytes() { java.lang.Object ref = audiences_; 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); audiences_ = b; return b; } else { @@ -309,15 +341,19 @@ public java.lang.String getAudiences() { } public static final int AUTHORIZATION_URL_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object authorizationUrl_ = ""; /** + * + * ** Redirect URL if JWT token is required but not present or is expired. * Implement authorizationUrl of securityDefinitions in OpenAPI spec. ** *string authorization_url = 5;
+ * * @return The authorizationUrl. */ @java.lang.Override @@ -326,30 +362,30 @@ public java.lang.String getAuthorizationUrl() { 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(); authorizationUrl_ = s; return s; } } /** + * + * ** Redirect URL if JWT token is required but not present or is expired. * Implement authorizationUrl of securityDefinitions in OpenAPI spec. ** *string authorization_url = 5;
+ * * @return The bytes for authorizationUrl. */ @java.lang.Override - public com.google.protobuf.ByteString - getAuthorizationUrlBytes() { + public com.google.protobuf.ByteString getAuthorizationUrlBytes() { java.lang.Object ref = authorizationUrl_; 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); authorizationUrl_ = b; return b; } else { @@ -358,9 +394,12 @@ public java.lang.String getAuthorizationUrl() { } public static final int JWT_LOCATIONS_FIELD_NUMBER = 6; + @SuppressWarnings("serial") private java.util.ListjwtLocations_; /** + * + * * * Defines the locations to extract the JWT. For now it is only used by the * Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations] @@ -389,6 +428,8 @@ public java.util.ListgetJwtLocationsList() { return jwtLocations_; } /** + * + * * * Defines the locations to extract the JWT. For now it is only used by the * Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations] @@ -413,11 +454,13 @@ public java.util.ListgetJwtLocationsList() { * repeated .google.api.JwtLocation jwt_locations = 6;
*/ @java.lang.Override - public java.util.List extends com.google.api.JwtLocationOrBuilder> + public java.util.List extends com.google.api.JwtLocationOrBuilder> getJwtLocationsOrBuilderList() { return jwtLocations_; } /** + * + * ** Defines the locations to extract the JWT. For now it is only used by the * Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations] @@ -446,6 +489,8 @@ public int getJwtLocationsCount() { return jwtLocations_.size(); } /** + * + * ** Defines the locations to extract the JWT. For now it is only used by the * Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations] @@ -474,6 +519,8 @@ public com.google.api.JwtLocation getJwtLocations(int index) { return jwtLocations_.get(index); } /** + * + * ** Defines the locations to extract the JWT. For now it is only used by the * Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations] @@ -498,12 +545,12 @@ public com.google.api.JwtLocation getJwtLocations(int index) { *repeated .google.api.JwtLocation jwt_locations = 6;
*/ @java.lang.Override - public com.google.api.JwtLocationOrBuilder getJwtLocationsOrBuilder( - int index) { + public com.google.api.JwtLocationOrBuilder getJwtLocationsOrBuilder(int index) { return jwtLocations_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -515,8 +562,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } @@ -560,8 +606,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, authorizationUrl_); } for (int i = 0; i < jwtLocations_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, jwtLocations_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, jwtLocations_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -571,25 +616,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.api.AuthProvider)) { return super.equals(obj); } com.google.api.AuthProvider other = (com.google.api.AuthProvider) obj; - if (!getId() - .equals(other.getId())) return false; - if (!getIssuer() - .equals(other.getIssuer())) return false; - if (!getJwksUri() - .equals(other.getJwksUri())) return false; - if (!getAudiences() - .equals(other.getAudiences())) return false; - if (!getAuthorizationUrl() - .equals(other.getAuthorizationUrl())) return false; - if (!getJwtLocationsList() - .equals(other.getJwtLocationsList())) return false; + if (!getId().equals(other.getId())) return false; + if (!getIssuer().equals(other.getIssuer())) return false; + if (!getJwksUri().equals(other.getJwksUri())) return false; + if (!getAudiences().equals(other.getAudiences())) return false; + if (!getAuthorizationUrl().equals(other.getAuthorizationUrl())) return false; + if (!getJwtLocationsList().equals(other.getJwtLocationsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -620,99 +659,103 @@ public int hashCode() { return hash; } - public static com.google.api.AuthProvider parseFrom( - java.nio.ByteBuffer data) + public static com.google.api.AuthProvider parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.api.AuthProvider 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.api.AuthProvider parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.api.AuthProvider parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.api.AuthProvider 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.api.AuthProvider parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.api.AuthProvider 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.api.AuthProvider 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.api.AuthProvider 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.api.AuthProvider 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.api.AuthProvider 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.api.AuthProvider parseFrom( - com.google.protobuf.CodedInputStream input) + + public static com.google.api.AuthProvider parseFrom(com.google.protobuf.CodedInputStream 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.api.AuthProvider 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.api.AuthProvider 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; } /** + * + * ** Configuration for an authentication provider, including support for * [JSON Web Token @@ -721,12 +764,11 @@ protected Builder newBuilderForType( * * Protobuf type {@code google.api.AuthProvider} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builderimplements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.api.AuthProvider) com.google.api.AuthProviderOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.api.AuthProto.internal_static_google_api_AuthProvider_descriptor; } @@ -739,15 +781,12 @@ public static final class Builder extends } // Construct using com.google.api.AuthProvider.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -768,8 +807,7 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.api.AuthProto.internal_static_google_api_AuthProvider_descriptor; } @@ -791,7 +829,9 @@ public com.google.api.AuthProvider build() { public com.google.api.AuthProvider buildPartial() { com.google.api.AuthProvider result = new com.google.api.AuthProvider(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -831,38 +871,39 @@ private void buildPartial0(com.google.api.AuthProvider result) { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.api.AuthProvider) { - return mergeFrom((com.google.api.AuthProvider)other); + return mergeFrom((com.google.api.AuthProvider) other); } else { super.mergeFrom(other); return this; @@ -914,9 +955,10 @@ public Builder mergeFrom(com.google.api.AuthProvider other) { jwtLocationsBuilder_ = null; jwtLocations_ = other.jwtLocations_; bitField0_ = (bitField0_ & ~0x00000020); - jwtLocationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getJwtLocationsFieldBuilder() : null; + jwtLocationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getJwtLocationsFieldBuilder() + : null; } else { jwtLocationsBuilder_.addAllMessages(other.jwtLocations_); } @@ -948,50 +990,55 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - id_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - issuer_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - jwksUri_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - audiences_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - authorizationUrl_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: { - com.google.api.JwtLocation m = - input.readMessage( - com.google.api.JwtLocation.parser(), - extensionRegistry); - if (jwtLocationsBuilder_ == null) { - ensureJwtLocationsIsMutable(); - jwtLocations_.add(m); - } else { - jwtLocationsBuilder_.addMessage(m); - } - break; - } // case 50 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + id_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + issuer_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + jwksUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + audiences_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + authorizationUrl_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + com.google.api.JwtLocation m = + input.readMessage(com.google.api.JwtLocation.parser(), extensionRegistry); + if (jwtLocationsBuilder_ == null) { + ensureJwtLocationsIsMutable(); + jwtLocations_.add(m); + } else { + jwtLocationsBuilder_.addMessage(m); + } + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1001,10 +1048,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object id_ = ""; /** + * + * * * The unique identifier of the auth provider. It will be referred to by * `AuthRequirement.provider_id`. @@ -1013,13 +1063,13 @@ public Builder mergeFrom( ** *string id = 1;
+ * * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; 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(); id_ = s; return s; @@ -1028,6 +1078,8 @@ public java.lang.String getId() { } } /** + * + * ** The unique identifier of the auth provider. It will be referred to by * `AuthRequirement.provider_id`. @@ -1036,15 +1088,14 @@ public java.lang.String getId() { ** *string id = 1;
+ * * @return The bytes for id. */ - public com.google.protobuf.ByteString - getIdBytes() { + public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; 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); id_ = b; return b; } else { @@ -1052,6 +1103,8 @@ public java.lang.String getId() { } } /** + * + * ** The unique identifier of the auth provider. It will be referred to by * `AuthRequirement.provider_id`. @@ -1060,18 +1113,22 @@ public java.lang.String getId() { ** *string id = 1;
+ * * @param value The id to set. * @return This builder for chaining. */ - public Builder setId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } id_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * ** The unique identifier of the auth provider. It will be referred to by * `AuthRequirement.provider_id`. @@ -1080,6 +1137,7 @@ public Builder setId( ** *string id = 1;
+ * * @return This builder for chaining. */ public Builder clearId() { @@ -1089,6 +1147,8 @@ public Builder clearId() { return this; } /** + * + * ** The unique identifier of the auth provider. It will be referred to by * `AuthRequirement.provider_id`. @@ -1097,12 +1157,14 @@ public Builder clearId() { ** *string id = 1;
+ * * @param value The bytes for id to set. * @return This builder for chaining. */ - public Builder setIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); id_ = value; bitField0_ |= 0x00000001; @@ -1112,6 +1174,8 @@ public Builder setIdBytes( private java.lang.Object issuer_ = ""; /** + * + * ** Identifies the principal that issued the JWT. See * https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.1 @@ -1122,13 +1186,13 @@ public Builder setIdBytes( ** *string issuer = 2;
+ * * @return The issuer. */ public java.lang.String getIssuer() { java.lang.Object ref = issuer_; 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(); issuer_ = s; return s; @@ -1137,6 +1201,8 @@ public java.lang.String getIssuer() { } } /** + * + * ** Identifies the principal that issued the JWT. See * https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.1 @@ -1147,15 +1213,14 @@ public java.lang.String getIssuer() { ** *string issuer = 2;
+ * * @return The bytes for issuer. */ - public com.google.protobuf.ByteString - getIssuerBytes() { + public com.google.protobuf.ByteString getIssuerBytes() { java.lang.Object ref = issuer_; 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); issuer_ = b; return b; } else { @@ -1163,6 +1228,8 @@ public java.lang.String getIssuer() { } } /** + * + * ** Identifies the principal that issued the JWT. See * https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.1 @@ -1173,18 +1240,22 @@ public java.lang.String getIssuer() { ** *string issuer = 2;
+ * * @param value The issuer to set. * @return This builder for chaining. */ - public Builder setIssuer( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setIssuer(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } issuer_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * ** Identifies the principal that issued the JWT. See * https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.1 @@ -1195,6 +1266,7 @@ public Builder setIssuer( ** *string issuer = 2;
+ * * @return This builder for chaining. */ public Builder clearIssuer() { @@ -1204,6 +1276,8 @@ public Builder clearIssuer() { return this; } /** + * + * ** Identifies the principal that issued the JWT. See * https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.1 @@ -1214,12 +1288,14 @@ public Builder clearIssuer() { ** *string issuer = 2;
+ * * @param value The bytes for issuer to set. * @return This builder for chaining. */ - public Builder setIssuerBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setIssuerBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); issuer_ = value; bitField0_ |= 0x00000002; @@ -1229,6 +1305,8 @@ public Builder setIssuerBytes( private java.lang.Object jwksUri_ = ""; /** + * + * ** URL of the provider's public key set to validate signature of the JWT. See * [OpenID @@ -1245,13 +1323,13 @@ public Builder setIssuerBytes( ** *string jwks_uri = 3;
+ * * @return The jwksUri. */ public java.lang.String getJwksUri() { java.lang.Object ref = jwksUri_; 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(); jwksUri_ = s; return s; @@ -1260,6 +1338,8 @@ public java.lang.String getJwksUri() { } } /** + * + * ** URL of the provider's public key set to validate signature of the JWT. See * [OpenID @@ -1276,15 +1356,14 @@ public java.lang.String getJwksUri() { ** *string jwks_uri = 3;
+ * * @return The bytes for jwksUri. */ - public com.google.protobuf.ByteString - getJwksUriBytes() { + public com.google.protobuf.ByteString getJwksUriBytes() { java.lang.Object ref = jwksUri_; 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); jwksUri_ = b; return b; } else { @@ -1292,6 +1371,8 @@ public java.lang.String getJwksUri() { } } /** + * + * ** URL of the provider's public key set to validate signature of the JWT. See * [OpenID @@ -1308,18 +1389,22 @@ public java.lang.String getJwksUri() { ** *string jwks_uri = 3;
+ * * @param value The jwksUri to set. * @return This builder for chaining. */ - public Builder setJwksUri( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setJwksUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } jwksUri_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * ** URL of the provider's public key set to validate signature of the JWT. See * [OpenID @@ -1336,6 +1421,7 @@ public Builder setJwksUri( ** *string jwks_uri = 3;
+ * * @return This builder for chaining. */ public Builder clearJwksUri() { @@ -1345,6 +1431,8 @@ public Builder clearJwksUri() { return this; } /** + * + * ** URL of the provider's public key set to validate signature of the JWT. See * [OpenID @@ -1361,12 +1449,14 @@ public Builder clearJwksUri() { ** *string jwks_uri = 3;
+ * * @param value The bytes for jwksUri to set. * @return This builder for chaining. */ - public Builder setJwksUriBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setJwksUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); jwksUri_ = value; bitField0_ |= 0x00000004; @@ -1376,6 +1466,8 @@ public Builder setJwksUriBytes( private java.lang.Object audiences_ = ""; /** + * + * ** The list of JWT * [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3). @@ -1397,13 +1489,13 @@ public Builder setJwksUriBytes( ** *string audiences = 4;
+ * * @return The audiences. */ public java.lang.String getAudiences() { java.lang.Object ref = audiences_; 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(); audiences_ = s; return s; @@ -1412,6 +1504,8 @@ public java.lang.String getAudiences() { } } /** + * + * ** The list of JWT * [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3). @@ -1433,15 +1527,14 @@ public java.lang.String getAudiences() { ** *string audiences = 4;
+ * * @return The bytes for audiences. */ - public com.google.protobuf.ByteString - getAudiencesBytes() { + public com.google.protobuf.ByteString getAudiencesBytes() { java.lang.Object ref = audiences_; 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); audiences_ = b; return b; } else { @@ -1449,6 +1542,8 @@ public java.lang.String getAudiences() { } } /** + * + * ** The list of JWT * [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3). @@ -1470,18 +1565,22 @@ public java.lang.String getAudiences() { ** *string audiences = 4;
+ * * @param value The audiences to set. * @return This builder for chaining. */ - public Builder setAudiences( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setAudiences(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } audiences_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * ** The list of JWT * [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3). @@ -1503,6 +1602,7 @@ public Builder setAudiences( ** *string audiences = 4;
+ * * @return This builder for chaining. */ public Builder clearAudiences() { @@ -1512,6 +1612,8 @@ public Builder clearAudiences() { return this; } /** + * + * ** The list of JWT * [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3). @@ -1533,12 +1635,14 @@ public Builder clearAudiences() { ** *string audiences = 4;
+ * * @param value The bytes for audiences to set. * @return This builder for chaining. */ - public Builder setAudiencesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setAudiencesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); audiences_ = value; bitField0_ |= 0x00000008; @@ -1548,19 +1652,21 @@ public Builder setAudiencesBytes( private java.lang.Object authorizationUrl_ = ""; /** + * + * ** Redirect URL if JWT token is required but not present or is expired. * Implement authorizationUrl of securityDefinitions in OpenAPI spec. ** *string authorization_url = 5;
+ * * @return The authorizationUrl. */ public java.lang.String getAuthorizationUrl() { java.lang.Object ref = authorizationUrl_; 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(); authorizationUrl_ = s; return s; @@ -1569,21 +1675,22 @@ public java.lang.String getAuthorizationUrl() { } } /** + * + * ** Redirect URL if JWT token is required but not present or is expired. * Implement authorizationUrl of securityDefinitions in OpenAPI spec. ** *string authorization_url = 5;
+ * * @return The bytes for authorizationUrl. */ - public com.google.protobuf.ByteString - getAuthorizationUrlBytes() { + public com.google.protobuf.ByteString getAuthorizationUrlBytes() { java.lang.Object ref = authorizationUrl_; 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); authorizationUrl_ = b; return b; } else { @@ -1591,30 +1698,37 @@ public java.lang.String getAuthorizationUrl() { } } /** + * + * ** Redirect URL if JWT token is required but not present or is expired. * Implement authorizationUrl of securityDefinitions in OpenAPI spec. ** *string authorization_url = 5;
+ * * @param value The authorizationUrl to set. * @return This builder for chaining. */ - public Builder setAuthorizationUrl( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setAuthorizationUrl(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } authorizationUrl_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * ** Redirect URL if JWT token is required but not present or is expired. * Implement authorizationUrl of securityDefinitions in OpenAPI spec. ** *string authorization_url = 5;
+ * * @return This builder for chaining. */ public Builder clearAuthorizationUrl() { @@ -1624,18 +1738,22 @@ public Builder clearAuthorizationUrl() { return this; } /** + * + * ** Redirect URL if JWT token is required but not present or is expired. * Implement authorizationUrl of securityDefinitions in OpenAPI spec. ** *string authorization_url = 5;
+ * * @param value The bytes for authorizationUrl to set. * @return This builder for chaining. */ - public Builder setAuthorizationUrlBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setAuthorizationUrlBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); authorizationUrl_ = value; bitField0_ |= 0x00000010; @@ -1644,18 +1762,24 @@ public Builder setAuthorizationUrlBytes( } private java.util.ListjwtLocations_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureJwtLocationsIsMutable() { if (!((bitField0_ & 0x00000020) != 0)) { jwtLocations_ = new java.util.ArrayList (jwtLocations_); bitField0_ |= 0x00000020; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.api.JwtLocation, com.google.api.JwtLocation.Builder, com.google.api.JwtLocationOrBuilder> jwtLocationsBuilder_; + com.google.api.JwtLocation, + com.google.api.JwtLocation.Builder, + com.google.api.JwtLocationOrBuilder> + jwtLocationsBuilder_; /** + * + * * * Defines the locations to extract the JWT. For now it is only used by the * Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations] @@ -1687,6 +1811,8 @@ public java.util.ListgetJwtLocationsList() { } } /** + * + * * * Defines the locations to extract the JWT. For now it is only used by the * Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations] @@ -1718,6 +1844,8 @@ public int getJwtLocationsCount() { } } /** + * + * ** Defines the locations to extract the JWT. For now it is only used by the * Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations] @@ -1749,6 +1877,8 @@ public com.google.api.JwtLocation getJwtLocations(int index) { } } /** + * + * ** Defines the locations to extract the JWT. For now it is only used by the * Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations] @@ -1772,8 +1902,7 @@ public com.google.api.JwtLocation getJwtLocations(int index) { * *repeated .google.api.JwtLocation jwt_locations = 6;
*/ - public Builder setJwtLocations( - int index, com.google.api.JwtLocation value) { + public Builder setJwtLocations(int index, com.google.api.JwtLocation value) { if (jwtLocationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1787,6 +1916,8 @@ public Builder setJwtLocations( return this; } /** + * + * ** Defines the locations to extract the JWT. For now it is only used by the * Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations] @@ -1810,8 +1941,7 @@ public Builder setJwtLocations( * *repeated .google.api.JwtLocation jwt_locations = 6;
*/ - public Builder setJwtLocations( - int index, com.google.api.JwtLocation.Builder builderForValue) { + public Builder setJwtLocations(int index, com.google.api.JwtLocation.Builder builderForValue) { if (jwtLocationsBuilder_ == null) { ensureJwtLocationsIsMutable(); jwtLocations_.set(index, builderForValue.build()); @@ -1822,6 +1952,8 @@ public Builder setJwtLocations( return this; } /** + * + * ** Defines the locations to extract the JWT. For now it is only used by the * Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations] @@ -1859,6 +1991,8 @@ public Builder addJwtLocations(com.google.api.JwtLocation value) { return this; } /** + * + * ** Defines the locations to extract the JWT. For now it is only used by the * Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations] @@ -1882,8 +2016,7 @@ public Builder addJwtLocations(com.google.api.JwtLocation value) { * *repeated .google.api.JwtLocation jwt_locations = 6;
*/ - public Builder addJwtLocations( - int index, com.google.api.JwtLocation value) { + public Builder addJwtLocations(int index, com.google.api.JwtLocation value) { if (jwtLocationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1897,6 +2030,8 @@ public Builder addJwtLocations( return this; } /** + * + * ** Defines the locations to extract the JWT. For now it is only used by the * Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations] @@ -1920,8 +2055,7 @@ public Builder addJwtLocations( * *repeated .google.api.JwtLocation jwt_locations = 6;
*/ - public Builder addJwtLocations( - com.google.api.JwtLocation.Builder builderForValue) { + public Builder addJwtLocations(com.google.api.JwtLocation.Builder builderForValue) { if (jwtLocationsBuilder_ == null) { ensureJwtLocationsIsMutable(); jwtLocations_.add(builderForValue.build()); @@ -1932,6 +2066,8 @@ public Builder addJwtLocations( return this; } /** + * + * ** Defines the locations to extract the JWT. For now it is only used by the * Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations] @@ -1955,8 +2091,7 @@ public Builder addJwtLocations( * *repeated .google.api.JwtLocation jwt_locations = 6;
*/ - public Builder addJwtLocations( - int index, com.google.api.JwtLocation.Builder builderForValue) { + public Builder addJwtLocations(int index, com.google.api.JwtLocation.Builder builderForValue) { if (jwtLocationsBuilder_ == null) { ensureJwtLocationsIsMutable(); jwtLocations_.add(index, builderForValue.build()); @@ -1967,6 +2102,8 @@ public Builder addJwtLocations( return this; } /** + * + * ** Defines the locations to extract the JWT. For now it is only used by the * Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations] @@ -1994,8 +2131,7 @@ public Builder addAllJwtLocations( java.lang.Iterable extends com.google.api.JwtLocation> values) { if (jwtLocationsBuilder_ == null) { ensureJwtLocationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, jwtLocations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, jwtLocations_); onChanged(); } else { jwtLocationsBuilder_.addAllMessages(values); @@ -2003,6 +2139,8 @@ public Builder addAllJwtLocations( return this; } /** + * + * ** Defines the locations to extract the JWT. For now it is only used by the * Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations] @@ -2037,6 +2175,8 @@ public Builder clearJwtLocations() { return this; } /** + * + * ** Defines the locations to extract the JWT. For now it is only used by the * Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations] @@ -2071,6 +2211,8 @@ public Builder removeJwtLocations(int index) { return this; } /** + * + * ** Defines the locations to extract the JWT. For now it is only used by the * Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations] @@ -2094,11 +2236,12 @@ public Builder removeJwtLocations(int index) { * *repeated .google.api.JwtLocation jwt_locations = 6;
*/ - public com.google.api.JwtLocation.Builder getJwtLocationsBuilder( - int index) { + public com.google.api.JwtLocation.Builder getJwtLocationsBuilder(int index) { return getJwtLocationsFieldBuilder().getBuilder(index); } /** + * + * ** Defines the locations to extract the JWT. For now it is only used by the * Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations] @@ -2122,14 +2265,16 @@ public com.google.api.JwtLocation.Builder getJwtLocationsBuilder( * *repeated .google.api.JwtLocation jwt_locations = 6;
*/ - public com.google.api.JwtLocationOrBuilder getJwtLocationsOrBuilder( - int index) { + public com.google.api.JwtLocationOrBuilder getJwtLocationsOrBuilder(int index) { if (jwtLocationsBuilder_ == null) { - return jwtLocations_.get(index); } else { + return jwtLocations_.get(index); + } else { return jwtLocationsBuilder_.getMessageOrBuilder(index); } } /** + * + * ** Defines the locations to extract the JWT. For now it is only used by the * Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations] @@ -2153,8 +2298,8 @@ public com.google.api.JwtLocationOrBuilder getJwtLocationsOrBuilder( * *repeated .google.api.JwtLocation jwt_locations = 6;
*/ - public java.util.List extends com.google.api.JwtLocationOrBuilder> - getJwtLocationsOrBuilderList() { + public java.util.List extends com.google.api.JwtLocationOrBuilder> + getJwtLocationsOrBuilderList() { if (jwtLocationsBuilder_ != null) { return jwtLocationsBuilder_.getMessageOrBuilderList(); } else { @@ -2162,6 +2307,8 @@ public com.google.api.JwtLocationOrBuilder getJwtLocationsOrBuilder( } } /** + * + * ** Defines the locations to extract the JWT. For now it is only used by the * Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations] @@ -2186,10 +2333,12 @@ public com.google.api.JwtLocationOrBuilder getJwtLocationsOrBuilder( *repeated .google.api.JwtLocation jwt_locations = 6;
*/ public com.google.api.JwtLocation.Builder addJwtLocationsBuilder() { - return getJwtLocationsFieldBuilder().addBuilder( - com.google.api.JwtLocation.getDefaultInstance()); + return getJwtLocationsFieldBuilder() + .addBuilder(com.google.api.JwtLocation.getDefaultInstance()); } /** + * + * ** Defines the locations to extract the JWT. For now it is only used by the * Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations] @@ -2213,12 +2362,13 @@ public com.google.api.JwtLocation.Builder addJwtLocationsBuilder() { * *repeated .google.api.JwtLocation jwt_locations = 6;
*/ - public com.google.api.JwtLocation.Builder addJwtLocationsBuilder( - int index) { - return getJwtLocationsFieldBuilder().addBuilder( - index, com.google.api.JwtLocation.getDefaultInstance()); + public com.google.api.JwtLocation.Builder addJwtLocationsBuilder(int index) { + return getJwtLocationsFieldBuilder() + .addBuilder(index, com.google.api.JwtLocation.getDefaultInstance()); } /** + * + * ** Defines the locations to extract the JWT. For now it is only used by the * Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations] @@ -2242,27 +2392,29 @@ public com.google.api.JwtLocation.Builder addJwtLocationsBuilder( * *repeated .google.api.JwtLocation jwt_locations = 6;
*/ - public java.util.List- getJwtLocationsBuilderList() { + public java.util.List getJwtLocationsBuilderList() { return getJwtLocationsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.api.JwtLocation, com.google.api.JwtLocation.Builder, com.google.api.JwtLocationOrBuilder> + com.google.api.JwtLocation, + com.google.api.JwtLocation.Builder, + com.google.api.JwtLocationOrBuilder> getJwtLocationsFieldBuilder() { if (jwtLocationsBuilder_ == null) { - jwtLocationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.api.JwtLocation, com.google.api.JwtLocation.Builder, com.google.api.JwtLocationOrBuilder>( - jwtLocations_, - ((bitField0_ & 0x00000020) != 0), - getParentForChildren(), - isClean()); + jwtLocationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.api.JwtLocation, + com.google.api.JwtLocation.Builder, + com.google.api.JwtLocationOrBuilder>( + jwtLocations_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); jwtLocations_ = null; } return jwtLocationsBuilder_; } + @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); } @@ -2272,12 +2424,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.api.AuthProvider) } // @@protoc_insertion_point(class_scope:google.api.AuthProvider) private static final com.google.api.AuthProvider DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.api.AuthProvider(); } @@ -2286,27 +2438,27 @@ public static com.google.api.AuthProvider getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser () { - @java.lang.Override - public AuthProvider parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser () { + @java.lang.Override + public AuthProvider parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2321,6 +2473,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.api.AuthProvider getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-common-protos/v1/proto-google-common-protos/src/main/java/com/google/api/AuthProviderOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthProviderOrBuilder.java similarity index 88% rename from owl-bot-staging/java-common-protos/v1/proto-google-common-protos/src/main/java/com/google/api/AuthProviderOrBuilder.java rename to java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthProviderOrBuilder.java index 7efa99db30..ac0f0426ee 100644 --- a/owl-bot-staging/java-common-protos/v1/proto-google-common-protos/src/main/java/com/google/api/AuthProviderOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthProviderOrBuilder.java @@ -1,13 +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/api/auth.proto package com.google.api; -public interface AuthProviderOrBuilder extends +public interface AuthProviderOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.api.AuthProvider) com.google.protobuf.MessageOrBuilder { /** + * + * * * The unique identifier of the auth provider. It will be referred to by * `AuthRequirement.provider_id`. @@ -16,10 +34,13 @@ public interface AuthProviderOrBuilder extends ** *string id = 1;
+ * * @return The id. */ java.lang.String getId(); /** + * + * ** The unique identifier of the auth provider. It will be referred to by * `AuthRequirement.provider_id`. @@ -28,12 +49,14 @@ public interface AuthProviderOrBuilder extends ** *string id = 1;
+ * * @return The bytes for id. */ - com.google.protobuf.ByteString - getIdBytes(); + com.google.protobuf.ByteString getIdBytes(); /** + * + * ** Identifies the principal that issued the JWT. See * https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.1 @@ -44,10 +67,13 @@ public interface AuthProviderOrBuilder extends ** *string issuer = 2;
+ * * @return The issuer. */ java.lang.String getIssuer(); /** + * + * ** Identifies the principal that issued the JWT. See * https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.1 @@ -58,12 +84,14 @@ public interface AuthProviderOrBuilder extends ** *string issuer = 2;
+ * * @return The bytes for issuer. */ - com.google.protobuf.ByteString - getIssuerBytes(); + com.google.protobuf.ByteString getIssuerBytes(); /** + * + * ** URL of the provider's public key set to validate signature of the JWT. See * [OpenID @@ -80,10 +108,13 @@ public interface AuthProviderOrBuilder extends ** *string jwks_uri = 3;
+ * * @return The jwksUri. */ java.lang.String getJwksUri(); /** + * + * ** URL of the provider's public key set to validate signature of the JWT. See * [OpenID @@ -100,12 +131,14 @@ public interface AuthProviderOrBuilder extends ** *string jwks_uri = 3;
+ * * @return The bytes for jwksUri. */ - com.google.protobuf.ByteString - getJwksUriBytes(); + com.google.protobuf.ByteString getJwksUriBytes(); /** + * + * ** The list of JWT * [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3). @@ -127,10 +160,13 @@ public interface AuthProviderOrBuilder extends ** *string audiences = 4;
+ * * @return The audiences. */ java.lang.String getAudiences(); /** + * + * ** The list of JWT * [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3). @@ -152,34 +188,41 @@ public interface AuthProviderOrBuilder extends ** *string audiences = 4;
+ * * @return The bytes for audiences. */ - com.google.protobuf.ByteString - getAudiencesBytes(); + com.google.protobuf.ByteString getAudiencesBytes(); /** + * + * ** Redirect URL if JWT token is required but not present or is expired. * Implement authorizationUrl of securityDefinitions in OpenAPI spec. ** *string authorization_url = 5;
+ * * @return The authorizationUrl. */ java.lang.String getAuthorizationUrl(); /** + * + * ** Redirect URL if JWT token is required but not present or is expired. * Implement authorizationUrl of securityDefinitions in OpenAPI spec. ** *string authorization_url = 5;
+ * * @return The bytes for authorizationUrl. */ - com.google.protobuf.ByteString - getAuthorizationUrlBytes(); + com.google.protobuf.ByteString getAuthorizationUrlBytes(); /** + * + * ** Defines the locations to extract the JWT. For now it is only used by the * Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations] @@ -203,9 +246,10 @@ public interface AuthProviderOrBuilder extends * *repeated .google.api.JwtLocation jwt_locations = 6;
*/ - java.util.List- getJwtLocationsList(); + java.util.List getJwtLocationsList(); /** + * + * * * Defines the locations to extract the JWT. For now it is only used by the * Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations] @@ -231,6 +275,8 @@ public interface AuthProviderOrBuilder extends */ com.google.api.JwtLocation getJwtLocations(int index); /** + * + * ** Defines the locations to extract the JWT. For now it is only used by the * Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations] @@ -256,6 +302,8 @@ public interface AuthProviderOrBuilder extends */ int getJwtLocationsCount(); /** + * + * ** Defines the locations to extract the JWT. For now it is only used by the * Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations] @@ -279,9 +327,10 @@ public interface AuthProviderOrBuilder extends * *repeated .google.api.JwtLocation jwt_locations = 6;
*/ - java.util.List extends com.google.api.JwtLocationOrBuilder> - getJwtLocationsOrBuilderList(); + java.util.List extends com.google.api.JwtLocationOrBuilder> getJwtLocationsOrBuilderList(); /** + * + * ** Defines the locations to extract the JWT. For now it is only used by the * Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations] @@ -305,6 +354,5 @@ public interface AuthProviderOrBuilder extends * *repeated .google.api.JwtLocation jwt_locations = 6;
*/ - com.google.api.JwtLocationOrBuilder getJwtLocationsOrBuilder( - int index); + com.google.api.JwtLocationOrBuilder getJwtLocationsOrBuilder(int index); } diff --git a/owl-bot-staging/java-common-protos/v1/proto-google-common-protos/src/main/java/com/google/api/AuthRequirement.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthRequirement.java similarity index 76% rename from owl-bot-staging/java-common-protos/v1/proto-google-common-protos/src/main/java/com/google/api/AuthRequirement.java rename to java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthRequirement.java index a1478a9dcc..4a23308b2f 100644 --- a/owl-bot-staging/java-common-protos/v1/proto-google-common-protos/src/main/java/com/google/api/AuthRequirement.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthRequirement.java @@ -1,9 +1,26 @@ +/* + * 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/api/auth.proto package com.google.api; /** + * + * ** User-defined authentication requirements, including support for * [JSON Web Token @@ -12,15 +29,16 @@ * * Protobuf type {@code google.api.AuthRequirement} */ -public final class AuthRequirement extends - com.google.protobuf.GeneratedMessageV3 implements +public final class AuthRequirement extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.api.AuthRequirement) AuthRequirementOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AuthRequirement.newBuilder() to construct. private AuthRequirement(com.google.protobuf.GeneratedMessageV3.Builder> builder) { super(builder); } + private AuthRequirement() { providerId_ = ""; audiences_ = ""; @@ -28,13 +46,11 @@ private AuthRequirement() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AuthRequirement(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.api.AuthProto.internal_static_google_api_AuthRequirement_descriptor; } @@ -47,9 +63,12 @@ protected java.lang.Object newInstance( } public static final int PROVIDER_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object providerId_ = ""; /** + * + * ** [id][google.api.AuthProvider.id] from authentication provider. * @@ -59,6 +78,7 @@ protected java.lang.Object newInstance( ** *string provider_id = 1;
+ * * @return The providerId. */ @java.lang.Override @@ -67,14 +87,15 @@ public java.lang.String getProviderId() { 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(); providerId_ = s; return s; } } /** + * + * ** [id][google.api.AuthProvider.id] from authentication provider. * @@ -84,16 +105,15 @@ public java.lang.String getProviderId() { ** *string provider_id = 1;
+ * * @return The bytes for providerId. */ @java.lang.Override - public com.google.protobuf.ByteString - getProviderIdBytes() { + public com.google.protobuf.ByteString getProviderIdBytes() { java.lang.Object ref = providerId_; 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); providerId_ = b; return b; } else { @@ -102,9 +122,12 @@ public java.lang.String getProviderId() { } public static final int AUDIENCES_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object audiences_ = ""; /** + * + * ** NOTE: This will be deprecated soon, once AuthProvider.audiences is * implemented and accepted in all the runtime components. @@ -125,6 +148,7 @@ public java.lang.String getProviderId() { ** *string audiences = 2;
+ * * @return The audiences. */ @java.lang.Override @@ -133,14 +157,15 @@ public java.lang.String getAudiences() { 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(); audiences_ = s; return s; } } /** + * + * ** NOTE: This will be deprecated soon, once AuthProvider.audiences is * implemented and accepted in all the runtime components. @@ -161,16 +186,15 @@ public java.lang.String getAudiences() { ** *string audiences = 2;
+ * * @return The bytes for audiences. */ @java.lang.Override - public com.google.protobuf.ByteString - getAudiencesBytes() { + public com.google.protobuf.ByteString getAudiencesBytes() { java.lang.Object ref = audiences_; 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); audiences_ = b; return b; } else { @@ -179,6 +203,7 @@ public java.lang.String getAudiences() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -190,8 +215,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(providerId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, providerId_); } @@ -221,17 +245,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.api.AuthRequirement)) { return super.equals(obj); } com.google.api.AuthRequirement other = (com.google.api.AuthRequirement) obj; - if (!getProviderId() - .equals(other.getProviderId())) return false; - if (!getAudiences() - .equals(other.getAudiences())) return false; + if (!getProviderId().equals(other.getProviderId())) return false; + if (!getAudiences().equals(other.getAudiences())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -252,99 +274,103 @@ public int hashCode() { return hash; } - public static com.google.api.AuthRequirement parseFrom( - java.nio.ByteBuffer data) + public static com.google.api.AuthRequirement parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.api.AuthRequirement 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.api.AuthRequirement parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.api.AuthRequirement parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.api.AuthRequirement 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.api.AuthRequirement parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.api.AuthRequirement 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.api.AuthRequirement 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.api.AuthRequirement 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.api.AuthRequirement 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.api.AuthRequirement 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.api.AuthRequirement parseFrom( - com.google.protobuf.CodedInputStream input) + + public static com.google.api.AuthRequirement parseFrom(com.google.protobuf.CodedInputStream 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.api.AuthRequirement 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.api.AuthRequirement 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; } /** + * + * ** User-defined authentication requirements, including support for * [JSON Web Token @@ -353,12 +379,11 @@ protected Builder newBuilderForType( * * Protobuf type {@code google.api.AuthRequirement} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builderimplements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.api.AuthRequirement) com.google.api.AuthRequirementOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.api.AuthProto.internal_static_google_api_AuthRequirement_descriptor; } @@ -371,15 +396,12 @@ public static final class Builder extends } // Construct using com.google.api.AuthRequirement.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -390,8 +412,7 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.api.AuthProto.internal_static_google_api_AuthRequirement_descriptor; } @@ -412,7 +433,9 @@ public com.google.api.AuthRequirement build() { @java.lang.Override public com.google.api.AuthRequirement buildPartial() { com.google.api.AuthRequirement result = new com.google.api.AuthRequirement(this); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -431,38 +454,39 @@ private void buildPartial0(com.google.api.AuthRequirement result) { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.api.AuthRequirement) { - return mergeFrom((com.google.api.AuthRequirement)other); + return mergeFrom((com.google.api.AuthRequirement) other); } else { super.mergeFrom(other); return this; @@ -507,22 +531,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - providerId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - audiences_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + providerId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + audiences_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -532,10 +559,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object providerId_ = ""; /** + * + * * * [id][google.api.AuthProvider.id] from authentication provider. * @@ -545,13 +575,13 @@ public Builder mergeFrom( ** *string provider_id = 1;
+ * * @return The providerId. */ public java.lang.String getProviderId() { java.lang.Object ref = providerId_; 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(); providerId_ = s; return s; @@ -560,6 +590,8 @@ public java.lang.String getProviderId() { } } /** + * + * ** [id][google.api.AuthProvider.id] from authentication provider. * @@ -569,15 +601,14 @@ public java.lang.String getProviderId() { ** *string provider_id = 1;
+ * * @return The bytes for providerId. */ - public com.google.protobuf.ByteString - getProviderIdBytes() { + public com.google.protobuf.ByteString getProviderIdBytes() { java.lang.Object ref = providerId_; 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); providerId_ = b; return b; } else { @@ -585,6 +616,8 @@ public java.lang.String getProviderId() { } } /** + * + * ** [id][google.api.AuthProvider.id] from authentication provider. * @@ -594,18 +627,22 @@ public java.lang.String getProviderId() { ** *string provider_id = 1;
+ * * @param value The providerId to set. * @return This builder for chaining. */ - public Builder setProviderId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setProviderId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } providerId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * ** [id][google.api.AuthProvider.id] from authentication provider. * @@ -615,6 +652,7 @@ public Builder setProviderId( ** *string provider_id = 1;
+ * * @return This builder for chaining. */ public Builder clearProviderId() { @@ -624,6 +662,8 @@ public Builder clearProviderId() { return this; } /** + * + * ** [id][google.api.AuthProvider.id] from authentication provider. * @@ -633,12 +673,14 @@ public Builder clearProviderId() { ** *string provider_id = 1;
+ * * @param value The bytes for providerId to set. * @return This builder for chaining. */ - public Builder setProviderIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setProviderIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); providerId_ = value; bitField0_ |= 0x00000001; @@ -648,6 +690,8 @@ public Builder setProviderIdBytes( private java.lang.Object audiences_ = ""; /** + * + * ** NOTE: This will be deprecated soon, once AuthProvider.audiences is * implemented and accepted in all the runtime components. @@ -668,13 +712,13 @@ public Builder setProviderIdBytes( ** *string audiences = 2;
+ * * @return The audiences. */ public java.lang.String getAudiences() { java.lang.Object ref = audiences_; 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(); audiences_ = s; return s; @@ -683,6 +727,8 @@ public java.lang.String getAudiences() { } } /** + * + * ** NOTE: This will be deprecated soon, once AuthProvider.audiences is * implemented and accepted in all the runtime components. @@ -703,15 +749,14 @@ public java.lang.String getAudiences() { ** *string audiences = 2;
+ * * @return The bytes for audiences. */ - public com.google.protobuf.ByteString - getAudiencesBytes() { + public com.google.protobuf.ByteString getAudiencesBytes() { java.lang.Object ref = audiences_; 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); audiences_ = b; return b; } else { @@ -719,6 +764,8 @@ public java.lang.String getAudiences() { } } /** + * + * ** NOTE: This will be deprecated soon, once AuthProvider.audiences is * implemented and accepted in all the runtime components. @@ -739,18 +786,22 @@ public java.lang.String getAudiences() { ** *string audiences = 2;
+ * * @param value The audiences to set. * @return This builder for chaining. */ - public Builder setAudiences( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setAudiences(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } audiences_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * ** NOTE: This will be deprecated soon, once AuthProvider.audiences is * implemented and accepted in all the runtime components. @@ -771,6 +822,7 @@ public Builder setAudiences( ** *string audiences = 2;
+ * * @return This builder for chaining. */ public Builder clearAudiences() { @@ -780,6 +832,8 @@ public Builder clearAudiences() { return this; } /** + * + * ** NOTE: This will be deprecated soon, once AuthProvider.audiences is * implemented and accepted in all the runtime components. @@ -800,21 +854,23 @@ public Builder clearAudiences() { ** *string audiences = 2;
+ * * @param value The bytes for audiences to set. * @return This builder for chaining. */ - public Builder setAudiencesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setAudiencesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); audiences_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -824,12 +880,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.api.AuthRequirement) } // @@protoc_insertion_point(class_scope:google.api.AuthRequirement) private static final com.google.api.AuthRequirement DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.api.AuthRequirement(); } @@ -838,27 +894,27 @@ public static com.google.api.AuthRequirement getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser- PARSER = new com.google.protobuf.AbstractParser () { - @java.lang.Override - public AuthRequirement parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser () { + @java.lang.Override + public AuthRequirement parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -873,6 +929,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.api.AuthRequirement getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-common-protos/v1/proto-google-common-protos/src/main/java/com/google/api/AuthRequirementOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthRequirementOrBuilder.java similarity index 77% rename from owl-bot-staging/java-common-protos/v1/proto-google-common-protos/src/main/java/com/google/api/AuthRequirementOrBuilder.java rename to java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthRequirementOrBuilder.java index 53b2ce5d27..86a8a37c7c 100644 --- a/owl-bot-staging/java-common-protos/v1/proto-google-common-protos/src/main/java/com/google/api/AuthRequirementOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthRequirementOrBuilder.java @@ -1,13 +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/api/auth.proto package com.google.api; -public interface AuthRequirementOrBuilder extends +public interface AuthRequirementOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.api.AuthRequirement) com.google.protobuf.MessageOrBuilder { /** + * + * * * [id][google.api.AuthProvider.id] from authentication provider. * @@ -17,10 +35,13 @@ public interface AuthRequirementOrBuilder extends ** *string provider_id = 1;
+ * * @return The providerId. */ java.lang.String getProviderId(); /** + * + * ** [id][google.api.AuthProvider.id] from authentication provider. * @@ -30,12 +51,14 @@ public interface AuthRequirementOrBuilder extends ** *string provider_id = 1;
+ * * @return The bytes for providerId. */ - com.google.protobuf.ByteString - getProviderIdBytes(); + com.google.protobuf.ByteString getProviderIdBytes(); /** + * + * ** NOTE: This will be deprecated soon, once AuthProvider.audiences is * implemented and accepted in all the runtime components. @@ -56,10 +79,13 @@ public interface AuthRequirementOrBuilder extends ** *string audiences = 2;
+ * * @return The audiences. */ java.lang.String getAudiences(); /** + * + * ** NOTE: This will be deprecated soon, once AuthProvider.audiences is * implemented and accepted in all the runtime components. @@ -80,8 +106,8 @@ public interface AuthRequirementOrBuilder extends ** *string audiences = 2;
+ * * @return The bytes for audiences. */ - com.google.protobuf.ByteString - getAudiencesBytes(); + com.google.protobuf.ByteString getAudiencesBytes(); } diff --git a/owl-bot-staging/java-common-protos/v1/proto-google-common-protos/src/main/java/com/google/api/Authentication.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Authentication.java similarity index 77% rename from owl-bot-staging/java-common-protos/v1/proto-google-common-protos/src/main/java/com/google/api/Authentication.java rename to java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Authentication.java index a238ed9359..eecc174580 100644 --- a/owl-bot-staging/java-common-protos/v1/proto-google-common-protos/src/main/java/com/google/api/Authentication.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Authentication.java @@ -1,9 +1,26 @@ +/* + * 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/api/auth.proto package com.google.api; /** + * + * ** `Authentication` defines the authentication configuration for API methods * provided by an API service. @@ -27,15 +44,16 @@ * * Protobuf type {@code google.api.Authentication} */ -public final class Authentication extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Authentication extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.api.Authentication) AuthenticationOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Authentication.newBuilder() to construct. private Authentication(com.google.protobuf.GeneratedMessageV3.Builder> builder) { super(builder); } + private Authentication() { rules_ = java.util.Collections.emptyList(); providers_ = java.util.Collections.emptyList(); @@ -43,13 +61,11 @@ private Authentication() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Authentication(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.api.AuthProto.internal_static_google_api_Authentication_descriptor; } @@ -62,9 +78,12 @@ protected java.lang.Object newInstance( } public static final int RULES_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private java.util.Listrules_; /** + * + * * * A list of authentication rules that apply to individual API methods. * @@ -78,6 +97,8 @@ public java.util.ListgetRulesList() { return rules_; } /** + * + * * * A list of authentication rules that apply to individual API methods. * @@ -87,11 +108,13 @@ public java.util.ListgetRulesList() { * repeated .google.api.AuthenticationRule rules = 3;
*/ @java.lang.Override - public java.util.List extends com.google.api.AuthenticationRuleOrBuilder> + public java.util.List extends com.google.api.AuthenticationRuleOrBuilder> getRulesOrBuilderList() { return rules_; } /** + * + * ** A list of authentication rules that apply to individual API methods. * @@ -105,6 +128,8 @@ public int getRulesCount() { return rules_.size(); } /** + * + * ** A list of authentication rules that apply to individual API methods. * @@ -118,6 +143,8 @@ public com.google.api.AuthenticationRule getRules(int index) { return rules_.get(index); } /** + * + * ** A list of authentication rules that apply to individual API methods. * @@ -127,15 +154,17 @@ public com.google.api.AuthenticationRule getRules(int index) { *repeated .google.api.AuthenticationRule rules = 3;
*/ @java.lang.Override - public com.google.api.AuthenticationRuleOrBuilder getRulesOrBuilder( - int index) { + public com.google.api.AuthenticationRuleOrBuilder getRulesOrBuilder(int index) { return rules_.get(index); } public static final int PROVIDERS_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private java.util.Listproviders_; /** + * + * * * Defines a set of authentication providers that a service supports. *@@ -147,6 +176,8 @@ public java.util.ListgetProvidersList() { return providers_; } /** + * + * * * Defines a set of authentication providers that a service supports. *@@ -154,11 +185,13 @@ public java.util.ListgetProvidersList() { * repeated .google.api.AuthProvider providers = 4;
*/ @java.lang.Override - public java.util.List extends com.google.api.AuthProviderOrBuilder> + public java.util.List extends com.google.api.AuthProviderOrBuilder> getProvidersOrBuilderList() { return providers_; } /** + * + * ** Defines a set of authentication providers that a service supports. *@@ -170,6 +203,8 @@ public int getProvidersCount() { return providers_.size(); } /** + * + * ** Defines a set of authentication providers that a service supports. *@@ -181,6 +216,8 @@ public com.google.api.AuthProvider getProviders(int index) { return providers_.get(index); } /** + * + * ** Defines a set of authentication providers that a service supports. *@@ -188,12 +225,12 @@ public com.google.api.AuthProvider getProviders(int index) { *repeated .google.api.AuthProvider providers = 4;
*/ @java.lang.Override - public com.google.api.AuthProviderOrBuilder getProvidersOrBuilder( - int index) { + public com.google.api.AuthProviderOrBuilder getProvidersOrBuilder(int index) { return providers_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -205,8 +242,7 @@ 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 < rules_.size(); i++) { output.writeMessage(3, rules_.get(i)); } @@ -223,12 +259,10 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < rules_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, rules_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, rules_.get(i)); } for (int i = 0; i < providers_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, providers_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, providers_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -238,17 +272,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.api.Authentication)) { return super.equals(obj); } com.google.api.Authentication other = (com.google.api.Authentication) obj; - if (!getRulesList() - .equals(other.getRulesList())) return false; - if (!getProvidersList() - .equals(other.getProvidersList())) return false; + if (!getRulesList().equals(other.getRulesList())) return false; + if (!getProvidersList().equals(other.getProvidersList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -273,99 +305,103 @@ public int hashCode() { return hash; } - public static com.google.api.Authentication parseFrom( - java.nio.ByteBuffer data) + public static com.google.api.Authentication parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.api.Authentication 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.api.Authentication parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.api.Authentication parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.api.Authentication 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.api.Authentication parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.api.Authentication 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.api.Authentication 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.api.Authentication 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.api.Authentication 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.api.Authentication 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.api.Authentication parseFrom( - com.google.protobuf.CodedInputStream input) + + public static com.google.api.Authentication parseFrom(com.google.protobuf.CodedInputStream 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.api.Authentication 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.api.Authentication 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; } /** + * + * ** `Authentication` defines the authentication configuration for API methods * provided by an API service. @@ -389,12 +425,11 @@ protected Builder newBuilderForType( * * Protobuf type {@code google.api.Authentication} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builderimplements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.api.Authentication) com.google.api.AuthenticationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.api.AuthProto.internal_static_google_api_Authentication_descriptor; } @@ -407,15 +442,12 @@ public static final class Builder extends } // Construct using com.google.api.Authentication.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -438,8 +470,7 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.api.AuthProto.internal_static_google_api_Authentication_descriptor; } @@ -461,7 +492,9 @@ public com.google.api.Authentication build() { public com.google.api.Authentication buildPartial() { com.google.api.Authentication result = new com.google.api.Authentication(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -495,38 +528,39 @@ private void buildPartial0(com.google.api.Authentication result) { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.api.Authentication) { - return mergeFrom((com.google.api.Authentication)other); + return mergeFrom((com.google.api.Authentication) other); } else { super.mergeFrom(other); return this; @@ -553,9 +587,10 @@ public Builder mergeFrom(com.google.api.Authentication other) { rulesBuilder_ = null; rules_ = other.rules_; bitField0_ = (bitField0_ & ~0x00000001); - rulesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getRulesFieldBuilder() : null; + rulesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getRulesFieldBuilder() + : null; } else { rulesBuilder_.addAllMessages(other.rules_); } @@ -579,9 +614,10 @@ public Builder mergeFrom(com.google.api.Authentication other) { providersBuilder_ = null; providers_ = other.providers_; bitField0_ = (bitField0_ & ~0x00000002); - providersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getProvidersFieldBuilder() : null; + providersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getProvidersFieldBuilder() + : null; } else { providersBuilder_.addAllMessages(other.providers_); } @@ -613,38 +649,38 @@ public Builder mergeFrom( case 0: done = true; break; - case 26: { - com.google.api.AuthenticationRule m = - input.readMessage( - com.google.api.AuthenticationRule.parser(), - extensionRegistry); - if (rulesBuilder_ == null) { - ensureRulesIsMutable(); - rules_.add(m); - } else { - rulesBuilder_.addMessage(m); - } - break; - } // case 26 - case 34: { - com.google.api.AuthProvider m = - input.readMessage( - com.google.api.AuthProvider.parser(), - extensionRegistry); - if (providersBuilder_ == null) { - ensureProvidersIsMutable(); - providers_.add(m); - } else { - providersBuilder_.addMessage(m); - } - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 26: + { + com.google.api.AuthenticationRule m = + input.readMessage( + com.google.api.AuthenticationRule.parser(), extensionRegistry); + if (rulesBuilder_ == null) { + ensureRulesIsMutable(); + rules_.add(m); + } else { + rulesBuilder_.addMessage(m); + } + break; + } // case 26 + case 34: + { + com.google.api.AuthProvider m = + input.readMessage(com.google.api.AuthProvider.parser(), extensionRegistry); + if (providersBuilder_ == null) { + ensureProvidersIsMutable(); + providers_.add(m); + } else { + providersBuilder_.addMessage(m); + } + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -654,21 +690,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List rules_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureRulesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { rules_ = new java.util.ArrayList (rules_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.api.AuthenticationRule, com.google.api.AuthenticationRule.Builder, com.google.api.AuthenticationRuleOrBuilder> rulesBuilder_; + com.google.api.AuthenticationRule, + com.google.api.AuthenticationRule.Builder, + com.google.api.AuthenticationRuleOrBuilder> + rulesBuilder_; /** + * + * * * A list of authentication rules that apply to individual API methods. * @@ -685,6 +728,8 @@ public java.util.ListgetRulesList() { } } /** + * + * * * A list of authentication rules that apply to individual API methods. * @@ -701,6 +746,8 @@ public int getRulesCount() { } } /** + * + * ** A list of authentication rules that apply to individual API methods. * @@ -717,6 +764,8 @@ public com.google.api.AuthenticationRule getRules(int index) { } } /** + * + * ** A list of authentication rules that apply to individual API methods. * @@ -725,8 +774,7 @@ public com.google.api.AuthenticationRule getRules(int index) { * *repeated .google.api.AuthenticationRule rules = 3;
*/ - public Builder setRules( - int index, com.google.api.AuthenticationRule value) { + public Builder setRules(int index, com.google.api.AuthenticationRule value) { if (rulesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -740,6 +788,8 @@ public Builder setRules( return this; } /** + * + * ** A list of authentication rules that apply to individual API methods. * @@ -748,8 +798,7 @@ public Builder setRules( * *repeated .google.api.AuthenticationRule rules = 3;
*/ - public Builder setRules( - int index, com.google.api.AuthenticationRule.Builder builderForValue) { + public Builder setRules(int index, com.google.api.AuthenticationRule.Builder builderForValue) { if (rulesBuilder_ == null) { ensureRulesIsMutable(); rules_.set(index, builderForValue.build()); @@ -760,6 +809,8 @@ public Builder setRules( return this; } /** + * + * ** A list of authentication rules that apply to individual API methods. * @@ -782,6 +833,8 @@ public Builder addRules(com.google.api.AuthenticationRule value) { return this; } /** + * + * ** A list of authentication rules that apply to individual API methods. * @@ -790,8 +843,7 @@ public Builder addRules(com.google.api.AuthenticationRule value) { * *repeated .google.api.AuthenticationRule rules = 3;
*/ - public Builder addRules( - int index, com.google.api.AuthenticationRule value) { + public Builder addRules(int index, com.google.api.AuthenticationRule value) { if (rulesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -805,6 +857,8 @@ public Builder addRules( return this; } /** + * + * ** A list of authentication rules that apply to individual API methods. * @@ -813,8 +867,7 @@ public Builder addRules( * *repeated .google.api.AuthenticationRule rules = 3;
*/ - public Builder addRules( - com.google.api.AuthenticationRule.Builder builderForValue) { + public Builder addRules(com.google.api.AuthenticationRule.Builder builderForValue) { if (rulesBuilder_ == null) { ensureRulesIsMutable(); rules_.add(builderForValue.build()); @@ -825,6 +878,8 @@ public Builder addRules( return this; } /** + * + * ** A list of authentication rules that apply to individual API methods. * @@ -833,8 +888,7 @@ public Builder addRules( * *repeated .google.api.AuthenticationRule rules = 3;
*/ - public Builder addRules( - int index, com.google.api.AuthenticationRule.Builder builderForValue) { + public Builder addRules(int index, com.google.api.AuthenticationRule.Builder builderForValue) { if (rulesBuilder_ == null) { ensureRulesIsMutable(); rules_.add(index, builderForValue.build()); @@ -845,6 +899,8 @@ public Builder addRules( return this; } /** + * + * ** A list of authentication rules that apply to individual API methods. * @@ -857,8 +913,7 @@ public Builder addAllRules( java.lang.Iterable extends com.google.api.AuthenticationRule> values) { if (rulesBuilder_ == null) { ensureRulesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, rules_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, rules_); onChanged(); } else { rulesBuilder_.addAllMessages(values); @@ -866,6 +921,8 @@ public Builder addAllRules( return this; } /** + * + * ** A list of authentication rules that apply to individual API methods. * @@ -885,6 +942,8 @@ public Builder clearRules() { return this; } /** + * + * ** A list of authentication rules that apply to individual API methods. * @@ -904,6 +963,8 @@ public Builder removeRules(int index) { return this; } /** + * + * ** A list of authentication rules that apply to individual API methods. * @@ -912,11 +973,12 @@ public Builder removeRules(int index) { * *repeated .google.api.AuthenticationRule rules = 3;
*/ - public com.google.api.AuthenticationRule.Builder getRulesBuilder( - int index) { + public com.google.api.AuthenticationRule.Builder getRulesBuilder(int index) { return getRulesFieldBuilder().getBuilder(index); } /** + * + * ** A list of authentication rules that apply to individual API methods. * @@ -925,14 +987,16 @@ public com.google.api.AuthenticationRule.Builder getRulesBuilder( * *repeated .google.api.AuthenticationRule rules = 3;
*/ - public com.google.api.AuthenticationRuleOrBuilder getRulesOrBuilder( - int index) { + public com.google.api.AuthenticationRuleOrBuilder getRulesOrBuilder(int index) { if (rulesBuilder_ == null) { - return rules_.get(index); } else { + return rules_.get(index); + } else { return rulesBuilder_.getMessageOrBuilder(index); } } /** + * + * ** A list of authentication rules that apply to individual API methods. * @@ -941,8 +1005,8 @@ public com.google.api.AuthenticationRuleOrBuilder getRulesOrBuilder( * *repeated .google.api.AuthenticationRule rules = 3;
*/ - public java.util.List extends com.google.api.AuthenticationRuleOrBuilder> - getRulesOrBuilderList() { + public java.util.List extends com.google.api.AuthenticationRuleOrBuilder> + getRulesOrBuilderList() { if (rulesBuilder_ != null) { return rulesBuilder_.getMessageOrBuilderList(); } else { @@ -950,6 +1014,8 @@ public com.google.api.AuthenticationRuleOrBuilder getRulesOrBuilder( } } /** + * + * ** A list of authentication rules that apply to individual API methods. * @@ -959,10 +1025,12 @@ public com.google.api.AuthenticationRuleOrBuilder getRulesOrBuilder( *repeated .google.api.AuthenticationRule rules = 3;
*/ public com.google.api.AuthenticationRule.Builder addRulesBuilder() { - return getRulesFieldBuilder().addBuilder( - com.google.api.AuthenticationRule.getDefaultInstance()); + return getRulesFieldBuilder() + .addBuilder(com.google.api.AuthenticationRule.getDefaultInstance()); } /** + * + * ** A list of authentication rules that apply to individual API methods. * @@ -971,12 +1039,13 @@ public com.google.api.AuthenticationRule.Builder addRulesBuilder() { * *repeated .google.api.AuthenticationRule rules = 3;
*/ - public com.google.api.AuthenticationRule.Builder addRulesBuilder( - int index) { - return getRulesFieldBuilder().addBuilder( - index, com.google.api.AuthenticationRule.getDefaultInstance()); + public com.google.api.AuthenticationRule.Builder addRulesBuilder(int index) { + return getRulesFieldBuilder() + .addBuilder(index, com.google.api.AuthenticationRule.getDefaultInstance()); } /** + * + * ** A list of authentication rules that apply to individual API methods. * @@ -985,38 +1054,46 @@ public com.google.api.AuthenticationRule.Builder addRulesBuilder( * *repeated .google.api.AuthenticationRule rules = 3;
*/ - public java.util.List- getRulesBuilderList() { + public java.util.List getRulesBuilderList() { return getRulesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.api.AuthenticationRule, com.google.api.AuthenticationRule.Builder, com.google.api.AuthenticationRuleOrBuilder> + com.google.api.AuthenticationRule, + com.google.api.AuthenticationRule.Builder, + com.google.api.AuthenticationRuleOrBuilder> getRulesFieldBuilder() { if (rulesBuilder_ == null) { - rulesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.api.AuthenticationRule, com.google.api.AuthenticationRule.Builder, com.google.api.AuthenticationRuleOrBuilder>( - rules_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + rulesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.api.AuthenticationRule, + com.google.api.AuthenticationRule.Builder, + com.google.api.AuthenticationRuleOrBuilder>( + rules_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); rules_ = null; } return rulesBuilder_; } private java.util.List providers_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureProvidersIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { providers_ = new java.util.ArrayList (providers_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.api.AuthProvider, com.google.api.AuthProvider.Builder, com.google.api.AuthProviderOrBuilder> providersBuilder_; + com.google.api.AuthProvider, + com.google.api.AuthProvider.Builder, + com.google.api.AuthProviderOrBuilder> + providersBuilder_; /** + * + * * * Defines a set of authentication providers that a service supports. *@@ -1031,6 +1108,8 @@ public java.util.ListgetProvidersList() { } } /** + * + * * * Defines a set of authentication providers that a service supports. *@@ -1045,6 +1124,8 @@ public int getProvidersCount() { } } /** + * + * ** Defines a set of authentication providers that a service supports. *@@ -1059,14 +1140,15 @@ public com.google.api.AuthProvider getProviders(int index) { } } /** + * + * ** Defines a set of authentication providers that a service supports. ** *repeated .google.api.AuthProvider providers = 4;
*/ - public Builder setProviders( - int index, com.google.api.AuthProvider value) { + public Builder setProviders(int index, com.google.api.AuthProvider value) { if (providersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1080,14 +1162,15 @@ public Builder setProviders( return this; } /** + * + * ** Defines a set of authentication providers that a service supports. ** *repeated .google.api.AuthProvider providers = 4;
*/ - public Builder setProviders( - int index, com.google.api.AuthProvider.Builder builderForValue) { + public Builder setProviders(int index, com.google.api.AuthProvider.Builder builderForValue) { if (providersBuilder_ == null) { ensureProvidersIsMutable(); providers_.set(index, builderForValue.build()); @@ -1098,6 +1181,8 @@ public Builder setProviders( return this; } /** + * + * ** Defines a set of authentication providers that a service supports. *@@ -1118,14 +1203,15 @@ public Builder addProviders(com.google.api.AuthProvider value) { return this; } /** + * + * ** Defines a set of authentication providers that a service supports. ** *repeated .google.api.AuthProvider providers = 4;
*/ - public Builder addProviders( - int index, com.google.api.AuthProvider value) { + public Builder addProviders(int index, com.google.api.AuthProvider value) { if (providersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1139,14 +1225,15 @@ public Builder addProviders( return this; } /** + * + * ** Defines a set of authentication providers that a service supports. ** *repeated .google.api.AuthProvider providers = 4;
*/ - public Builder addProviders( - com.google.api.AuthProvider.Builder builderForValue) { + public Builder addProviders(com.google.api.AuthProvider.Builder builderForValue) { if (providersBuilder_ == null) { ensureProvidersIsMutable(); providers_.add(builderForValue.build()); @@ -1157,14 +1244,15 @@ public Builder addProviders( return this; } /** + * + * ** Defines a set of authentication providers that a service supports. ** *repeated .google.api.AuthProvider providers = 4;
*/ - public Builder addProviders( - int index, com.google.api.AuthProvider.Builder builderForValue) { + public Builder addProviders(int index, com.google.api.AuthProvider.Builder builderForValue) { if (providersBuilder_ == null) { ensureProvidersIsMutable(); providers_.add(index, builderForValue.build()); @@ -1175,6 +1263,8 @@ public Builder addProviders( return this; } /** + * + * ** Defines a set of authentication providers that a service supports. *@@ -1185,8 +1275,7 @@ public Builder addAllProviders( java.lang.Iterable extends com.google.api.AuthProvider> values) { if (providersBuilder_ == null) { ensureProvidersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, providers_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, providers_); onChanged(); } else { providersBuilder_.addAllMessages(values); @@ -1194,6 +1283,8 @@ public Builder addAllProviders( return this; } /** + * + * ** Defines a set of authentication providers that a service supports. *@@ -1211,6 +1302,8 @@ public Builder clearProviders() { return this; } /** + * + * ** Defines a set of authentication providers that a service supports. *@@ -1228,39 +1321,44 @@ public Builder removeProviders(int index) { return this; } /** + * + * ** Defines a set of authentication providers that a service supports. ** *repeated .google.api.AuthProvider providers = 4;
*/ - public com.google.api.AuthProvider.Builder getProvidersBuilder( - int index) { + public com.google.api.AuthProvider.Builder getProvidersBuilder(int index) { return getProvidersFieldBuilder().getBuilder(index); } /** + * + * ** Defines a set of authentication providers that a service supports. ** *repeated .google.api.AuthProvider providers = 4;
*/ - public com.google.api.AuthProviderOrBuilder getProvidersOrBuilder( - int index) { + public com.google.api.AuthProviderOrBuilder getProvidersOrBuilder(int index) { if (providersBuilder_ == null) { - return providers_.get(index); } else { + return providers_.get(index); + } else { return providersBuilder_.getMessageOrBuilder(index); } } /** + * + * ** Defines a set of authentication providers that a service supports. ** *repeated .google.api.AuthProvider providers = 4;
*/ - public java.util.List extends com.google.api.AuthProviderOrBuilder> - getProvidersOrBuilderList() { + public java.util.List extends com.google.api.AuthProviderOrBuilder> + getProvidersOrBuilderList() { if (providersBuilder_ != null) { return providersBuilder_.getMessageOrBuilderList(); } else { @@ -1268,6 +1366,8 @@ public com.google.api.AuthProviderOrBuilder getProvidersOrBuilder( } } /** + * + * ** Defines a set of authentication providers that a service supports. *@@ -1275,49 +1375,54 @@ public com.google.api.AuthProviderOrBuilder getProvidersOrBuilder( *repeated .google.api.AuthProvider providers = 4;
*/ public com.google.api.AuthProvider.Builder addProvidersBuilder() { - return getProvidersFieldBuilder().addBuilder( - com.google.api.AuthProvider.getDefaultInstance()); + return getProvidersFieldBuilder() + .addBuilder(com.google.api.AuthProvider.getDefaultInstance()); } /** + * + * ** Defines a set of authentication providers that a service supports. ** *repeated .google.api.AuthProvider providers = 4;
*/ - public com.google.api.AuthProvider.Builder addProvidersBuilder( - int index) { - return getProvidersFieldBuilder().addBuilder( - index, com.google.api.AuthProvider.getDefaultInstance()); + public com.google.api.AuthProvider.Builder addProvidersBuilder(int index) { + return getProvidersFieldBuilder() + .addBuilder(index, com.google.api.AuthProvider.getDefaultInstance()); } /** + * + * ** Defines a set of authentication providers that a service supports. ** *repeated .google.api.AuthProvider providers = 4;
*/ - public java.util.List- getProvidersBuilderList() { + public java.util.List getProvidersBuilderList() { return getProvidersFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.api.AuthProvider, com.google.api.AuthProvider.Builder, com.google.api.AuthProviderOrBuilder> + com.google.api.AuthProvider, + com.google.api.AuthProvider.Builder, + com.google.api.AuthProviderOrBuilder> getProvidersFieldBuilder() { if (providersBuilder_ == null) { - providersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.api.AuthProvider, com.google.api.AuthProvider.Builder, com.google.api.AuthProviderOrBuilder>( - providers_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); + providersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.api.AuthProvider, + com.google.api.AuthProvider.Builder, + com.google.api.AuthProviderOrBuilder>( + providers_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); providers_ = null; } return providersBuilder_; } + @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); } @@ -1327,12 +1432,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.api.Authentication) } // @@protoc_insertion_point(class_scope:google.api.Authentication) private static final com.google.api.Authentication DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.api.Authentication(); } @@ -1341,27 +1446,27 @@ public static com.google.api.Authentication getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser () { - @java.lang.Override - public Authentication parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser () { + @java.lang.Override + public Authentication parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser